What does the WSDL say is the type for the parameter?    If the type is 
"xsd:string",  then what Axis2 is doing is completely wrong.      Anyway, the 
wsdl type is what we'd need to see as a starting point for how to handle this.


Dan


On Sat December 19 2009 9:33:15 am Daniel Putra wrote:
> Hi Vickatvuuch
> 
> It works fine with AXIS2 but CXF converts < > into &gt; and &lt; which is
>  wrong for my case. So if AXIS2 can do it automatically there must be a way
>  that CXF can handle this too?
> 
> Thanks
> Daniel Putra
>         vickatvuuch <[email protected]>
>         Subject Re: XML Data as method parameter
>         Date Fri, 18 Dec 2009 17:07:30 GMT
> 
> 
>   It must escape as it needs to send xml inside xml soap envelope..
>   When you send request over it would be encoded, when you get
>   the data in your port as a string it should come decoded back.
> 
>   ----- Original Message -----
>   From: Daniel Putra
>   To: [email protected]
>   Sent: Wednesday, December 16, 2009 10:28 PM
>   Subject: XML Data as method parameter
> 
> 
>   Hi
> 
>   One of the methods of the third party web service I have to connect to
>  takes a string which consists of xml tags like "<Providers><Provider
>  ProviderCode = "AG"/><Provider ProviderCode = "ALT"/></Providers>"
> 
>   My problem is that CXF escapes/transforms the angle brackets <> into &gt;
>  and &lt; which is rejected by that web service.
> 
>   How can I switch the escaping off?
> 
>   Any help is very much appreciated.
> 
>   Best regards
>   Daniel Putra
> 

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to