I have a script that would call a web service thru the Binding class, but when the response xml is recieved the ZSI library outputs/throws this error "text/plain", not "text/xml", but the Content-type in the header is text/xml. (See below)
Sample response xml:
Server: Microsoft-IIS/5.0
Date: Tue, 11 Mar 2008 06:02:16 GMT
Connection: close
Content-Length: 655
Content-Type: text/xml; charset=utf-8
SOAPServer: SOAP::Lite/Perl/0.65_5
I have a script that would call a web service thru the Binding class, but when the response xml is recieved the ZSI library outputs/throws this error "text/plain", not "text/xml", but the Content-type in the header is text/xml. (See below)
Sample response xml:
Server: Microsoft-IIS/5.0
Date: Tue, 11 Mar 2008 06:02:16 GMT
Connection: close
Content-Length: 655
Content-Type: text/xml; charset=utf-8
SOAPServer: SOAP::Lite/Perl/0.65_5
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<namesp1:loginResponse xmlns:namesp1="/NS">
<loginResultCode xsi:type="xsd:int">1234</loginResultCode>
<session xsi:type="xsd:string">234234234234234234</session>
<timeSessionCreated xsi:type="xsd:string">3/11/2008 14:02:17</timeSessionCreated>
</namesp1:loginResponse>
</soap:Body>
</soap:Envelope>
Am I missing something? (configurations or settings in the library or whatsoever...). Thanks for your help.
so this happen with java when then the call was passes through an http proxy.
are you behind a proxy?
im not behind a proxy... hmmmmm...
well anyway thanks for your time...