private void processInterface(Interface serviceInterface) throws AxisFault { // TODO copy the policy elements // copyExtensionAttributes(wsdl4jPortType.getExtensionAttributes(), // axisService, PORT_TYPE); InterfaceOperation[] interfaceOperations = serviceInterface .getInterfaceOperations(); for (int i = 0; i < interfaceOperations.length; i++) { axisService.addOperation(populateOperations(interfaceOperations[i])); operationNames.add(interfaceOperations[i].getName()); } Interface[] extendedInterfaces = serviceInterface.getExtendedInterfaces(); for (int i = 0; i < extendedInterfaces.length; i++) { Interface extendedInterface = extendedInterfaces[i]; processInterface(extendedInterface); } }
private void processInterface(Interface serviceInterface) throws AxisFault { // TODO copy the policy elements // copyExtensionAttributes(wsdl4jPortType.getExtensionAttributes(), // axisService, PORT_TYPE); InterfaceOperation[] interfaceOperations = serviceInterface .getInterfaceOperations(); for (int i = 0; i < interfaceOperations.length; i++) { axisService.addOperation(populateOperations(interfaceOperations[i])); operationNames.add(interfaceOperations[i].getName()); } Interface[] extendedInterfaces = serviceInterface.getExtendedInterfaces(); for (int i = 0; i < extendedInterfaces.length; i++) { Interface extendedInterface = extendedInterfaces[i]; processInterface(extendedInterface); } }
private void processService() throws AxisFault { Service[] services = description.getServices(); if (services.length == 0) { throw new AxisFault("No wsdlService found in the WSDL"); } if (serviceName != null) { for (int i = 0; i < services.length; i++) { if (serviceName.equals(services[i].getName())) { wsdlService = services[i]; break; // found it. Stop looking. } } if (wsdlService == null) { throw new AxisFault("Service with the specified name not found in the WSDL : " + serviceName.getLocalPart()); } } else { wsdlService = services[0]; } axisService.setName(wsdlService.getName().getLocalPart()); Interface serviceInterface = wsdlService.getInterface(); axisService.addParameter(new Parameter(WSDL2Constants.INTERFACE_LOCAL_NAME, serviceInterface.getName().getLocalPart())); processInterface(serviceInterface); if (isCodegen) { axisService.setOperationsNameList(operationNames); } processEndpoints(serviceInterface); }
private void processService() throws AxisFault { Service[] services = description.getServices(); if (services.length == 0) { throw new AxisFault("No wsdlService found in the WSDL"); } if (serviceName != null) { for (int i = 0; i < services.length; i++) { if (serviceName.equals(services[i].getName())) { wsdlService = services[i]; break; // found it. Stop looking. } } if (wsdlService == null) { throw new AxisFault("Service with the specified name not found in the WSDL : " + serviceName.getLocalPart()); } } else { wsdlService = services[0]; } axisService.setName(wsdlService.getName().getLocalPart()); Interface serviceInterface = wsdlService.getInterface(); axisService.addParameter(new Parameter(WSDL2Constants.INTERFACE_LOCAL_NAME, serviceInterface.getName().getLocalPart())); processInterface(serviceInterface); if (isCodegen) { axisService.setOperationsNameList(operationNames); } processEndpoints(serviceInterface); }