You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Andrei Shakirin <as...@talend.com> on 2015/02/02 22:07:17 UTC
RE: Message Part is not Recognized
Hi,
It seems that the client sends the message with root element OTA_HotelInvCountRQ. However WSDL doesn’t have message with such element: only ping, GetInventory, SetBooking and OTA_HotelInvCountRS are declared.
Error message is correct.
Regards,
Andrei.
From: Bernardo Corrêa [mailto:bernardomk@gmail.com]
Sent: Freitag, 30. Januar 2015 16:36
To: users@cxf.apache.org<ma...@cxf.apache.org>
Subject: Message Part is not Recognized
Hi,
I have an Web service that works fine in SOAP UI but when called from the client throws:
05:20:08,074 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http--0.0.0.0-8080-1) Interceptor for {http://webservice.mozart.com/}MozartPMSWebService<http://webservice.mozart.com/%7dMozartPMSWebService> has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Message part {http://www.opentravel.org/OTA/2003/05}OTA_HotelInvCountRQ<http://www.opentravel.org/OTA/2003/05%7dOTA_HotelInvCountRQ> was not recognized. (Does it exist in service WSDL?)
And Fault:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Message part
{http://www.opentravel.org/OTA/2003/05}OTA_HotelInvCountRQ<http://www.opentravel.org/OTA/2003/05%7dOTA_HotelInvCountRQ> was not
recognized. (Does it exist in service WSDL?)</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
I've attached my WSDL, have no clue of what's going on as it works fine in SOAP UI..
Thanks,
--
Bernardo Corrêa
Re: Message Part is not Recognized
Posted by Bernardo Corrêa <be...@gmail.com>.
The weird thing is that it works when I call it from SoapUI.
I solved it changing @Webmethod operationName and action attributes to
OTA_HotelInvCountRQ.
Thanks.
Bernardo.
On Mon, Feb 2, 2015 at 7:07 PM, Andrei Shakirin <as...@talend.com>
wrote:
> Hi,
>
> It seems that the client sends the message with root element
> OTA_HotelInvCountRQ. However WSDL doesn’t have message with such element:
> only ping, GetInventory, SetBooking and OTA_HotelInvCountRS are declared.
> Error message is correct.
>
> Regards,
> Andrei.
>
> From: Bernardo Corrêa [mailto:bernardomk@gmail.com]
> Sent: Freitag, 30. Januar 2015 16:36
> To: users@cxf.apache.org<ma...@cxf.apache.org>
> Subject: Message Part is not Recognized
>
> Hi,
>
> I have an Web service that works fine in SOAP UI but when called from the
> client throws:
>
>
> 05:20:08,074 WARNING [org.apache.cxf.phase.PhaseInterceptorChain]
> (http--0.0.0.0-8080-1) Interceptor for {
> http://webservice.mozart.com/}MozartPMSWebService<
> http://webservice.mozart.com/%7dMozartPMSWebService> has thrown
> exception, unwinding now: org.apache.cxf.interceptor.Fault: Message part {
> http://www.opentravel.org/OTA/2003/05}OTA_HotelInvCountRQ<
> http://www.opentravel.org/OTA/2003/05%7dOTA_HotelInvCountRQ> was not
> recognized. (Does it exist in service WSDL?)
>
>
> And Fault:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Client</faultcode>
> <faultstring>Message part
> {
> http://www.opentravel.org/OTA/2003/05}OTA_HotelInvCountRQ<
> http://www.opentravel.org/OTA/2003/05%7dOTA_HotelInvCountRQ> was not
> recognized. (Does it exist
> in service WSDL?)</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
>
> I've attached my WSDL, have no clue of what's going on as it works fine in
> SOAP UI..
>
> Thanks,
> --
> Bernardo Corrêa
>
--
*Bernardo Corrêa*