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 OT kind of.  Axis2/C problem parsing CDATA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "OT kind of.  Axis2/C problem parsing CDATA" Watch "OT kind of.  Axis2/C problem parsing CDATA" New topic

OT kind of. Axis2/C problem parsing CDATA

Doug Slattery
Ranch Hand

Joined: Sep 15, 2007
Posts: 294
I know this may be off topic, but I was curious if any fellow ranchers have come across this in their coding ventures.

I'm working on a 'C' project changing an interface from a vendor api that only supports HP to a SOAP interface on Linux to access a web service. The response object has CDATA in the XML stream that Axis2/C is not deserializing. From doing some googling, I get the impression that others have encountered issues with CDATA and Axis2 in general, and am wondering if it is even supported.?.?

The only work around that I've found that might work, is to add a callback where the raw xml is being read from the response and calling it so my app can parse it out manually. There is only a single CDATA element in the response, so it will be pretty simple. I'd rather not do that for obvious reasons.

I'm using version 1.6.0

Any thoughts are appreciated.
- Doug

-- Nothing is impossible if I'mPossible
It is sorta covered in the JavaRanch Style Guide.
subject: OT kind of. Axis2/C problem parsing CDATA