Examples of WSDLInterfaceContract


Examples of org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterfaceContract

    public WSDLInterfaceContract read(XMLStreamReader reader) throws ContributionReadException {
        try {
   
            // Read an <interface.wsdl>
            WSDLInterfaceContract wsdlInterfaceContract = wsdlFactory.createWSDLInterfaceContract();
           
            // Read wsdlLocation
            String location = reader.getAttributeValue(WSDLI_NS, WSDL_LOCATION);
            wsdlInterfaceContract.setLocation(location);
           
            String uri = reader.getAttributeValue(null, INTERFACE);
            if (uri != null) {
                WSDLInterface wsdlInterface = createWSDLInterface(uri);
                wsdlInterfaceContract.setInterface(wsdlInterface);
            }
           
            uri = reader.getAttributeValue(null, CALLBACK_INTERFACE);
            if (uri != null) {
                WSDLInterface wsdlCallbackInterface = createWSDLInterface(uri);
                wsdlInterfaceContract.setCallbackInterface(wsdlCallbackInterface);
            }
               
            // Skip to end element
            while (reader.hasNext()) {
                if (reader.next() == END_ELEMENT && INTERFACE_WSDL_QNAME.equals(reader.getName())) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.