scan(arg);
ASTNodeData argNodeData = nodeDataStack.peek();
// doc/literal has one part, which is an element, which contains sub-elements for each param
if (argNodeData.variable != null && argNodeData.xpathExpr != null){
From from = BPELFactory.eINSTANCE.createFrom();
from.setVariable(tmp);
Query fromQuery = BPELFactory.eINSTANCE.createQuery();
fromQuery.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);
//fromQuery.setValue("$" + tmp.getName() + "." + msgParts.get(0).getName() + "/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
from.setPart(msgParts.get(0));
fromQuery.setValue("/" + this.schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getQName());
from.setQuery(fromQuery);
} else if (soapBinding != null &&
soapBinding.style() == javax.jws.soap.SOAPBinding.Style.RPC &&
soapBinding.use() == javax.jws.soap.SOAPBinding.Use.LITERAL){
//fromQuery.setValue("$" + tmp.getName() + "." + msgParts.get(argIndex).getName());
from.setPart(msgParts.get(argIndex));
}
To to = BPELFactory.eINSTANCE.createTo();
to.setVariable(argNodeData.variable);
Query toQuery = BPELFactory.eINSTANCE.createQuery();