You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Krishna Verumuri <kv...@yahoo.com> on 2006/01/11 07:24:51 UTC

axis1.3-MTOM, help needed???

We are sending a binary file from .NET(VS 2005) with MTOM enabled with 
Axis1.3 and ran into some exceptions. Any similar experiences????
   
  for image1 the WSDL has an entry 
  <element name="image1" nillable="true" type="xsd:base64Binary" />
   
  SOAP request looks like this
   
  ----MIMEBoundary632725276169531250
content-id: <0....@example.org>
content-type: application/xop+xml; charset=utf-8; type="text/xml; 
charset=utf-8"
content-transfer-encoding: binary
  <soap:Envelope xmlns:xop="http://www.w3.org/2004/08/xop/include" 
....<image1 xsi:type="xsd:base64Binary"><xop:Include 
href="cid:1.632725276169687500@example.org" /></image1>...</soap:Envelope>
  ----MIMEBoundary632725276169531250
content-id: <1....@example.org>
content-type: application/octet-stream
content-transfer-encoding: binary
.......
   
  Axis fails with the following exception.
   
  AxisFault
 faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: SimpleDeserializer encountered 
a child element, which is NOT expected, in something it was trying to 
deserialize.
 faultActor: 
 faultNode: 
 faultDetail: 
 {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: 
SimpleDeserializer encountered a child element, which is NOT expected, in 
something it was trying to deserialize.
 at 
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
 at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
 at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
 at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
 at 
org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:369)
 at 
org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
 at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
 at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
 at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
 at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
 at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
 at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:81)
 at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
 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.handlers.soap.SOAPService.invoke(SOAPService.java:453)
 at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
 at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   
  -Krishna


		
---------------------------------
Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.