It took me a while to post this because I had to do so much reformatting of the messages you posted. I realise you can't control the output of the SOAP::Lite trace, nor the WSDL from the ASP.net server... but I do have two suggestions:
- Use xmltidy from the XML::Tidy distribution to clean up XML before posting.
- Read Writeup Formatting Tips... especially concerning the use of <code> and <readmore> tags.
Notes
You didn't send identical messages, so I've corrected your debian request to have the same data (underneath TransactionProcess) as the redhat request. I also re-ordered the attributes of the soap-envelope node in the debian request so it would be easier to make a comparison.
Let's have a look at the two requests as per the trace you posted:
RedHat request
Debian request
Differences
I saved the two requests into separate files and ran diff over them:
bollock@localhost [~] diff -u redhat_request.xml debian_request.xml
--- redhat_request.xml 2007-11-14 12:39:48.000000000 +1000
+++ debian_request.xml 2007-11-14 12:48:27.000000000 +1000
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:wsdlns="http://tempuri.org/wsdl/"
- xmlns:stk="http://schemas.microsoft.com/soap-toolkit/wsdl-extensi
+on"
- soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:typens="http://tempuri.org/type"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdlns="http://tempuri.org/wsdl/"
+ xmlns:stk="http://schemas.microsoft.com/soap-toolkit/wsdl-extensi
+on"
+ soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:typens="http://tempuri.org/type"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:namesp1="http://tempuri.org/message/">
<soap:Body>
<namesp1:TransactionProcess>
The differing lines are:
- xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
So your two installations are sending differing 'soap' namespace values. Let's look at the SOAPFault you received back from the server for the debian request:
Soap Fault
You can see that it's complaining about exactly the difference I noted above.
I've reformatted the opening section of the WSDL you posted:
Posted WSDL
As you can clearly see, the WSDL contains exactly the same 'soap' namespace element as was sent by the 'debian' SOAP::WSDL request.
At first I thought that perhaps the web-service was serving different versions of the WSDL document, and you did mention some difference in message sizes; However, the size difference was because of the differing namespace in the request. To make sure I was always getting the same WSDL document, I downloaded it directly.
The service port node specifies https://www.beanstream.com/soap/ProcessTransaction.wsdl as the URL serving the WSDL document:
<service name="ProcessTransaction">
<port name="TransClassSoapPort" binding="wsdlns:TransClassSoapBind
+ing">
<soap:address location="https://www.beanstream.com/soap/ProcessT
+ransaction.wsdl" />
</port>
</service>
Using firefox or wget, I can only get it to serve WSDL containing the "bad" namespace attribute.
Are you sure both installations have SOAP::Lite version 0.69, SOAP::WSDL v1.22+, and that they're both receiving the same WSDL?
If that's true and the RedHat installation sends a different request, then RedHat might have patched either SOAP::Lite or SOAP::WSDL for distribution (not unheard of). You can force the cpan shell to install over what you have to make sure they're the same.
Conclusions
The real problem as I see it, is that the web-service responds with valid WSDL, which the debian version uses in an entirely appropriate manner, and then the web-service responds that it doesn't like that namespace attribute. :-(
Have a look at the SOAP::Lite and SOAP::WSDL APIs to see if they allow you to manually override Envelope namespace attributes. If so, that should solve your problem. But really, based on my investigation, it's the server that is at fault.
-David
| [reply] [d/l] [select] |
Monks help was top notch.. I went with stubmaker.pl, and edited the produced package after trying SOAP::WSDL, which generated the same errors. Changed the erroneous name space in the package, and the package worked first time. Documentation provided to the payment provider (beanstream). they, and I, are very grateful to the monks. Cheers
Chris
| [reply] |