Hi,

I am brand new to CXF, just downloaded about 4 hours ago, but I've got a lot of 
experience with SOAP. I've been trying to implement a Java client for an odd 
.Net web service served up by an outside company for several days and found CXF 
today. I should state up front I am _not_ using Spring. Also, I am using 
wsdl2java against the company's WSDL.

The WS oddities are many, but where my difficulty comes in is that the WS 
demands data encoded something like this:

<dataElement>&lt;Element Attribute="Value"/&gt;</dataElement>
<objectElement><Element Attribute="Value"/></objectElement>

Where dataElement is a String and objectElement is a sequence of any. Both the 
dataElement and the objectElement are required, are equivalent aside from the 
escaped < and > characters. Also they are valid XML document fragments defined 
by the company that publishes the WS.

I can fix the objectElement by creating a local copy of the WSDL and modifying 
the sequence of any to match the document fragment I need to consume, but I'm 
really stuck on the dataElement piece because the &lt; is being escaped as 
&amp;lt;. If I change the dataElement to <Element.../>, the result is 
&lt;Element.../>, in other words the greater than doesn't get escaped. Is there 
any way around this?

Reply via email to