axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen" <andreas.veit...@gmail.com>
Subject Re: Reg "Part content ID cannot be blank for non root MIME parts" error
Date Thu, 08 Jan 2009 19:24:03 GMT
Can you set the log level for org.apache.axiom.attachments to DEBUG,
run this again and post the logs? That should allow us to identify the
problem.

Andreas

On Thu, Jan 8, 2009 at 11:41, SivaKrishna Kumar <bskk76@gmail.com> wrote:
> Hello All:
> This is Siva from Hyderabad, India. Can you please help me in an issue. Here
> is what I am stuck at.
> Zolera SOAP Infrastructure (ZSI) is an open source API written in Python for
> Web Services. ZSI doesn't support MTOM for attachment uploads/downloads over
> web services. I am trying to add this functionality to ZSI.
> For this I have modified ZSI to send attachments using MTOM. My developement
> environment is
> I am using Apache's Axis2 server for testing attachment upload. As you are
> aware, Axis2 comes with an example for attachments uploading using MTOM. I
> have written a client in Python which will talk to Axis2 server using ZSI.
> When I tried to run the MTOM Sample client that is written in Python with
> the changes made to ZSI for MTOM, I am getting the below error.
> "Part content ID cannot be blank for non root MIME parts"
> Here is the MTOMized SOAP message and the headers I am sending to the Axis2.
> *************************************************************************************************************************************************************************************************************************************************************************
> MIME SOAP Message:
> --==ZSI_MIME_BOUNDARY==
> Content-Transfer-Encoding: 7bit
> Content-Type: application/xop+xml; type="text/xml"
> Content-ID: <soaplibEnvelope>
> <ns0:Envelope
> xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"><ns0:Header
> /><ns0:Body><ns1:AttachmentRequest
> xmlns:ns1="http://ws.apache.org/axis2/mtomsample/"><ns1:fileName>w:\WirelessDiagLog_axis_mtomexample_saved.rar</ns1:fileName><ns1:binaryData><ns2:Include
> href="cid:ZSIAttachment_1" xmlns:ns2="http://www.w3.org/2004/08/xop/include"
> /></ns1:binaryData></ns1:AttachmentRequest></ns0:Body></ns0:Envelope>
> --==ZSI_MIME_BOUNDARY==
> Content-Type: application/octet-stream
> Content-Transfer-Encoding: 8bit
> Content-ID: <ZSIAttachment_1>
> //binary conent of the file
> --==ZSI_MIME_BOUNDARY==--
> *************************************************************************************************************************************************************************************************************************************************************************
> Headers:
> SOAPAction: '"attachment"'
> Content-Length: 1213
> Content-Type: 'multipart/related; boundary="==ZSI_MIME_BOUNDARY==";
> type="application/xop+xml"; start-info="text/xml";
> start="<soaplibEnvelope>"'
> *************************************************************************************************************************************************************************************************************************************************************************
> I am not able to understand where is the problem in the changes I made to
> ZSI for adding MTOM support.
> Can you please help me out in this regard ?
> Thank you in advance,
> Regards
> Siva

Mime
View raw message