/* */
/* */ protected abstract void processTypes();
/* */
/* */ protected void processEndpoint(WSDLService service, EndpointMetaData endpoint)
/* */ {
/* 86 */ WSDLEndpoint wsdlEndpoint = new WSDLEndpoint(service, endpoint.getPortName());
/* 87 */ String address = endpoint.getEndpointAddress();
/* 88 */ wsdlEndpoint.setAddress(address == null ? "REPLACE_WITH_ACTUAL_URL" : address);
/* 89 */ service.addEndpoint(wsdlEndpoint);
/* */
/* 91 */ QName interfaceQName = endpoint.getPortTypeName();
/* 92 */ WSDLInterface wsdlInterface = new WSDLInterface(this.wsdl, interfaceQName);
/* 93 */ this.wsdl.addInterface(wsdlInterface);
/* */
/* 96 */ if (!interfaceQName.getNamespaceURI().equals(endpoint.getServiceMetaData().getServiceName().getNamespaceURI()))
/* */ {
/* 98 */ WSDLImport wsdlImport = new WSDLImport(this.wsdl);
/* 99 */ wsdlImport.setLocation(interfaceQName.getLocalPart() + "_PortType");
/* 100 */ wsdlImport.setNamespace(interfaceQName.getNamespaceURI());
/* 101 */ this.wsdl.addImport(wsdlImport);
/* 102 */ this.wsdl.registerNamespaceURI(interfaceQName.getNamespaceURI(), null);
/* */ }
/* */
/* 105 */ QName bindingQName = new QName(interfaceQName.getNamespaceURI(), interfaceQName.getLocalPart() + "Binding");
/* 106 */ WSDLBinding wsdlBinding = new WSDLBinding(this.wsdl, bindingQName);
/* 107 */ wsdlBinding.setInterfaceName(interfaceQName);
/* 108 */ wsdlBinding.setType(endpoint.getBindingId());
/* 109 */ this.wsdl.addBinding(wsdlBinding);
/* 110 */ wsdlEndpoint.setBinding(bindingQName);
/* */
/* 112 */ for (OperationMetaData operation : endpoint.getOperations())
/* */ {
/* 114 */ processOperation(wsdlInterface, wsdlBinding, operation);
/* */ }