WSDLInterface portType, QName bindingName,
String style,
String use,
String trsportURI,
String namespeceURI) {
WSDLBinding binding = wsdlComponentFactory.createBinding();
ExtensionFactory extensionFactory = wsdlComponentFactory.createExtensionFactory();
binding.setBoundInterface(portType);
binding.setName(bindingName);
SOAPBinding soapbindingImpl = (SOAPBinding) extensionFactory.getExtensionElement(
ExtensionConstants.SOAP_11_BINDING);
soapbindingImpl.setStyle(style);
soapbindingImpl.setTransportURI(trsportURI);
binding.addExtensibilityElement(soapbindingImpl);
Iterator op_itr = portType.getOperations().keySet().iterator();
while (op_itr.hasNext()) {
String opName = (String) op_itr.next();
WSDLOperation wsdlOperation = portType.getOperation(opName);
MessageReference inMessage = wsdlOperation.getInputMessage();
WSDLBindingOperation bindingoperation = wsdlComponentFactory.createWSDLBindingOperation();
bindingoperation.setName(new QName(opName));
bindingoperation.setOperation(wsdlOperation);
binding.addBindingOperation(bindingoperation);
SOAPOperation soapOpimpl = (SOAPOperation) extensionFactory.getExtensionElement(
ExtensionConstants.SOAP_11_OPERATION);
soapOpimpl.setStyle(style);
//to do heve to set a proper SOAPAction