Package org.objectweb.celtix.wsdl

Examples of org.objectweb.celtix.wsdl.WSDLManager


        }
        assertNotNull(jmsAddressDetails);
    }

    public void testPlugableWSDLManager() throws Exception {
        WSDLManager wsdlManager = new WSDLManagerImpl(null);
        Map<String, Object> properties = new WeakHashMap<String, Object>();
        properties.put("celtix.WSDLManager", wsdlManager);
        Bus bus = Bus.init(new String[0], properties);

        WSDLManager wsdlManagerNew = bus.getWSDLManager();

        //Verify that the WSDLManger is the one we plugged into bus previously
        assertEquals("wsdlManager is the one we expected", wsdlManager, wsdlManagerNew);
    }
View Full Code Here


   
    public String registerCallback(EndpointReferenceType callback) {
       
        try {
            Bus bus = Bus.init();
            WSDLManager manager = new WSDLManagerImpl(bus);
       
            QName interfaceName = EndpointReferenceUtils.getInterfaceName(callback);
            String wsdlLocation = EndpointReferenceUtils.getWSDLLocation(callback);
            QName serviceName = EndpointReferenceUtils.getServiceName(callback);

           
            String portString = EndpointReferenceUtils.getPortName(callback);
           
            QName portName = new QName(serviceName.getNamespaceURI(), portString);
           
            StringBuffer seiName = new StringBuffer();
            seiName.append(JAXBUtils.namespaceURIToPackage(interfaceName.getNamespaceURI()));
            seiName.append(".");
            seiName.append(JAXBUtils.nameToIdentifier(interfaceName.getLocalPart(),
                                                      JAXBUtils.IdentifierType.INTERFACE));
           
            Class<?> sei = null;   
            try {
                sei = Class.forName(seiName.toString(),
                                    true, manager.getClass().getClassLoader());
            } catch (ClassNotFoundException ex) {
                ex.printStackTrace();
            }
           
            URL wsdlURL = (new File(wsdlLocation)).toURL();            
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.wsdl.WSDLManager

Copyright © 2018 www.massapicom. 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.