Elodie

If this is really simple, you could just use the NO DATA BINDING
option on WSDL2Java, because you can just walk the OMElement. When you
get to the MTOM element you just use the OMText model to treat it as a
MTOM and pull out the data. If you want help I can probably write a
sample. Its just the opposite of the client code. You can also just do
it using the RawXMLMessageReceiver that comes with Axis2.

It would also be helpful if you could post the WSDL you are having
problems with as we'd like to fix ADB so it works for you.

Paul



On 6/30/06, Mancinelli Elodie <[EMAIL PROTECTED]> wrote:
Hi all,

I really need your help.
I want to create a WS which supports an attachment and WSRM
specifiaction. My problem is separatly WSRM and MTOM works correctly but
when I  make  a service with together , it not  works. My client sends
messages and in TCPMon, I observe soap messages of requests and
responses. The problem is on the server, I have this error:

org.apache.sandesha2.SandeshaException: Data binding error; nested
exception is:
       java.lang.RuntimeException: Data binding error; nested exception is:
       org.apache.axis2.AxisFault: Data binding error; nested exception is:
       java.lang.RuntimeException: Data binding error
       at
org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
Caused by: org.apache.axis2.AxisFault: Data binding error; nested
exception is:
       java.lang.RuntimeException: Data binding error
       at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
       at
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:50)

       at
org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34)

       at
org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)
       at org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
       at
org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)
Caused by: java.lang.RuntimeException: Data binding error
       at
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174)

       at
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:46)

       ... 4 more
Caused by: org.apache.axiom.om.OMException: java.lang.NullPointerException
       at
org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
       at
org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365)

       at
org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1154)
       at
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
       at
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
       at
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)

       at
fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128)

       at
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:145)

       ... 5 more
Caused by: java.lang.NullPointerException
       at
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737)

       at
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)

       at
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)

       at org.apache.coyote.Request.doRead(Request.java:423)
       at
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)

       at
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
       at
org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292)
       at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104)

       at java.io.FilterInputStream.read(FilterInputStream.java:66)
       at java.io.PushbackInputStream.read(PushbackInputStream.java:120)
       at
org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:49)

       at
javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
       at
javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:92)
       at javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:59)
       at
org.apache.axiom.attachments.PartOnMemory.<init>(PartOnMemory.java:31)
       at
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
       at
org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359)
       at
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:324)
       at
org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:274)

       at
org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:151)

       at
org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:341)

       at
org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:368)

       at
org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)

Is the problem is due to the marshalling XmlBeans? and why? I try ADB,
but I can't generate the skeleton with WSDL2Java. Is there an other kind
of marshalling?

Please help me.

Thank for your time

Regards
Elodie

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to