Hi everyone, any further ideas on this problem? I think the problem is the same as described here: http://camel.465427.n5.nabble.com/camel-cxf-with-rpc-literal-style-wsdl-td5752757.html
I wonder why there is extra effort necessary in case a message has multiple parts instead of a single message-part. Is this the expected behavior? Thanks in advance & Best regards, Manuel Best regards, Manuel -----Original Message----- From: Shenavai, Manuel Sent: Dienstag, 20. März 2018 08:55 To: users@camel.apache.org Subject: RE: Rép. : RE: Camel cxf: Send message with multiple message-parts Hi Daniel, thanks for your response. I agree with you. But changing the body to the suggested content, throws the following error: Caused by: java.lang.IllegalArgumentException: The PayLoad elements cannot fit with the message parts of the BindingOperation. Please check the BindingOperation and PayLoadMessage. at org.apache.camel.component.cxf.CxfEndpoint$CamelCxfClientImpl.setParameters(CxfEndpoint.java:1184) Best regards, Manuel -----Original Message----- From: Daniel Langevin [mailto:daniel.lange...@shq.gouv.qc.ca] Sent: Montag, 19. März 2018 18:29 To: users@camel.apache.org Subject: Rép. : RE: Camel cxf: Send message with multiple message-parts Hi, If i look your wsdl. you camel Body suppose to be: <my_operation_name> <first_name>?</ first_name > <last_name>?</ fast_name > </my_operation_name> Daniel >>> "Shenavai, Manuel" <manuel.shena...@sap.com> 2018-03-19 12:25 >>> Hi everyone, no ideas regarding this problem? I add a small example project to this mail. In order to reproduce the problem, start Server.java as a junit‑Test. After that, start the Client.java as junit‑test as well. (In client_beans_reproduce.xml line 44, you can change the payload to try different payload along with the request) You will see the following error message: The PayLoad elements cannot fit with the message parts of the BindingOperation. Please check the BindingOperation and PayLoadMessage. My question is: How to provide the payload in order to be able to send the request. Any ideas/help to fix this problem is much appreciated. Thanks in advance. Best regards, Manuel From: Shenavai, Manuel Sent: Freitag, 16. März 2018 11:49 To: 'users‑subscr...@camel.apache.org' <users‑subscr...@camel.apache.org<mailto:users‑subscr...@camel.apache.org>> Subject: Camel cxf: Send message with multiple message‑parts Hi everyone, I try to send a message with camel‑cxf to a WS provider. When trying to send the message with multiple message‑parts defined in the WSDL, the following error is thrown (see below). My question is: How the payload has to be provided in this case? Please let me know if I should provide any more infos. The endpoint is using dataFormat=PAYLOAD. Thanks in advance Best regards, Manuel ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ Camel‑Body: < manuel_operation> <first_name>?</ first_name > <last_name>?</ fast_name > </manuel_operation> Error: java.lang.IllegalArgumentException: The PayLoad elements cannot fit with the message parts of the BindingOperation. Please check the BindingOperation and PayLoadMessage. ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ Camel‑Body: <first_name>?</ first_name > <last_name>?</ fast_name > Error: org.apache.cxf.interceptor.Fault: Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxParsingException: Illegal to have multiple roots (start tag in epilog?). at [row,col {unknown‑source}]: [1,65]., cause: com.ctc.wstx.exc.WstxParsingException: Illegal to have multiple roots (start tag in epilog?). at [row,col {unknown‑source}]: [1,65] ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ More infos Parts of WSDL: <wsdl:message name="manuel_operationRequest"> <wsdl:part name="first_name"/> <wsdl:part name="fast_name"/> </wsdl:message> <wsdl:binding name="manuel.cfcSoapBinding" type="impl:manuel"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="manuel_operation"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="manuel_operationRequest"></wsdl:input> .... </wsdl:operation> </wsdl:binding> "Le présent courriel peut contenir des renseignements confidentiels et ne s'adresse qu'au destinataire dont le nom apparaît ci-dessus. Si ce courriel vous est parvenu par mégarde, veuillez le supprimer et nous en aviser aussitôt."