Package javax.xml.ws.wsaddressing

Examples of javax.xml.ws.wsaddressing.W3CEndpointReference


        builder.address("http://localhost:"
                        + greeterPort
                        + "/SOAPDispatchService/SoapDispatchPort");
        builder.serviceName(SERVICE_NAME);
        builder.endpointName(PORT_NAME);
        W3CEndpointReference w3cEpr = builder.build();
        Dispatch<SOAPMessage> disp = service
            .createDispatch(w3cEpr, SOAPMessage.class, Service.Mode.MESSAGE);
        InputStream is = getClass().getResourceAsStream("resources/GreetMeDocLiteralReq.xml");
        SOAPMessage soapReqMsg = MessageFactory.newInstance().createMessage(null, is);
        assertNotNull(soapReqMsg);
View Full Code Here


        return s;
    }

    public String registerCallback(NestedCallback callbackObject) {
        try {
            W3CEndpointReference w3cEpr = callbackObject.getCallback();
           
            EndpointReferenceType callback = VersionTransformer.convertToInternal(w3cEpr);

            WSDLManager manager = new WSDLManagerImpl();
       
View Full Code Here

        }
   
        NestedCallback callbackObject = new NestedCallback();

        Source source = EndpointReferenceUtils.convertToXML(ref);
        W3CEndpointReference  w3cEpr = new W3CEndpointReference(source);
       
       
        callbackObject.setCallback(w3cEpr);
        String resp = port.registerCallback(callbackObject);
View Full Code Here

            QName wsaEpr = new QName(Names.WSA_NAMESPACE_NAME, "EndpointReference");
            while (extensionElements.hasNext()) {
                ExtensibilityElement ext = (ExtensibilityElement)extensionElements.next();
                if (ext instanceof UnknownExtensibilityElement && wsaEpr.equals(ext.getElementType())) {
                    DOMSource domSource = new DOMSource(((UnknownExtensibilityElement)ext).getElement());
                    W3CEndpointReference w3cEPR = new W3CEndpointReference(domSource);
                    EndpointReferenceType ref = VersionTransformer.convertToInternal(w3cEPR);
                    endpoint.getTarget().setMetadata(ref.getMetadata());
                    endpoint.getTarget().setReferenceParameters(ref.getReferenceParameters());
                    endpoint.getTarget().getOtherAttributes().putAll(ref.getOtherAttributes());
                }
View Full Code Here

       
        // manually force id into address context as context appendage
        EndpointReferenceType epr = EndpointReferenceUtils.duplicate(templateEpr);
        EndpointReferenceUtils.setAddress(epr, EndpointReferenceUtils.getAddress(epr) + id);
        Source source = EndpointReferenceUtils.convertToXML(epr);
        return new W3CEndpointReference(source);
    }
View Full Code Here

                                                                 portName,
                                                                 id,
                                                                 BusFactory.getDefaultBus());
       
        Source source = EndpointReferenceUtils.convertToXML(epr);
        return  new W3CEndpointReference(source);
       
    }
View Full Code Here

   
        NumberFactoryService service = new NumberFactoryService();
        NumberFactory nfact = service.getNumberFactoryPort();
        updateAddressPort(nfact, NumberFactoryImpl.PORT);
       
        W3CEndpointReference w3cEpr = nfact.create("2");       
        assertNotNull("reference", w3cEpr);
       
        // use the epr info only
        // no wsdl so default generated soap/http binding will be used
        // address url must come from the calling context
View Full Code Here

        NumberFactoryService service = new NumberFactoryService();
        NumberFactory factory = service.getNumberFactoryPort();
        updateAddressPort(factory, NumberFactoryImpl.PORT);

       
        W3CEndpointReference w3cEpr = factory.create("20");
        EndpointReferenceType numberTwoRef = VersionTransformer.convertToInternal(w3cEpr);
        assertNotNull("reference", numberTwoRef);
       
        // use getPort with epr api on service
        NumberService numService = new NumberService();
View Full Code Here

        EndpointReferenceType epr = EndpointReferenceUtils.getEndpointReferenceWithId(NUMBER_SERVICE_QNAME,
                                                                                      portName, id,
                                                                                      BusFactory
                                                                                          .getDefaultBus());
        Source source = EndpointReferenceUtils.convertToXML(epr);
        return new W3CEndpointReference(source);
    }
View Full Code Here

        updateAddressPort(factory, NumberFactoryImpl.PORT);
       
        NumberService numService = new NumberService();
        ServiceImpl serviceImpl = ServiceDelegateAccessor.get(numService);
       
        W3CEndpointReference numberTwoRef = factory.create("20");
        assertNotNull("reference", numberTwoRef);
          
        Number num =  (Number)serviceImpl.getPort(numberTwoRef, Number.class);
        assertTrue("20 is even", num.isEven().isEven());
       
        W3CEndpointReference numberTwentyThreeRef = factory.create("23");
        num =  (Number)serviceImpl.getPort(numberTwentyThreeRef, Number.class);
        assertTrue("23 is not even", !num.isEven().isEven());
    }
View Full Code Here

TOP

Related Classes of javax.xml.ws.wsaddressing.W3CEndpointReference

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.