private void getAllInterfaceOperations(Interface interfac, List allInterfaces, List allOpers) { //check for circular Interface references to avoid infinite loop if(containsComponent(interfac, allInterfaces)) { return; } else { allInterfaces.add(interfac); } //get the declared operations for the specified Interface InterfaceOperation[] declaredOpers = interfac.getInterfaceOperations(); for(int i=0; i<declaredOpers.length; i++) { InterfaceOperation oper = declaredOpers[i]; if(!containsComponent(oper, allOpers)) { allOpers.add(oper); } } //get the derived operations from each extended interface Interface[] extInts = interfac.getExtendedInterfaces(); for(int j=0; j<extInts.length; j++) { getAllInterfaceOperations(extInts[j], allInterfaces, allOpers); } }
/** * Validate the interfaces in the WSDL component model. * * @param interfaces The interfaces in the WSDL component model. * @param errorReporter An error reporter to be used for reporting errors. * @throws WSDLException A WSDLException is thrown if a problem occurs while validating the interface components. */ protected void validateInterfaces(Interface[] interfaces, ErrorReporter errorReporter) throws WSDLException { testAssertionInterface1010(interfaces, errorReporter); int numInterfaces = interfaces.length; for(int i = 0; i < numInterfaces; i++) { Interface interfac = interfaces[i]; testAssertionInterface1009(interfac, errorReporter); validateInterfaceOperations(interfac, interfac.getInterfaceOperations(), errorReporter); } }
private void getAllInterfaceOperations(Interface interfac, List allInterfaces, List allOpers) { //check for circular Interface references to avoid infinite loop if(containsComponent(interfac, allInterfaces)) { return; } else { allInterfaces.add(interfac); } //get the declared operations for the specified Interface InterfaceOperation[] declaredOpers = interfac.getInterfaceOperations(); for(int i=0; i<declaredOpers.length; i++) { InterfaceOperation oper = declaredOpers[i]; if(!containsComponent(oper, allOpers)) { allOpers.add(oper); } } //get the derived operations from each extended interface Interface[] extInts = interfac.getExtendedInterfaces(); for(int j=0; j<extInts.length; j++) { getAllInterfaceOperations(extInts[j], allInterfaces, allOpers); } }
/** * Validate the interfaces in the WSDL component model. * * @param interfaces The interfaces in the WSDL component model. * @param errorReporter An error reporter to be used for reporting errors. * @throws WSDLException A WSDLException is thrown if a problem occurs while validating the interface components. */ protected void validateInterfaces(Interface[] interfaces, ErrorReporter errorReporter) throws WSDLException { testAssertionInterface1010(interfaces, errorReporter); int numInterfaces = interfaces.length; for(int i = 0; i < numInterfaces; i++) { Interface interfac = interfaces[i]; testAssertionInterface1009(interfac, errorReporter); validateInterfaceOperations(interfac, interfac.getInterfaceOperations(), errorReporter); } }
InterfaceOperation[] interfaceOperations = interfac.getInterfaceOperations(); if(interfaceOperations == null) return true;
InterfaceOperation[] interfaceOperations = interfac.getInterfaceOperations(); if(interfaceOperations == null) return true;
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); } }
Interface wsdlInterface = wsdlEndpoint.getBinding().getInterface(); binding.setInterfaceName(wsdlInterface.getName()); InterfaceOperation[] wsdlOperations = wsdlInterface.getInterfaceOperations(); for (int i = 0; i < wsdlOperations.length; i++) {