You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by bharadwaj <bh...@gmail.com> on 2014/05/05 13:57:23 UTC

Re: The PayLoad elements cannot fit with the message parts of the BindingOperation.

Message body is matching with operation please find the camel code as below:

<camel:setHeader headerName="operationNamespace">
                       
<camel:constant>http://minspa.csi.nsn.com</camel:constant>
                  </camel:setHeader>
                  <camel:setHeader headerName="SOAPAction">
                        <camel:constant>"urn:unsubscribe"</camel:constant>
                  </camel:setHeader>
                  <camel:setHeader headerName="javax.xml.ws.wsdl.operation">
                       
<camel:constant>{http://minspa.csi.nsn.com}unsubscribe</camel:constant>
                  </camel:setHeader>
                  <camel:log message="direct:minispaUnsubscribeService
headers--------- : ${headers}"
                                                           
logName="Redknee_share@once_IL" loggingLevel="INFO" />
                  <recipientList>
                       
<simple>cxf:bean:MINISPAMsbUnsub?address=${property.MINISPA_URL}&amp;dataFormat=PAYLOAD</simple>
                  </recipientList>
                  <camel:convertBodyTo type="java.lang.String" /> 



and the Request body is : 


<min:unsubscribe
xmlns:min="http://minspa.csi.nsn.com"><min:clientId>client1</min:clientId><min:clientPassword>client1</min:clientPassword><min:msisdn>7901900850</min:msisdn><min:packId>10</min:packId><min:chargeable>true</min:chargeable><min:whitelistCheck>1</min:whitelistCheck></min:unsubscribe>




--
View this message in context: http://camel.465427.n5.nabble.com/The-PayLoad-elements-cannot-fit-with-the-message-parts-of-the-BindingOperation-tp5750724p5750863.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: The PayLoad elements cannot fit with the message parts of the BindingOperation.

Posted by Willem Jiang <wi...@gmail.com>.
You need to set the “operationName” header with “unsubscribe”.
CamelCxf doesn’t take the header “javax.xml.ws.wsdl.operation” into consideration.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On May 5, 2014 at 8:06:01 PM, bharadwaj (bharadwaj2012@gmail.com) wrote:
> Message body is matching with operation please find the camel code as below:
>  
>  
>  
> http://minspa.csi.nsn.com
>  
>  
> "urn:unsubscribe"
>  
>  
>  
> {http://minspa.csi.nsn.com}unsubscribe  
>  
> >  
> logName="Redknee_share@once_IL" loggingLevel="INFO" />
>  
>  
> cxf:bean:MINISPAMsbUnsub?address=${property.MINISPA_URL}&dataFormat=PAYLOAD  
>  
>  
>  
>  
>  
> and the Request body is :
>  
>  
> > xmlns:min="http://minspa.csi.nsn.com">client1client1790190085010true1  
>  
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/The-PayLoad-elements-cannot-fit-with-the-message-parts-of-the-BindingOperation-tp5750724p5750863.html  
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  


Re: The PayLoad elements cannot fit with the message parts of the BindingOperation.

Posted by Sudhil <su...@gmail.com>.
Please if any one can help in this ??



-----
Thanks & Regards,
Sudhil Mishra.
--
View this message in context: http://camel.465427.n5.nabble.com/The-PayLoad-elements-cannot-fit-with-the-message-parts-of-the-BindingOperation-tp5750724p5750888.html
Sent from the Camel - Users mailing list archive at Nabble.com.