Hi mathieu,

The meaning of the error that you are getting is that our data binding
framework, ADB, is expecting a particular element, but it is receiving
the header element (I presume SOAP header element).

If you are extracting the SOAP message from the XMPP transport and
setting that to the message context properly, I think this error is not
because of your transport.

I'd check like this.

First get the SOAP message back from message context, after setting that within ur transport and print it out. If you see proper soap messages with headers and body, then you are good.

Then debug the message receiver and try to see what element it is trying to read from the SOAP message.

HTH,
Chinthaka

mathieu fabre wrote:
Hi,
you say : "You need to extract the SOAP message from the XMPP message and then need
to set the SOAP message to the the message context."
but i do that thing on the server side. And after, i give the message context (which is complete) to the axis engine (receive methode). And this is when i do this action that i obtain the ADBException : unexpected subelement header.....

2007/11/7, Deepal jayasinghe <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:

    mathieu fabre wrote:
     > hi,
     >
     > I would like to implement my own transport in xmpp (jabber)
     > i write a XMPPTransportSender and a XMPPSimple Server like for the
     > http transport.
     > i add these sender and receiver in the axis2.xml config file.
    Well we have already implement the XMPP transport , will commit
    soon.  :)
     >
     > The client extract the soap message from the messageContext and send
     > it to a chat (in the invoke method)
     > using the "writeWithCommon" method (which is the client method)
     >
     > The server receive the soap message via the chat and recreate the
     > messageContext using
     > transportUtils class.
     >
     > My problem : i obtain an exception when i send the message context to
     > axis engine - AxisEngine.receive(messageContext)
     >
     > the exception is :
     >
     > org.apache.axis2.fault : org.apache.axis2.databinding.ADBException :
     > Unexpected subelement header...
    You need to extract the SOAP message from the XMPP message and then
    need
    to set the SOAP message to the the message context.

    Thanks
    Deepal

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






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

Reply via email to