Java 8 W3CEndpointReferenceBuilder - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 W3CEndpointReferenceBuilder class.

This code example shows how to use the following methods:address, build, endpointName, serviceName
     
    @Override 
    public void setUp() throws Exception {
        super.setUp(); 
         
        W3CEndpointReferenceBuilder w3cBuilder = new W3CEndpointReferenceBuilder();
        w3cBuilder = w3cBuilder.address("http://somewhere.com/somehow");
        w3cBuilder = w3cBuilder.serviceName(new QName("http://test", "TestService"));
        w3cBuilder = w3cBuilder.endpointName(new QName("http://test", "TestPort"));
        w3cEPR = w3cBuilder.build();
         
        SubmissionEndpointReferenceBuilder subBuilder = new SubmissionEndpointReferenceBuilder();
        subBuilder = subBuilder.address("http://somewhere.com/somehow");
        subBuilder = subBuilder.serviceName(new QName("http://test", "TestService"));
        subBuilder = subBuilder.endpointName(new QName("http://test", "TestPort"));
        subBuilder.build();
    } 
 
    public void testSharedSessionDispatch() { 
        Service svc = Service.create(new QName("http://test", "TestService"));
6
CodeRank
This code example shows how to use the following methods:address, endpointName, referenceParameter, serviceName
     
    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));
    } 
         
    public void testDispatch() throws Exception {
        Dispatch<SOAPMessage> dispatch = null;
        SOAPMessage request = null;
        SOAPMessage response = null;
         
        // make a call without Addressing support 
        dispatch = service.createDispatch(PORT, SOAPMessage.class, Service.Mode.MESSAGE);
        request = TestUtils.createMessage(MSG1);

6
CodeRank
This code example shows how to use the following methods:address, build, endpointName, serviceName
    } 
 
    private static W3CEndpointReference getEndpoint(QName service, QName port, String address, String id)
    { 
        try { 
            W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
            builder.serviceName(service);
            builder.endpointName(port);
            builder.address(address);
            if (id != null) {
                InstanceIdentifier.setEndpointInstanceIdentifier(builder, id);
            } 
            return builder.build();
        } catch (Exception e) {
            return null; 
        } 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:address, build, endpointName, serviceName
     
    @Override 
    public void setUp() throws Exception {
        super.setUp(); 
         
        W3CEndpointReferenceBuilder w3cBuilder = new W3CEndpointReferenceBuilder();
        w3cBuilder = w3cBuilder.address("http://somewhere.com/somehow");
        w3cBuilder = w3cBuilder.serviceName(new QName("http://test", "TestService"));
        w3cBuilder = w3cBuilder.endpointName(new QName("http://test", "TestPort"));
        w3cEPR = w3cBuilder.build();
         
        SubmissionEndpointReferenceBuilder subBuilder = new SubmissionEndpointReferenceBuilder();
        subBuilder = subBuilder.address("http://somewhere.com/somehow");
        subBuilder = subBuilder.serviceName(new QName("http://test", "TestService"));
        subBuilder = subBuilder.endpointName(new QName("http://test", "TestPort"));
        subEPR = subBuilder.build();
    } 
 
    /* 
     * Make sure SubmissionAddressing is not enabled by default. 
6
CodeRank
This code example shows how to use the following methods:address, build, endpointName, serviceName
    	} 
    } 
 
    private W3CEndpointReference getParticipant(final QName service, final QName endpoint, final String address, final String id)
    { 
        final W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
        builder.serviceName(service);
        builder.endpointName(endpoint);
        builder.address(address);
        InstanceIdentifier.setEndpointInstanceIdentifier(builder, id);
        return builder.build();
    } 
 
    private ContextManager _ctxManager = new ContextManager();
} 
6
CodeRank
This code example shows how to use the following methods:address, build, endpointName, serviceName
     
    @Override 
    public void setUp() throws Exception {
        super.setUp(); 
         
        W3CEndpointReferenceBuilder w3cBuilder = new W3CEndpointReferenceBuilder();
        w3cBuilder = w3cBuilder.address("http://somewhere.com/somehow");
        w3cBuilder = w3cBuilder.serviceName(new QName("http://test", "TestService"));
        w3cBuilder = w3cBuilder.endpointName(new QName("http://test", "TestPort"));
        w3cEPR = w3cBuilder.build();
         
        SubmissionEndpointReferenceBuilder subBuilder = new SubmissionEndpointReferenceBuilder();
        subBuilder = subBuilder.address("http://somewhere.com/somehow");
        subBuilder = subBuilder.serviceName(new QName("http://test", "TestService"));
        subBuilder = subBuilder.endpointName(new QName("http://test", "TestPort"));
        subEPR = subBuilder.build();
    } 
 
    /* 
     * Make sure Addressing is not enabled by default. 
6
CodeRank
This code example shows how to use the following methods:address, build, endpointName, serviceName
        } 
    } 
 
	private W3CEndpointReference getParticipantManager (final QName serviceName, final QName endpointName, final String address, final String id)
	{ 
        W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
        builder.serviceName(serviceName);
        builder.endpointName(endpointName);
        builder.address(address);
        InstanceIdentifier.setEndpointInstanceIdentifier(builder, id);
        return builder.build();
	} 
 
	private CoordinatorManager _coordManager = null;
 
	private ConcurrentHashMap _hierarchies = new ConcurrentHashMap();
} 
6
CodeRank
This code example shows how to use the following methods:build
        assertNotNull(wsdl);
 
        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();
        updateAddressPort(port, PORT);
        W3CEndpointReferenceBuilder builder = new  W3CEndpointReferenceBuilder();
        W3CEndpointReference w3cEpr = builder.build();
        port.registerPeerManager(w3cEpr,
                                 new Holder<W3CEndpointReference>(),
                                 new Holder<java.lang.String>());
 
        port.deregisterPeerManager(new java.lang.String());
 
         
        port.registerEndpoint(null, w3cEpr);
 
         
        port.deregisterEndpoint(null, w3cEpr);
 
         
5
CodeRank
This code example shows how to use the following methods:address, build, endpointName, serviceName
     
    @Override 
    public void setUp() throws Exception {
        super.setUp(); 
         
        W3CEndpointReferenceBuilder w3cBuilder = new W3CEndpointReferenceBuilder();
        w3cBuilder = w3cBuilder.address("http://somewhere.com/somehow");
        w3cBuilder = w3cBuilder.serviceName(new QName("http://test", "TestService"));
        w3cBuilder = w3cBuilder.endpointName(new QName("http://test", "TestPort"));
        w3cEPR = w3cBuilder.build();
         
        SubmissionEndpointReferenceBuilder subBuilder = new SubmissionEndpointReferenceBuilder();
        subBuilder = subBuilder.address("http://somewhere.com/somehow");
        subBuilder = subBuilder.serviceName(new QName("http://test", "TestService"));
        subBuilder = subBuilder.endpointName(new QName("http://test", "TestPort"));
        subEPR = subBuilder.build();
    } 
 
    public MessageTests() { 
        super(); 
5
CodeRank
This code example shows how to use the following methods:referenceParameter
     * @param builder The endpoint reference builder. 
     * @param identifier The identifier. 
     */ 
    public static void setEndpointInstanceIdentifier(final W3CEndpointReferenceBuilder builder, final String identifier)
    { 
        builder.referenceParameter(createInstanceIdentifierElement(identifier));
    } 
     
    /** 
     * Set the identifier on a W3C endpoint reference under construction. 
     * @param builder The endpoint reference builder. 
     * @param instanceIdentifier The identifier. 
     */ 
    public static void setEndpointInstanceIdentifier(final W3CEndpointReferenceBuilder builder, final InstanceIdentifier instanceIdentifier)
    { 
        builder.referenceParameter(createInstanceIdentifierElement(instanceIdentifier.getInstanceIdentifier())) ;
    } 
 
    /** 
    * Set the identifier on a WS Addressing endpoint reference under construction. 
4
CodeRank
See Code Examples for Java 8 W3CEndpointReferenceBuilder Methods: