private MethodParamPartsMapping getMethodParamPartsMapping(ServiceEndpointMethodMapping semm, QName xmlName, QName xmlType, int paramPosition,
String wsdlMessageName, String paramMode, String wsdlMessagePartName, boolean array, boolean primitive)
{
String targetNS = wsdlDefinitions.getTargetNamespace();
MethodParamPartsMapping mppm = new MethodParamPartsMapping(semm);
mppm.setParamPosition(paramPosition);
String javaType = getJavaTypeAsString(xmlName, xmlType, xmlType.getNamespaceURI(), array, primitive);
mppm.setParamType(javaType);
//WSDL Message Mapping
WsdlMessageMapping wmm = new WsdlMessageMapping(mppm);
wmm.setParameterMode(paramMode);
String wsdlNS = WSToolsConstants.WSTOOLS_CONSTANT_MAPPING_WSDL_MESSAGE_NS;
wmm.setWsdlMessage(new QName(targetNS, wsdlMessageName, wsdlNS));
wmm.setWsdlMessagePartName(wsdlMessagePartName);
mppm.setWsdlMessageMapping(wmm);
return mppm;
}