Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes Can I use Axis2 as a client to send non-SOAP xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Can I use Axis2 as a client to send non-SOAP xml?" Watch "Can I use Axis2 as a client to send non-SOAP xml?" New topic
Author

Can I use Axis2 as a client to send non-SOAP xml?

Cas Ramsey
Greenhorn

Joined: Mar 28, 2011
Posts: 1
Hi Guys,

Although I've previously had a lot of help looking through the Java Ranch forums, this is my first post, so let me say hello to you all -

I'm trying to build an app that will access, what I was led to believe was, a web service, so for the last few days I've been trying to get to grips with Axis2. Now that I'm almost there, I've been told that the service is not actually a web service because it doesn't use SOAP, although it is xml sent over HTTP. However, now that I've got so far I would still like to utilise the connection, proxy properties, etc of Axis2 that make accessing web services easy, but I just want to send some xml that I create rather than the SOAP header/body/envelope/etc.

Basically I think the problem I'm having is that ServiceClient.sendRecieve(OMElement); take my OMElement and puts it in the SOAP body before sending. What I need it to do is to just send the element as is.

If this is not possible with Axis2, does anyone have any other bright ideas on how to leverage all the functionality but just send the xml?

Thanks kindly for your help
Cas
 
wood burning stoves
 
subject: Can I use Axis2 as a client to send non-SOAP xml?
 
Similar Threads
client implementation with Axis2
SOAP with Attachments (SwA) with Axis2, problem.
Am I just stupid, or is this really supposed to be difficult?
wsdl stubs adding own namespace around soap message
axis2.AxisFault: Transport error: 403 Error: Forbidden