Package javax.xml.ws

Examples of javax.xml.ws.EndpointReference


            return ret;
        }

        private ResolveMatchesType handleResolve(ResolveType resolve) {
            ResolveMatchType rmt = new ResolveMatchType();
            EndpointReference ref = resolve.getEndpointReference();
            EndpointReferenceType iref = ProviderImpl.convertToInternal(ref);
            for (HelloType hello : registered) {
                W3CEndpointReference r = hello.getEndpointReference();
                if (matches(iref, r)) {
                    rmt.setEndpointReference(r);
View Full Code Here


            if (soapMessageContext == null) {
                log.debug("The MessageContext is not available");
            }
        }
       
        EndpointReference jaxwsEPR = null;
        String addressingNamespace = EndpointReferenceUtils.getAddressingNamespace(clazz);
       
        if (soapMessageContext != null) {
            QName service = (QName) soapMessageContext.get(MessageContext.WSDL_SERVICE);
            QName endpoint = (QName) soapMessageContext.get(MessageContext.WSDL_PORT);
View Full Code Here

        return serviceDelegate.getPort(axis2EPR, addressingNamespace, sei, features);
    }

    @Override
    public EndpointReference readEndpointReference(Source eprInfoset) {
        EndpointReference jaxwsEPR = null;

        try {
            jaxwsEPR = EndpointReferenceUtils.convertFromSource(eprInfoset);
        }
        catch (Exception e) {
View Full Code Here

    /*
     *  (non-Javadoc)
     * @see javax.xml.ws.BindingProvider#getEndpointReference(java.lang.Class)
     */
    public <T extends EndpointReference> T getEndpointReference(Class<T> clazz) {
        EndpointReference jaxwsEPR = null;
        String addressingNamespace = EndpointReferenceUtils.getAddressingNamespace(clazz);
       
        try {
            org.apache.axis2.addressing.EndpointReference epr = binding.getAxis2EndpointReference();
           
View Full Code Here

    public void testReferenceProperties() throws Exception {
        // test request reference properties       
        W3CEndpointReferenceBuilder builder = createERPBuilder();
        Document refParam = TestUtils.createDocument(REF_PARAM);
        builder.referenceParameter(refParam.getDocumentElement());
        EndpointReference epr = builder.build();
       
        Calculator calc = service.getPort(epr, Calculator.class, new AddressingFeature());
        Assert.assertEquals(36, calc.multiply(6, 6));
    }
View Full Code Here

        dispatch = service.createDispatch(PORT, SOAPMessage.class, Service.Mode.MESSAGE, new MTOMFeature());
        request = TestUtils.createMessage(MessageFormat.format(MSG2, address, UUID.randomUUID(), ADD_REQUEST_ACTION, 10));
        response = dispatch.invoke(request);
        testAddResponse(response, 20, true);
       
        EndpointReference epr = null;
       
        // make a call with Addressing support using EPR
        epr = createEPR();

        service.createDispatch(epr, SOAPMessage.class, Service.Mode.MESSAGE);
View Full Code Here

      
        // make a call with AddressingFeature enabled and port       
        calc = service.getPort(PORT, Calculator.class, new AddressingFeature());
        Assert.assertEquals(6, calc.add(3, 3));
               
        EndpointReference epr = null;
       
        // make a call using EPR from Binding
        epr = ((BindingProvider)calc).getEndpointReference();
       
        calc = service.getPort(epr, Calculator.class, new AddressingFeature());
View Full Code Here

            return ret;
        }

        private ResolveMatchesType handleResolve(ResolveType resolve) {
            ResolveMatchType rmt = new ResolveMatchType();
            EndpointReference ref = resolve.getEndpointReference();
            EndpointReferenceType iref = ProviderImpl.convertToInternal(ref);
            for (HelloType hello : registered) {
                W3CEndpointReference r = hello.getEndpointReference();
                if (matches(iref, r)) {
                    rmt.setEndpointReference(r);
View Full Code Here

        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

    @Test
    public void testConvertToInternal() throws Exception {
        InputStream is = getClass().getResourceAsStream("resources/hello_world_soap_http_infoset.xml");
        Document doc = XMLUtils.parse(is);
        DOMSource erXML = new DOMSource(doc);
        EndpointReference endpointReference = readEndpointReference(erXML);
       
        EndpointReferenceType ert = VersionTransformer.convertToInternal(endpointReference);

        assertNotNull(ert);
        assertEquals("http://localhost:8080/test", ert.getAddress().getValue());
View Full Code Here

TOP

Related Classes of javax.xml.ws.EndpointReference

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.