[ 
https://issues.apache.org/jira/browse/CAMEL-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011744#comment-13011744
 ] 

ext2 commented on CAMEL-3810:
-----------------------------

here is my temporary solution for Camel

CxfEndpoint.CxfClientImpl.setParameters(){
........
/*
for (MessagePartInfo partInfo : 
boi.getOperationInfo().getInput().getMessageParts()) 
{
        if (elements.size() > i && partInfo.getConcreteName().getLocalPart()
                        .equals(elements.get(i).getLocalName()))
        content.put(partInfo, elements.get(i++));
}
*/
for (MessagePartInfo partInfo :         boi.getInput().getMessageParts()) {
        content.put(partInfo, elements.get(i++));
}

}

DefaultCxfBinding.getResponsePayloadList(...) {
....
/*
 for (MessagePartInfo partInfo :        
boi.getOperationInfo().getOutput().getMessageParts()) {
        if (elements.size() > i) {
                answer.put(partInfo, elements.get(i++));
    }
 }
*/
for (MessagePartInfo partInfo :         boi.getInput().getMessageParts()) {
        answer.put(partInfo, elements.get(i++));
}  
.......
}  



> At payload model, set soap body element to header uncorrectly
> -------------------------------------------------------------
>
>                 Key: CAMEL-3810
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3810
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.4.0
>            Reporter: ext2
>         Attachments: CXFMultiPartTest.java, MultiPartInvokeImpl.java, 
> MultiPartTest.wsdl, MultiPartTest.xml
>
>
> if wsdl's operatin's has multi parts and the parts use same xml-element. 
> Camel CXF Payload model, will mixup the xml element in body with header

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to