Hi,

By following this guide i managed to integrate esb with the openfire.

http://rangasiriwardena.blogspot.com/2011/01/configure-wso2-esb-with-xmpp-transport.html

As the $subject indicated i tried to invoke a web service hosted on the ESB 
like echo through an XMPP chat message by using Pidgin.

Message body is the soap envelope:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:echo="http://echo.services.core.carbon.wso2.org";>
   <soapenv:Header/>
   <soapenv:Body>
      <echo:echoString>
         <!--Optional:-->
         <in>test</in>
      </echo:echoString>
   </soapenv:Body>
</soapenv:Envelope>



As a result on the esb i get the following:

Exception in thread "XMPPWorker-1" java.lang.StringIndexOutOfBoundsException: 
String index out of range: -11
        at java.lang.String.substring(String.java:1937)
        at 
org.apache.axis2.transport.xmpp.util.XMPPPacketListener.createSOAPEnvelopeForRawMessage(XMPPPacketListener.java:249)
        at 
org.apache.axis2.transport.xmpp.util.XMPPPacketListener.buildSOAPEnvelope(XMPPPacketListener.java:192)
        at 
org.apache.axis2.transport.xmpp.util.XMPPPacketListener.createMessageContext(XMPPPacketListener.java:154)
        at 
org.apache.axis2.transport.xmpp.util.XMPPPacketListener.access$000(XMPPPacketListener.java:58)
        at 
org.apache.axis2.transport.xmpp.util.XMPPPacketListener$Worker.run(XMPPPacketListener.java:315)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)


I can see i am sending the message in the wrong way. So how can i invoke a web 
service by XMPP chat message or based on the SOAP over XMPP what kind of client 
api can i use to send the SOAP envelope as a message body? 




Fatih Güçlü Akkaya

Software Development Engineer
 



 


_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to