python zsi xml error help

2008-03-11
2013-05-02
  • Michael Angelo Calimlim

    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.

     
    • Shay Halsband

      Shay Halsband - 2008-03-11

      so this happen with java when then the call was passes through an http proxy.
      are you behind a proxy?

       
    • Michael Angelo Calimlim

      im not behind a proxy... hmmmmm...

       
    • Michael Angelo Calimlim

      well anyway thanks for your time...

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks