Mathieu You might want to look at the refactoring that Asankha did for creating Axis2 transports. I believe he has tried to create some simple "base" classes you can extend. The code is in the Synapse tree, but the results are pure Axis2.
https://svn.apache.org/repos/asf/webservices/synapse/trunk/java/modules/transports I can't help with your actual problem but thanks for working on XMPP - that will be a great addition. Paul On Nov 7, 2007 7:04 PM, mathieu fabre <[EMAIL PROTECTED]> 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]>: > > > 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] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Paul Fremantle Co-Founder and VP of Technical Sales, WSO2 OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com
