views:

205

answers:

1

Hi,

I have written a service using Axis2. Now I wish to consume it using a browser based client written in JavaScript.

Would appreciate if some one could give any pointers on this.

Thanks

+1  A: 

There are several options when deploying an Axis2 service, ranging from the webservice style (ex: RPC), encoding, transport (tcp/http), handlers, attachments, WS-Security, etc. which makes it hard or impossible to implement a fully compliant Axis2 client.

I would strongly recommend you publish your services enabling the REST api and consume the services via REST. Here's the link to the docs: http://ws.apache.org/axis2/1_5/rest-ws.html

If you want to take the hard route and parse soap messages, I would recommend that you write your client using GWT and expose some services using GWT exporter

Miguel Ping