File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Webservices with Axis 1.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservices with Axis 1.3 " Watch "Webservices with Axis 1.3 " New topic

Webservices with Axis 1.3

Amutha Ramesh

Joined: Oct 04, 2006
Posts: 6

Currently I am working with Axis 1.3 to deploy webservices.My webservice has got 3 methods
* login
* create
* query
I am facing problem when the Soap request format is similar to the one below.

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi=""><soapenv:Body><test xmlns="urn:WithoutTag"><sObjects><sampletag>testvalue</sampletag></sObjects></test></soapenv:Body></soapenv:Envelope>

In the above Soaprequest the contents under <sObjects> tag should be treated as a string. Is there any way to solve this problem?

Any help would be greatly appreciated
Watsh Rajneesh
Ranch Hand

Joined: Apr 17, 2006
Posts: 110
You can pass XML content to be not parsed and hence be treated as string text by demarcating that XML content as a CDATA section in your SOAP message.

And you can add a CDATA section to your XML document (programmatically) using the DOM 2.0 API as:

I am not sure if this is what you were looking for?

SCJP 5.0 (90%), SCDJWS 1.4 (88%), SCWCD 1.4 (82%), SCBCD 1.3 (85%)
Amutha Ramesh

Joined: Oct 04, 2006
Posts: 6
Thankyou Rajneesh.

If I am going to pass the Soap request like the one below


then my request format would change right.

But my request format should be similar to something like

<soapenv:Envelope xmlns:soapenv=\"\" xmlns:xsd=\"\" xmlns:xsi=\"\">
<test xmlns=\"urn:WithoutTag\">

My client invoking the webservice is thru javascript.
Is there any way to proceed with this aspect? I couldn't figure out the issue happening here.

With Regards,
I agree. Here's the link:
subject: Webservices with Axis 1.3
It's not a secret anymore!