Package javax.xml.ws.wsaddressing

Examples of javax.xml.ws.wsaddressing.W3CEndpointReference


        NumberFactoryService service = new NumberFactoryService();
        NumberFactory factory = service.getNumberFactoryPort();
        updateAddressPort(factory, 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


        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);
       
View Full Code Here

        handleNotify(notify);
    }

    protected void handleNotify(Notify notify) {
        for (NotificationMessageHolderType messageHolder : notify.getNotificationMessage()) {
            W3CEndpointReference producerReference = messageHolder.getProducerReference();
            AbstractPublisher publisher = getPublisher(producerReference);
            if (publisher != null) {
                publisher.notify(messageHolder);
            }
        }
View Full Code Here

        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

            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

        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

        builder.address("http://localhost:"
                        + greeterPort
                        + "/SOAPDispatchService/SoapDispatchPort");
        builder.serviceName(SERVICE_NAME);
        builder.endpointName(PORT_NAME);
        W3CEndpointReference w3cEpr = builder.build();
        JAXBContext jc = JAXBContext.newInstance("org.apache.hello_world_soap_http.types");
        Dispatch<Object> disp = service.createDispatch(w3cEpr, jc, Service.Mode.PAYLOAD, new AddressingFeature());
        doJAXBPayload(disp);
    }
View Full Code Here

    return null;
  }
 
 
  public static W3CEndpointReference getFileContentAsEPR(String path){
    return new W3CEndpointReference(new StreamSource(path))
  }
View Full Code Here

  }

  public static W3CEndpointReference discoverGateway()
      throws InterruptedException {
    LOG.debug("Discovering gateway ...");
    W3CEndpointReference gatewayEPR = null;
    USMTNucleiDiscoveryUtil util = USMTNucleiDiscoveryUtil.getInstance();

    List<I_USMTNucleus> nList = util.getNuclei();
    for (int i = 0; i < MAX_RETRY_FOR_GATEWAY; i++) {
      for (I_USMTNucleus nucleus : nList) {
View Full Code Here

    {
     
          for (int i=0; i<dataSources.length; i+=2)
          {     
       
            W3CEndpointReference reference = EPRUtil.stringToEPR(dataSources[i+1]);
              LOG.debug(reference.toString());
        DataSourceResource datasource = USMTSimpleServer.getDataSourceResource(reference);
              LOG.debug("Retrieving data from data source '" + dataSources[i] + "' ... ");
             
              Result mResult = new SimpleResult(dataSources[i], datasource);
              results.put(dataSources[i], mResult);
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.