Hi group,

 

I am currently trying to implement an axis 1.4 web service (with a
client) with attachments using MTOM.

 

Somewhere it was said, that this is also possible with axis 1.4. But
unfortunately I don't get it working. I'm sending the attachments from
the server side via MTOM, but I can't receive them on the client.

The problem seems to be on the client side. On the client I get this
error: [#text: Error in parsing mime data stream:  null

I included the stacktrace and the response message as attachments.

 

My questions:

*         Is it possible to implement a Web Service with Attachments
using MTOM and Axis 1.4?

*         Do I have to tell the client somehow that MTOM is being used?

*         Can you provide some help to my issue?

 

The future plan is to migrate to axis2, but this would take too long for
my current issue.

Hopefully waiting for your answers.

 

Matthias.

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: multipart/related;type="application/xop+xml"; 
start="<7915F7F54A4B0D2AEA202F564BB5CF74>"; start-info="text/xml;   
boundary="----=_Part_16_1353011365.1218708034900";charset=utf-8Date: Thu, 14 
Aug 2008 10:02:34 GMTConnection: 
close------=_Part_16_1353011365.1218708034900Content-Type: application/xop+xml; 
charset=utf-8; type="text/xml; charset=utf-8"Content-Transfer-Encoding: 
binaryContent-Id: 
   <7915F7F54A4B0D2AEA202F564BB5CF74>
      <?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:Header>
               <ns1:sessionID 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; 
soapenv:mustUnderstand="0" 
xmlns:ns1="http://xml.apache.org/axis/session";>D44ACC6CA1444701A04FD73F6452565E</ns1:sessionID>
               <ns2:ServerID 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; 
soapenv:mustUnderstand="0" 
xmlns:ns2="http://t-systems.de/pdmwebconnector/serverid";>pdmwebconnector</ns2:ServerID>
            </soapenv:Header>
            <soapenv:Body>
               <showDecisionInfoResponse xmlns="xxx">
                  <ns3:container xmlns:ns3="xxx">
                     <ns3:object>
                        <ns3:attribute name="ObjectID">123456789</ns3:attribute>
                        <ns3:attribute 
name="externalObjectID">123</ns3:attribute>
                        <ns3:attribute name="Success">true</ns3:attribute>
                     </ns3:object>
                  </ns3:container>
               </showDecisionInfoResponse>
            </soapenv:Body>
         </soapenv:Envelope>
------=_Part_16_1353011365.1218708034900
Content-Type: application/octetstream
Content-Transfer-Encoding: binary
Content-Id: 
         <response.pdf>%PDF-1.3%4 0 obj
            <
               < /Type /Info/Producer (null) >>endobj5 0 obj
                  <
                     < /Length 398 /Filter /FlateDecode  
>>streamxOO0_|__R(_lDc__y _-__[__E?m^i_E_0R0_2 ,_l9!YCm_e4z)?N_1R__h!__y?TH    
=Su_;~BZ!aj__Gf_7       r_)oSfu_e??.i"s]__m?20vTl 
_?A_2?__3Z? PUvž_AOl?/8SfM_X_K_P78=?\_j+__C 
D_ 
t/8dG#
_g5akI3_m[\*x-x_jrPö/?1"_
_#e^_;[EMAIL PROTECTED]@__~__?__tT#endstreamendobj6 0 obj
                        <
                           < /Type /Page/Parent 1 0 R/MediaBox [ 0 0 595 842 
]/Resources 3 0 R/Contents 5 0 R>>endobj7 0 obj
                              <
                                 < /Type /Font/Subtype /Type1/Name /F3/BaseFont 
/Helvetica-Bold/Encoding /WinAnsiEncoding >>endobj8 0 obj
[#text: Error in parsing mime data stream:  null
        at 
org.apache.axis.attachments.MultiPartRelatedInputStream.<init>(MultiPartRelatedInputStream.java:336)
        at 
org.apache.axis.attachments.AttachmentsImpl.<init>(AttachmentsImpl.java:119)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.axis.Message.setup(Message.java:352)
        at org.apache.axis.Message.<init>(Message.java:235)
        at 
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:779)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
        at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at 
com.tsystems.epdm.pwclient.webservice.soapclient.UniversalStub.invoke(UniversalStub.java:675)
        at 
com.tsystems.epdm.pwclient.servlet.SearchServlet.doPost(SearchServlet.java:156)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:619)
]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to