if (argNodeData.xpathExpr != null){
From from = BPELFactory.eINSTANCE.createFrom();
if (argNodeData.variable != null){
from.setVariable(argNodeData.variable);
Query fromQuery = BPELFactory.eINSTANCE.createQuery();
fromQuery.setQueryLanguage(XPATH_NAMESPACE);
fromQuery.setValue(argNodeData.xpathExpr.evaluate());
from.setQuery(fromQuery);
} else if (argNodeData.xpathLiteralExpr != null){
Expression expr = BPELFactory.eINSTANCE.createExpression();
expr.setBody(argNodeData.xpathLiteralExpr.evaluate());
from.setExpression(expr);
}
To to = BPELFactory.eINSTANCE.createTo();
to.setVariable(tmp);
Query toQuery = BPELFactory.eINSTANCE.createQuery();
toQuery.setQueryLanguage(XPATH_NAMESPACE);
if (soapBinding == null ||
(soapBinding != null &&
soapBinding.style() == javax.jws.soap.SOAPBinding.Style.DOCUMENT &&
soapBinding.use() == javax.jws.soap.SOAPBinding.Use.LITERAL &&
soapBinding.parameterStyle() == javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED)){
XSDElementDeclaration el = wsdlDocLitParamElemMap.get(operation).get(argIndex);
//toQuery.setValue("$" + tmp.getName() + "." + msgParts.get(0).getName() + "/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
to.setPart(msgParts.get(0));
toQuery.setValue("/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
to.setQuery(toQuery);
} else if (soapBinding != null &&
soapBinding.style() == javax.jws.soap.SOAPBinding.Style.RPC &&
soapBinding.use() == javax.jws.soap.SOAPBinding.Use.LITERAL){
//toQuery.setValue("$" + tmp.getName() + "." + msgParts.get(argIndex).getName());