my dog learned polymorphism*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I use Axis2 as a client to send non-SOAP xml?