Loading ...
Sorry, an error occurred while loading the content.

Re: reducing header size?

Expand Messages
  • Robert Eden
    I have a solution! ( reducing envelope size) sub SOAP::Serializer::register_ns { return 1; } It worked like a charm... envelope size has dropped over 100
    Message 1 of 2 , Nov 20, 2006
    View Source
    • 0 Attachment
      I have a solution! ( reducing envelope size)

      sub SOAP::Serializer::register_ns { return 1; }

      It worked like a charm... envelope size has dropped over 100 bytes and now we're not getting errors any more! Some cases may need the additional schema info, but my case did not.

      Robert


      ----- Original Message ----
      From: Robert Eden <rmeden@...>
      To: soaplite@yahoogroups.com
      Sent: Monday, November 13, 2006 12:41:00 AM
      Subject: reducing header size?

      Howdy all..

      I have a strange problem... I'm a developer on the XMLTV project (http://www.xmltv.org, provides tv guide data to various apps). One of our data grabbers uses a SOAP::Lite call to collect data.

      There is a bug on the server side (out of our control) that causes data corruption when a data field spans a TCP/IP packet. We're working with the server folks to fix it, but this bug has been around for a while.

      An old version of SOAP::Lite produced this envelope: (spacing added of course)
      <SOAP-ENV:Envelope
      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";;
      xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";;
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";;
      xmlns:xsd="http://www.w3.org/1999/XMLSchema";;
      SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";;>

      Current versions of various modules produce this SOAP envelope.
      <soap:Envelope
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";;
      xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";;
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";;
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";;
      xmlns:tms="urn:TMSWebServices"
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";;
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";;
      xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";;
      xmlns:xsd="http://www.w3.org/2001/XMLSchema";;>


      As you can see it's quite a bit bigger, and causes lots of folks using our grabber to have problems getting data.

      Is there a way with current versions of SOAP::Lite to reduce the header size? I tried:resetting {'_namespaces'} and {'_xmlschemas'}, but that didn't help.

      Robert
    Your message has been successfully submitted and would be delivered to recipients shortly.