/* */
/* */ private void buildMetaDataInternal(ServiceMetaData serviceMetaData, WSDLDefinitions wsdlDefinitions) throws IOException
/* */ {
/* 123 */ QName serviceName = serviceMetaData.getServiceName();
/* */
/* 126 */ WSDLService wsdlService = null;
/* 127 */ if (serviceName == null)
/* */ {
/* 129 */ if (wsdlDefinitions.getServices().length != 1) {
/* 130 */ throw new IllegalArgumentException("Expected a single service element");
/* */ }
/* 132 */ wsdlService = wsdlDefinitions.getServices()[0];
/* 133 */ serviceMetaData.setServiceName(wsdlService.getName());
/* */ }
/* */ else
/* */ {
/* 137 */ wsdlService = wsdlDefinitions.getService(serviceName);
/* */ }
/* 139 */ if (wsdlService == null)
/* */ {
/* 141 */ List serviceNames = new ArrayList();
/* 142 */ for (WSDLService wsdls : wsdlDefinitions.getServices()) {
/* 143 */ serviceNames.add(wsdls.getName());
/* */ }
/* 145 */ throw new IllegalArgumentException("Cannot obtain wsdl service: " + serviceName + " we have " + serviceNames);
/* */ }
/* */
/* 150 */ for (WSDLEndpoint wsdlEndpoint : wsdlService.getEndpoints())
/* */ {
/* 152 */ QName bindingName = wsdlEndpoint.getBinding();
/* 153 */ WSDLBinding wsdlBinding = wsdlEndpoint.getWsdlService().getWsdlDefinitions().getBinding(bindingName);
/* 154 */ String bindingType = wsdlBinding.getType();
/* 155 */ if ((!"http://schemas.xmlsoap.org/wsdl/soap/".equals(bindingType)) && (!"http://schemas.xmlsoap.org/wsdl/soap12/".equals(bindingType)))