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

Processing attachments

Expand Messages
  • Eric Jain
    I m trying to process a response with an attachment (see below), but SOAP::MIME complains: Unresolved (wrong?) href (id0) in element retrieveReturn . Not
    Message 1 of 2 , Jun 27, 2003
    • 0 Attachment
      I'm trying to process a response with an attachment (see below), but
      SOAP::MIME complains: "Unresolved (wrong?) href (id0) in
      element 'retrieveReturn'". Not sure what is wrong here; a client
      built with Axis works fine.

      Incidently, if I use SOAP::Lite without SOAP::MIME, it works,
      provided the attachment is "text/plain". Is there any easy way to get
      it to handle "text/xml" without complaining about "Unrecognized
      type ''"?


      HTTP/1.1 200 OK
      ...
      Content-Type: multipart/related; type="text/xml";
      start="<698BF2F4180D5E229070C32E45DE8E28>"; boundary="----
      =_Part_17_9704015.1056728975879"


      ------=_Part_17_9704015.1056728975879
      Content-Type: text/xml; charset=UTF-8
      Content-Transfer-Encoding: binary
      Content-Id: <698BF2F4180D5E229070C32E45DE8E28>

      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <retrieveResponse
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <retrieveReturn href="#id0"/>
      </retrieveResponse>
      <multiRef id="id0" soapenc:root="0"
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      href="cid:59245638DD0A5DD826D4D2989DE4CF7C"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns1="http://expasy.org/soap/sptr/"/>
      </soapenv:Body>
      </soapenv:Envelope>
      ------=_Part_17_9704015.1056728975879
      Content-Type: text/xml
      Content-Transfer-Encoding: binary
      Content-Id: <59245638DD0A5DD826D4D2989DE4CF7C>

      <?xml version="1.0" encoding='UTF-8'?>
      <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns="http://expasy.org/rdf-syntax-ns#">
      ...
      </rdf:RDF>
      ------=_Part_17_9704015.1056728975879--
    • Byrne Reese
      This is a bug in SOAP::MIME obviously. Below is a patch for the fix (which should be applied to SOAP::Lite.pm. I will release a fix for this soon. 75c75,78
      Message 2 of 2 , Jun 30, 2003
      • 0 Attachment
        This is a bug in SOAP::MIME obviously. Below is a patch for the fix (which should be applied to SOAP::Lite.pm. I will release a fix for this soon.
         
        75c75,78
        <   sub SOAP::MIMEParser::get_multipart_id { (shift || '') =~ /^<?(.+)>?$/; $1 || '' }
        ---
        >   sub
        get_multipart_id {
        >     my ($id) =
        shift;
        >     ($id || '') =~ /^<?([^>]+)>?$/;
        $1 || '';
        >   }
        -----Original Message-----
        From: Eric Jain [mailto:jain@...]
        Sent: Friday, June 27, 2003 9:05 AM
        To: soaplite@yahoogroups.com
        Subject: [soaplite] Processing attachments

        I'm trying to process a response with an attachment (see below), but
        SOAP::MIME complains: "Unresolved (wrong?) href (id0) in
        element 'retrieveReturn'". Not sure what is wrong here; a client
        built with Axis works fine.

        Incidently, if I use SOAP::Lite without SOAP::MIME, it works,
        provided the attachment is "text/plain". Is there any easy way to get
        it to handle "text/xml" without complaining about "Unrecognized
        type ''"?


        HTTP/1.1 200 OK
        ...
        Content-Type: multipart/related; type="text/xml";
        start="<698BF2F4180D5E229070C32E45DE8E28>";       boundary="----
        =_Part_17_9704015.1056728975879"


        ------=_Part_17_9704015.1056728975879
        Content-Type: text/xml; charset=UTF-8
        Content-Transfer-Encoding: binary
        Content-Id: <698BF2F4180D5E229070C32E45DE8E28>

        <?xml version="1.0" encoding="UTF-8"?>
        <soapenv:Envelope
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <soapenv:Body>
          <retrieveResponse
        soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
           <retrieveReturn href="#id0"/>
          </retrieveResponse>
          <multiRef id="id0" soapenc:root="0"
        soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        href="cid:59245638DD0A5DD826D4D2989DE4CF7C"
        xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:ns1="http://expasy.org/soap/sptr/"/>
        </soapenv:Body>
        </soapenv:Envelope>
        ------=_Part_17_9704015.1056728975879
        Content-Type: text/xml
        Content-Transfer-Encoding: binary
        Content-Id: <59245638DD0A5DD826D4D2989DE4CF7C>

        <?xml version="1.0" encoding='UTF-8'?>
        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://expasy.org/rdf-syntax-ns#">
        ...
        </rdf:RDF>
        ------=_Part_17_9704015.1056728975879--




        To unsubscribe from this group, send an email to:
        soaplite-unsubscribe@yahoogroups.com



        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
      Your message has been successfully submitted and would be delivered to recipients shortly.