Package org.apache.callback

Examples of org.apache.callback.ServerPortType


        Endpoint ep = Endpoint.publish(address, implementor);
   
        URL wsdlURL = getClass().getResource("/wsdl/basic_callback_test.wsdl");
   
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getPort(PORT_NAME, ServerPortType.class);
        updateAddressPort(port, PORT);
  

        EndpointReference w3cEpr = ep.getEndpointReference();             
        String resp = port.registerCallback((W3CEndpointReference)w3cEpr);
        assertEquals("registerCallback called", resp);
           
    }
View Full Code Here


        } else {
            wsdlURL = new URL(args[0]);
        }
       
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getSOAPPort();
       
        InputStream is = demo.callback.client.Client.class.getResourceAsStream("/callback_infoset.xml");
        Document doc = StaxUtils.read(is);
        Element referenceParameters = DOMUtils.findChildWithAtt(doc.getDocumentElement(),
                                                                "wsa:ReferenceParameters",
                                                                "name", "");
        W3CEndpointReference ref = (W3CEndpointReference)endpoint.getEndpointReference(referenceParameters);
       

        String resp = port.registerCallback(ref);
        System.out.println("Response from server: " + resp);
       
        System.exit(0);
    }
View Full Code Here

        } else {
            wsdlURL = new URL(args[0]);
        }
       
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getSOAPPort();
       
        InputStream is = demo.callback.client.Client.class.getResourceAsStream("/callback_infoset.xml");
        Document doc = XMLUtils.parse(is);
        Element referenceParameters = XMLUtils.fetchElementByNameAttribute(doc.getDocumentElement(),
                                                                           "wsa:ReferenceParameters",
                                                                           "");
        W3CEndpointReference ref = (W3CEndpointReference)endpoint.getEndpointReference(referenceParameters);
       

        String resp = port.registerCallback(ref);
        System.out.println("Response from server: " + resp);
       
        System.exit(0);
    }
View Full Code Here

        } else {
            wsdlURL = new URL(args[0]);
        }
       
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getSOAPPort();
       
        EndpointReferenceType ref =
            EndpointReferenceUtils.getEndpointReference(wsdlURL,
                                                        SERVICE_NAME_CALLBACK,
                                                        PORT_NAME_CALLBACK.getLocalPart());
        EndpointReferenceUtils.setInterfaceName(ref, PORT_TYPE_CALLBACK);
       

        String resp = port.registerCallback(ref);
        System.out.println("Response from server: " + resp);
       
        System.exit(0);
    }
View Full Code Here

        Endpoint.publish(address, implementor);
   
        URL wsdlURL = getClass().getResource("/wsdl/basic_callback_test.wsdl");
   
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getPort(PORT_NAME, ServerPortType.class);
  
        EndpointReferenceType ref = null;
        try {
            ref = EndpointReferenceUtils.getEndpointReference(wsdlURL,
                                                              SERVICE_NAME_CALLBACK,
                                                              PORT_NAME_CALLBACK.getLocalPart());
            EndpointReferenceUtils.setInterfaceName(ref, PORT_TYPE_CALLBACK);
        } catch (Exception e) {
            e.printStackTrace();
        }
   
        String resp = port.registerCallback(ref);

        assertEquals("registerCallback called", resp);
           
    }
View Full Code Here

        Endpoint.publish(address, implementor);
   
        URL wsdlURL = getClass().getResource("/wsdl/basic_callback_test.wsdl");
   
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getPort(PORT_NAME, ServerPortType.class);
  
        EndpointReferenceType ref = null;
        try {
            ref = EndpointReferenceUtils.getEndpointReference(wsdlURL,
                                                              SERVICE_NAME_CALLBACK,
                                                              PORT_NAME_CALLBACK.getLocalPart());
            EndpointReferenceUtils.setInterfaceName(ref, PORT_TYPE_CALLBACK);
        } catch (Exception e) {
            e.printStackTrace();
        }
   
        String resp = port.registerCallback(ref);

        assertEquals("registerCallback called", resp);
           
    }
View Full Code Here

        } else {
            wsdlURL = new URL(args[0]);
        }
       
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getSOAPPort();
       
        InputStream is = demo.callback.client.Client.class.getResourceAsStream("callback_infoset.xml");
        Document doc = XMLUtils.parse(is);
        Element referenceParameters = XMLUtils.fetchElementByNameAttribute(doc.getDocumentElement(),
                                                                           "wsa:ReferenceParameters",
                                                                           "");
        W3CEndpointReference ref = (W3CEndpointReference)endpoint.getEndpointReference(referenceParameters);
       

        String resp = port.registerCallback(ref);
        System.out.println("Response from server: " + resp);
       
        System.exit(0);
    }
View Full Code Here

        } else {
            wsdlURL = new URL(args[0]);
        }
       
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getSOAPPort();
       
        InputStream is = demo.callback.client.Client.class.getResourceAsStream("/callback_infoset.xml");
        Document doc = XMLUtils.parse(is);
        Element referenceParameters = XMLUtils.fetchElementByNameAttribute(doc.getDocumentElement(),
                                                                           "wsa:ReferenceParameters",
                                                                           "");
        W3CEndpointReference ref = (W3CEndpointReference)endpoint.getEndpointReference(referenceParameters);
       

        String resp = port.registerCallback(ref);
        System.out.println("Response from server: " + resp);
       
        System.exit(0);
    }
View Full Code Here

        Endpoint ep = Endpoint.publish(address, implementor);
   
        URL wsdlURL = getClass().getResource("/wsdl/basic_callback_test.wsdl");
   
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getPort(PORT_NAME, ServerPortType.class);
        updateAddressPort(port, PORT);
  

        EndpointReference w3cEpr = ep.getEndpointReference();             
        String resp = port.registerCallback((W3CEndpointReference)w3cEpr);
        assertEquals("registerCallback called", resp);
        ep.stop();
    }
View Full Code Here

        Endpoint.publish(address, implementor);
   
        URL wsdlURL = getClass().getResource("/wsdl/basic_callback_test.wsdl");
   
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getPort(PORT_NAME, ServerPortType.class);
  
        EndpointReferenceType ref = null;
        try {
            ref = EndpointReferenceUtils.getEndpointReference(wsdlURL,
                                                              SERVICE_NAME_CALLBACK,
                                                              PORT_NAME_CALLBACK.getLocalPart());
            EndpointReferenceUtils.setInterfaceName(ref, PORT_TYPE_CALLBACK);
        } catch (Exception e) {
            e.printStackTrace();
        }
       
      
        Source source = EndpointReferenceUtils.convertToXML(ref);
        W3CEndpointReference  w3cEpr = new W3CEndpointReference(source);             
        String resp = port.registerCallback(w3cEpr);
        assertEquals("registerCallback called", resp);
           
    }
View Full Code Here

TOP

Related Classes of org.apache.callback.ServerPortType

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.