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

JAX-RPC attachment return MIME message without start parameter

Expand Messages
  • gomailme
    Hi, Can anyone help me with this problem? I have a java web service written using JAX-RPC. I have a test function which accepts a file and return the same
    Message 1 of 2 , Feb 5, 2004
    • 0 Attachment
      Hi,

      Can anyone help me with this problem?

      I have a java web service written using JAX-RPC. I have a test
      function which accepts a file and return the same file for testing.
      The sending procedure is successful, but soap lite complains about
      the returned attachment was without a start-parameter.

      Since start-parameter is not mandatory in W3C soap attachment (but
      recommended) and JAVA is not returning it now, is there a way to fix
      this?

      Melody.


      The following is the trace:

      Can't find 'start' parameter in multipart MIME message

      Connection: close
      Date: Fri, 06 Feb 2004 01:44:23 GMT
      Server: Apache Coyote/1.0
      Content-Type: multipart/related; type="text/xml"; boundary="----
      =_Part_6_17614640.1076031863961"
      Client-Date: Fri, 06 Feb 2004 01:44:23 GMT
      Client-Peer: 127.0.0.1:8080
      Client-Response-Num: 1
      Client-Transfer-Encoding: chunked
      SOAPAction: ""

      ------=_Part_6_17614640.1076031863961
      Content-Type: text/xml

      <?xml version="1.0" encoding="UTF-8"?>
      <env:Envelope xmlns: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:enc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns0="urn:Foo"
      xmlns:ns1="http://java.sun.com/jax-rpc-ri/internal"
      env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <env:Body>
      <ns0:testResponse>
      <result xsi:type="ns1:datahandler" href="cid:ID1"/>
      </ns0:testResponse>
      </env:Body>
      </env:Envelope>
      ------=_Part_6_17614640.1076031863961
      Content-Type: text/xml; name="test.xml"
      Content-Id: ID1

      *** CONTENTS OF THE FILE IN STRING ***

      ------=_Part_6_17614640.1076031863961--
    • Byrne Reese
      This has been fixed in SOAP::Lite 0.65 - in that version, the start parameter will be looked for first. If it is not present, then the root part will be used.
      Message 2 of 2 , Oct 8, 2004
      • 0 Attachment
        This has been fixed in SOAP::Lite 0.65 - in that version, the start
        parameter will be looked for first. If it is not present, then the root
        part will be used.

        gomailme wrote:

        > Hi,
        >
        > Can anyone help me with this problem?
        >
        > I have a java web service written using JAX-RPC. I have a test
        > function which accepts a file and return the same file for testing.
        > The sending procedure is successful, but soap lite complains about
        > the returned attachment was without a start-parameter.
        >
        > Since start-parameter is not mandatory in W3C soap attachment (but
        > recommended) and JAVA is not returning it now, is there a way to fix
        > this?
        >
        > Melody.
        >
        >
        > The following is the trace:
        >
        > Can't find 'start' parameter in multipart MIME message
        >
        > Connection: close
        > Date: Fri, 06 Feb 2004 01:44:23 GMT
        > Server: Apache Coyote/1.0
        > Content-Type: multipart/related; type="text/xml"; boundary="----
        > =_Part_6_17614640.1076031863961"
        > Client-Date: Fri, 06 Feb 2004 01:44:23 GMT
        > Client-Peer: 127.0.0.1:8080
        > Client-Response-Num: 1
        > Client-Transfer-Encoding: chunked
        > SOAPAction: ""
        >
        > ------=_Part_6_17614640.1076031863961
        > Content-Type: text/xml
        >
        > <?xml version="1.0" encoding="UTF-8"?>
        > <env:Envelope xmlns: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:enc="http://schemas.xmlsoap.org/soap/encoding/"
        > xmlns:ns0="urn:Foo"
        > xmlns:ns1="http://java.sun.com/jax-rpc-ri/internal"
        > env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        > <env:Body>
        > <ns0:testResponse>
        > <result xsi:type="ns1:datahandler" href="cid:ID1"/>
        > </ns0:testResponse>
        > </env:Body>
        > </env:Envelope>
        > ------=_Part_6_17614640.1076031863961
        > Content-Type: text/xml; name="test.xml"
        > Content-Id: ID1
        >
        > *** CONTENTS OF THE FILE IN STRING ***
        >
        > ------=_Part_6_17614640.1076031863961--
        >
        >
        > ------------------------------------------------------------------------
        > *Yahoo! Groups Links*
        >
        > * To visit your group on the web, go to:
        > http://groups.yahoo.com/group/soaplite/
        >
        > * To unsubscribe from this group, send an email to:
        > soaplite-unsubscribe@yahoogroups.com
        > <mailto:soaplite-unsubscribe@yahoogroups.com?subject=Unsubscribe>
        >
        > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
        > Service <http://docs.yahoo.com/info/terms/>.
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.