Binding binding = def.createBinding();
binding.setQName(new QName(nameSpaceURI, portName + WSDL_SOAP_BINDING_SUFFIX));
binding.setUndefined(false);
binding.setPortType(portType);
SOAPBindingImpl soapBindingImpl = new SOAPBindingImpl();
soapBindingImpl.setStyle(DOCUMENT);
soapBindingImpl.setTransportURI(SOAP_HTTP_NAMESPACE);
binding.addExtensibilityElement(soapBindingImpl);
if (wsPolicyRef != null) {
log.debug("policy info is not null");
binding.addExtensibilityElement(wsPolicyRef);
}