private static void setMessageSerialization(AxisBindingOperation bindingOperation, String originOfExtensibilityElements, String messageSerialization) { if (bindingOperation != null) { if (BINDING_OPERATION_INPUT.equals(originOfExtensibilityElements)) { bindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, messageSerialization); } else if (BINDING_OPERATION_OUTPUT.equals(originOfExtensibilityElements)) { bindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_OUTPUT_SERIALIZATION, messageSerialization); } } }
private static void setMessageSerialization(AxisBindingOperation bindingOperation, String originOfExtensibilityElements, String messageSerialization) { if (bindingOperation != null) { if (BINDING_OPERATION_INPUT.equals(originOfExtensibilityElements)) { bindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, messageSerialization); } else if (BINDING_OPERATION_OUTPUT.equals(originOfExtensibilityElements)) { bindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_OUTPUT_SERIALIZATION, messageSerialization); } } }
/** * Creates AxisBindingOperation and populates it with HTTP properties */ private AxisBindingOperation createDefaultHTTPBindingOperation( AxisOperation axisOp, String httpLocation, String httpMethod, AxisBinding httpBinding) { AxisBindingOperation httpBindingOperation = new AxisBindingOperation(); httpBindingOperation.setAxisOperation(axisOp); httpBindingOperation.setName(axisOp.getName()); httpBindingOperation.setParent(httpBinding); httpBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocation); httpBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_METHOD, httpMethod); httpBinding.addChild(httpBindingOperation.getName(), httpBindingOperation); return httpBindingOperation; }
/** * Creates AxisBindingOperation and populates it with SOAP 1.1 properties */ private AxisBindingOperation createDefaultSOAP11BindingOperation( AxisOperation axisOp, String httpLocation, String inputAction, AxisBinding soap11Binding) { AxisBindingOperation soap11BindingOperation = new AxisBindingOperation(); soap11BindingOperation.setAxisOperation(axisOp); soap11BindingOperation.setName(axisOp.getName()); soap11BindingOperation.setParent(soap11Binding); soap11BindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocation); soap11Binding.addChild(soap11BindingOperation.getName(), soap11BindingOperation); soap11BindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, inputAction); return soap11BindingOperation; }
/** * Creates AxisBindingOperation and populates it with SOAP 1.2 properties */ private AxisBindingOperation createDefaultSOAP12BindingOperation( AxisOperation axisOp, String httpLocation, String inputAction, AxisBinding soap12Binding) { AxisBindingOperation soap12BindingOperation = new AxisBindingOperation(); soap12BindingOperation.setAxisOperation(axisOp); soap12BindingOperation.setName(axisOp.getName()); soap12BindingOperation.setParent(soap12Binding); soap12BindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocation); soap12Binding.addChild(soap12BindingOperation.getName(), soap12BindingOperation); soap12BindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, inputAction); return soap12BindingOperation; }
axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_OUTPUT_SERIALIZATION, tempParam); axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_OUTPUT_SERIALIZATION, methodModel.getProduces()); axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, tempParam); axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, methodModel.getConsumes()); axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_METHOD, tempHTTPMethodParam); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_METHOD, tempHTTPMethodParam); .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, tempHTTPLocationParam); httpLocationMap.put(WSDLUtil.getConstantFromHTTPLocation(tempHTTPLocationParam, tempHTTPMethodParam),operation); .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, tempHTTPLocationParam); httpLocationMap.put(WSDLUtil.getConstantFromHTTPLocation(tempHTTPLocationParam,
axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_OUTPUT_SERIALIZATION, tempParam); axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_OUTPUT_SERIALIZATION, methodModel.getProduces()); axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, tempParam); axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, methodModel.getConsumes()); axisBindingOperation.setProperty( WSDL2Constants.ATTR_WHTTP_METHOD, tempHTTPMethodParam); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_METHOD, tempHTTPMethodParam); .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, tempHTTPLocationParam); httpLocationMap.put(WSDLUtil.getConstantFromHTTPLocation(tempHTTPLocationParam, tempHTTPMethodParam),operation); .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, tempHTTPLocationParam); httpLocationMap.put(WSDLUtil.getConstantFromHTTPLocation(tempHTTPLocationParam,
axisBindingOperation.setProperty( WSDL2Constants.ATTR_WSOAP_ACTION, soapAction);
axisBindingOperation.setProperty( WSDL2Constants.ATTR_WSOAP_ACTION, soapAction);
axisBindingOperation.setProperty( WSDL2Constants.ATTR_WSOAP_ACTION, soapAction);
axisBindingOperation.setProperty( WSDL2Constants.ATTR_WSOAP_ACTION, soapAction);
axisBindingOperation.setProperty(WSDLConstants.WSDL_1_1_STYLE, style); .setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, soapActionURI); axisBindingOperation.getAxisOperation().setSoapAction(soapActionURI); if (!isServerSide) { axisBindingOperation.setProperty(WSDLConstants.WSDL_1_1_STYLE, style); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, soapAction); axisBindingOperation.getAxisOperation().setSoapAction(soapAction); if (!isServerSide) { httpLocation = httpLocation.replaceAll("\\)", "}"); axisBindingOperation .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocation); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, HTTPConstants.MEDIA_TYPE_TEXT_XML);
axisBindingOperation.setProperty(WSDLConstants.WSDL_1_1_STYLE, style); .setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, soapActionURI); axisBindingOperation.getAxisOperation().setSoapAction(soapActionURI); if (!isServerSide) { axisBindingOperation.setProperty(WSDLConstants.WSDL_1_1_STYLE, style); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, soapAction); axisBindingOperation.getAxisOperation().setSoapAction(soapAction); if (!isServerSide) { httpLocation = httpLocation.replaceAll("\\)", "}"); axisBindingOperation .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocation); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, HTTPConstants.MEDIA_TYPE_TEXT_XML);
axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_FAULT_SERIALIZATION, httpBindingOperationExtensions.getHttpFaultSerialization()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, httpBindingOperationExtensions.getHttpInputSerialization()); String httpMethod = httpBindingOperationExtensions. .setProperty(WSDL2Constants.ATTR_WHTTP_METHOD, httpMethod); HTTPLocation httpLocation = httpBindingOperationExtensions.getHttpLocation(); String httpLocationTemplete = httpLocation.getOriginalLocation(); axisBindingOperation .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocationTemplete); httpLocationString = WSDLUtil.getConstantFromHTTPLocation(httpLocationTemplete, httpMethod); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_IGNORE_UNCITED, httpBindingOperationExtensions. isHttpLocationIgnoreUncited()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_OUTPUT_SERIALIZATION, httpBindingOperationExtensions.getHttpOutputSerialization()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, httpBindingOperationExtensions.getHttpQueryParameterSeparator()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_CONTENT_ENCODING, httpBindingOperationExtensions.getHttpContentEncodingDefault());
axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_FAULT_SERIALIZATION, httpBindingOperationExtensions.getHttpFaultSerialization()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION, httpBindingOperationExtensions.getHttpInputSerialization()); String httpMethod = httpBindingOperationExtensions. .setProperty(WSDL2Constants.ATTR_WHTTP_METHOD, httpMethod); HTTPLocation httpLocation = httpBindingOperationExtensions.getHttpLocation(); String httpLocationTemplete = httpLocation.getOriginalLocation(); axisBindingOperation .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocationTemplete); httpLocationString = WSDLUtil.getConstantFromHTTPLocation(httpLocationTemplete, httpMethod); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_IGNORE_UNCITED, httpBindingOperationExtensions. isHttpLocationIgnoreUncited()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_OUTPUT_SERIALIZATION, httpBindingOperationExtensions.getHttpOutputSerialization()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, httpBindingOperationExtensions.getHttpQueryParameterSeparator()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_CONTENT_ENCODING, httpBindingOperationExtensions.getHttpContentEncodingDefault());
axisBindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, soapAction.toString()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_MODULE, createSoapModules( soapBindingOperationExtensions.getSoapModules())); URI soapMep = soapBindingOperationExtensions.getSoapMep(); if (soapMep != null) { axisBindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_MEP, soapMep.toString()); String httpLocationTemplete = httpLocation.getOriginalLocation(); axisBindingOperation .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocationTemplete); httpLocationString = WSDLUtil.getConstantFromHTTPLocation(httpLocationTemplete, HTTPConstants.HEADER_POST); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_CONTENT_ENCODING, soapBindingOperationExtensions.getHttpContentEncodingDefault()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, soapBindingOperationExtensions.getHttpQueryParameterSeparator());
axisBindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, soapAction.toString()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_MODULE, createSoapModules( soapBindingOperationExtensions.getSoapModules())); URI soapMep = soapBindingOperationExtensions.getSoapMep(); if (soapMep != null) { axisBindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_MEP, soapMep.toString()); String httpLocationTemplete = httpLocation.getOriginalLocation(); axisBindingOperation .setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocationTemplete); httpLocationString = WSDLUtil.getConstantFromHTTPLocation(httpLocationTemplete, HTTPConstants.HEADER_POST); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_CONTENT_ENCODING, soapBindingOperationExtensions.getHttpContentEncodingDefault()); axisBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, soapBindingOperationExtensions.getHttpQueryParameterSeparator());