camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: i use wsdl file and payload dataFormat, but IllegalArgumentException
Date Tue, 23 Aug 2011 07:38:28 GMT
The defaultOperationNameSpace should be defaultOperationNamespace.
I just update the wiki page entry of it.
But this operation should be used with defaultOperationName at the same 
time to help camel-cxf locate the BindingOperationInfo.

On 8/23/11 2:35 PM, xiangqiuzhao wrote:
> thanks, i had make mistake with the namespace, so i debug it in cxf endpoint
> with the exception.
>
> and my code like:
>
>          DocumentBuilderFactory factory =
> DocumentBuilderFactory.newInstance();
>          factory.setNamespaceAware(true);
>          Document doc = factory.newDocumentBuilder().parse("D:/a.xml");
>          Element element = doc.getDocumentElement();
>          body.add(element);
>          CxfPayload in = new CxfPayload(null, body);
>
> and the a.xml content with:
> <?xml version="1.0" encoding="UTF-8"?>
> <iws:helloServiceRequest
> xmlns:iws="http://www.wstest.sunyard.com/IWSTestService/">
>      <name>my name</name>
> </iws:helloServiceRequest>
>
> but my application had MAP context with contains the key with name only.
> so, i don't know how to make the xml content by the map. because i don't
> know the xmlns and PORT name.
>
> so i look at the cxf URI options description, what  the mean with
> defaultOperationNameSpace option?
>
> i use with:
>
> .to("cxf://http://localhost:8000/wsdemo/services/IWSTestService?synchronous=true&"
> +
>
> "wsdlURL=IWSTestService.wsdl&dataFormat=PAYLOAD&defaultOperationNameSpace=http://www.wstest.sunyard.com/IWSTestService/")
>
> but exception with  Exception in thread "main"
> org.apache.camel.FailedToCreateRouteException...Unknown parameters..
>
> my camel version is 2.7.2
>
> i want my xml content look like only:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <helloServiceRequest>
>      <name>my name</name>
> </helloServiceRequest>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/i-use-wsdl-file-and-payload-dataFormat-but-IllegalArgumentException-tp4719896p4725659.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Mime
View raw message