• Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue with MTOM with Attachments using SwA  RSS feed

 
Continuous Learner
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to attach a zip file(could actually be any file) along with a MTOM msg. I gather from this link http://axis.apache.org/axis2/java/core/docs/mtom-guide.html#a33 that it could actually be an MTOM msg. In My options i set the following code



but I am ending up at an error which says
org.apache.axis2.AxisFault: The input stream for an incoming message is null.
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)


Looking at the content_type, i see that type has been set to type="text/xml"

If I disable SWA, then the content_type becomes type="application/xop+xml" which seems to make sense. As you can see, I tried setting the content_type but it does not make any difference. I think I am doing something fundamentally wrong.

Can anyone suggest any pointers. Am I doing it the right way?

Regards,



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!