axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SivaKrishna Kumar" <bsk...@gmail.com>
Subject [Axis2]
Date Wed, 27 Aug 2008 17:53:51 GMT
Hi,

I am trying to add MTOM support to ZSI. When I send a request which is
processed for MTOM, on the server side I am getting the below error.


org.apache.http.MalformedChunkCodingException: Bad chunk header
        at
org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:232)
        at
org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:183)
        at
org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:155)
        at
org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:175)
        at
org.apache.http.impl.io.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:289)
        at
org.apache.http.impl.io.ChunkedInputStream.close(ChunkedInputStream.java:262)
        at
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:192)
        at
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Thread.java:619)

On the client side I am getting the below SOAP fault

invalid literal for int() with base 16: ''

Here are my headers and body sent to Axis's MTOM Sample Service.

Can some one point me where is the problem. ?

Thanks & Regards
Siva

[mtom:apply_mtom]: mtomheaders:
{'SOAPAction': '"attachment"', 'Content-Type': 'multipart/related;
boundary="==ZSI_MIME_BOUNDARY=="; start-info="text/xml";
start="<soaplibEnvelope>"'}
[mtom:apply_mtom]: mtombody:
--==ZSI_MIME_BOUNDARY==
Content-Transfer-Encoding: binary
Content-ID: <soaplibEnvelope>
Content-Type: text/xml; charset=utf-8

<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"><ns0:Header
/><ns0:Body><ns1:AttachmentRequest xmlns:ns1="
http://ws.apache.org/axis2/mtom
sample/"><ns1:fileName>c:\Sample_mtom.zip</ns1:fileName><ns1:binaryData><ns2:Include
href="cid:ZSIAttachment_1" xmlns:ns2="http://www.w3.org/2004/08/xop/incl
ude" /></ns1:binaryData></ns1:AttachmentRequest></ns0:Body></ns0:Envelope>
--==ZSI_MIME_BOUNDARY==
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: <ZSIAttachment_1>

ìë7í"3?9?»ñ(?┘►S‼K3É3 PK☺☻¶ ¶  ⌡h←93▬Wçh   ╚   ←       ☺  
╢ü
Sample_txt_mtom_clieent.txtPK♣♠    ☺ ☺ I   í
--==ZSI_MIME_BOUNDARY==--
Mime
View raw message