Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue with MTOM with Attachments using SwA  RSS feed

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

I am trying to attach a zip file(could actually be any file) along with a MTOM msg. I gather from this link 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(
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
at org.apache.axis2.description.OutInAxisOperationClient.send(

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?


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