I can see that the request generated by PHP is not wrapping the <MyFunction>
That looks to be the primary difference. That would account for the
document/literal. You appear to be using RPC/Encoded, which is not good for
"Stewart" <windsurfing_stew@yahoo.com.au> wrote in message
news:3e8a4d01.0504201714.70c51f02@posting.google.com...
> Any takers?
>
>
> windsurfing_stew@yahoo.com.au (Stewart) wrote in message
> news:<3e8a4d01.0504192225.3271927e@posting.google.com>...
>> Hi,
>>
>> I'm hoping that someone will be able to help out with a problem we are
>> having. We have a web service built in .Net 1.1. We are trying to
>> call it from PHP4 using the NuSOAP add on. It seems the SOAP it is
>> sending as the request isn't what the web service is looking for.
>>
>> Here is what my PHP4 NuSOAP client is sending:
>>
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>> <SOAP-ENV:Envelope
>> xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/" >> xmlns:xsd="
http://www.w3.org/2001/XMLSchema" >> xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" >> xmlns:SOAP-ENC="
http://schemas.xmlsoap.org/soap/encoding/" >> xmlns:si="
http://soapinterop.org/xsd" >> xmlns:tns="
https://mysite.com/mydir/WebService/"> >> <SOAP-ENV:Body>
>> <MyFunction xsi:type="xsd:string">08</MyFunction>
>> </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>>
>> Here is what my .Net 1.1 web service expects the request to look like:
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <soap:Envelope
>> xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" >> xmlns:xsd="
http://www.w3.org/2001/XMLSchema" >> xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/" >> xmlns:tns="
https://mysite.com/mydir/WebService/" >> xmlns:types="
https://mysite.com/mydir/WebService/encodedTypes" >> xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"> >> <soap:Body
>> soap:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"> >> <tns:GetMessage>
>> <MyFunction xsi:type="xsd:string">08</MyFunction>
>> </tns:GetMessage>
>> </soap:Body>
>> </soap:Envelope>
>>
>> On the request a SOAP fault is raised with the message:
>>
>> <faultstring>Server was unable to read request. --> There is an
>> error in XML document (1, 399). --> &lt;MerchantResponse
>> xmlns=''&gt; was not expected.</faultstring>
>>
>> Does anyone have any idea exactly which xmlns shouldn't be sent, or
>> what the problem is?
>>
>> Many thanks,
>>
>> Stewart