<T> void createWsdlStyleMapping(CtMethod<T> m, Operation operation, String operationName, javax.jws.soap.SOAPBinding.Style style, javax.jws.soap.SOAPBinding.Use use, javax.jws.soap.SOAPBinding.ParameterStyle parameterStyle){
if (style == javax.jws.soap.SOAPBinding.Style.DOCUMENT && use == javax.jws.soap.SOAPBinding.Use.LITERAL){
// document style message contains one part. this part refers to an element which contains a sub-element for each parameter
// this function adds the part and the top-level element, the sub-elements are added when the parameter is scanned
if (parameterStyle == javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED){
XSDSchema schema = wsdlTypesSchemaMap.get(operation.getEnclosingDefinition());
XSDParticle particle = XSDFactory.eINSTANCE.createXSDParticle();
XSDModelGroup modelGroup = XSDFactory.eINSTANCE.createXSDModelGroup();
modelGroup.setCompositor(XSDCompositor.SEQUENCE_LITERAL);
particle.setContent(modelGroup);
XSDComplexTypeDefinition complexType = XSDFactory.eINSTANCE.createXSDComplexTypeDefinition();
complexType.setContent(particle);
XSDElementDeclaration elIn = XSDFactory.eINSTANCE.createXSDElementDeclaration();
elIn.setName(operationName);
elIn.setAnonymousTypeDefinition(complexType);
schema.getContents().add(elIn);
Part partIn = WSDLFactory.eINSTANCE.createPart();
partIn.setName("parameters");
partIn.setElementDeclaration(elIn);
operation.getInput().getMessage().addPart(partIn);
particle = XSDFactory.eINSTANCE.createXSDParticle();
modelGroup = XSDFactory.eINSTANCE.createXSDModelGroup();
modelGroup.setCompositor(XSDCompositor.SEQUENCE_LITERAL);
particle.setContent(modelGroup);
complexType = XSDFactory.eINSTANCE.createXSDComplexTypeDefinition();
complexType.setContent(particle);
XSDElementDeclaration elOut = XSDFactory.eINSTANCE.createXSDElementDeclaration();
elOut.setName(operationName + "Response");
elOut.setAnonymousTypeDefinition(complexType);
schema.getContents().add(elOut);
Part partOut = WSDLFactory.eINSTANCE.createPart();
partOut.setName("parameters");
partOut.setElementDeclaration(elOut);
operation.getOutput().getMessage().addPart(partOut);