You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Charles Moulliard <ch...@gmail.com> on 2013/01/11 14:29:38 UTC
Camel + CXF error (org.apache.cxf.interceptor.Fault: Unmarshalling
Error: unexpected element (uri:"", local:"name"). Expected elements are
(none) )
Hi,
When using camel 2.10 + CXF 2.6 and ws-security + camel-spring-security +
JAAS, I get the following message after CXF ws-security authentication
(which succeed)
https://gist.github.com/af9d89e345faf34121ff
Config
https://gist.github.com/7c832ab4328348325d01
Does anybody can point me to the direction to solve this issue please ?
Regards,
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: Camel + CXF error (org.apache.cxf.interceptor.Fault:
Unmarshalling Error: unexpected element (uri:"", local:"name"). Expected
elements are (none) )
Posted by Charles Moulliard <ch...@gmail.com>.
Saved my issue by using in SOAPUI the SOAP message created by CXF Client
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getCustomerByName xmlns:ns2="http://training.fusesource.com/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Fuse
</ns2:getCustomerByName>
</soap:Body>
</soap:Envelope>
Thx
On Fri, Jan 11, 2013 at 3:55 PM, Charles Moulliard <ch...@gmail.com> wrote:
> Client used is SOAPUI
>
> With this enveloppe
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:tra="http://training.fusesource.com/">
> <soapenv:Body>
> <tra:getCustomerByName>
> <tra:name>Fuse</tra:name>
> </tra:getCustomerByName>
> </soapenv:Body>
> </soapenv:Envelope>
>
> I get this error now
>
> Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"
> http://training.fusesource.com/", local:"name"). Expected elements are
> (none)
>
> On Fri, Jan 11, 2013 at 3:30 PM, Willem jiang <wi...@gmail.com>wrote:
>
>> <soapenv:Body>
>>
>> <tra:getCustomerByName>
>>
>> <!--Optional:-->
>>
>> <tra:name>Fuse</tra:name>
>>
>> </tra:getCustomerByName>
>>
>> </soapenv:Body>
>>
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: Camel + CXF error (org.apache.cxf.interceptor.Fault:
Unmarshalling Error: unexpected element (uri:"", local:"name"). Expected
elements are (none) )
Posted by Charles Moulliard <ch...@gmail.com>.
Client used is SOAPUI
With this enveloppe
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tra="http://training.fusesource.com/">
<soapenv:Body>
<tra:getCustomerByName>
<tra:name>Fuse</tra:name>
</tra:getCustomerByName>
</soapenv:Body>
</soapenv:Envelope>
I get this error now
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"
http://training.fusesource.com/", local:"name"). Expected elements are
(none)
On Fri, Jan 11, 2013 at 3:30 PM, Willem jiang <wi...@gmail.com>wrote:
> <soapenv:Body>
>
> <tra:getCustomerByName>
>
> <!--Optional:-->
>
> <tra:name>Fuse</tra:name>
>
> </tra:getCustomerByName>
>
> </soapenv:Body>
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: Camel + CXF error (org.apache.cxf.interceptor.Fault:
Unmarshalling Error: unexpected element (uri:"", local:"name").
Expected elements are (none) )
Posted by Willem jiang <wi...@gmail.com>.
Hi Charles,
How did you generate the request message?
Did you use CXF client to send the request?
It looks like the name element doesn't has the right namespace, can you change the soap body like the below one ?
<soapenv:Body>
<tra:getCustomerByName>
<!--Optional:-->
<tra:name>Fuse</tra:name>
</tra:getCustomerByName>
</soapenv:Body>
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On Friday, January 11, 2013 at 9:29 PM, Charles Moulliard wrote:
> Hi,
>
> When using camel 2.10 + CXF 2.6 and ws-security + camel-spring-security +
> JAAS, I get the following message after CXF ws-security authentication
> (which succeed)
>
> https://gist.github.com/af9d89e345faf34121ff
>
> Config
>
> https://gist.github.com/7c832ab4328348325d01
>
> Does anybody can point me to the direction to solve this issue please ?
>
> Regards,
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com