Examples of EndpointReferenceType


Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

        if (null == headers) {
            headers = new HashMap<String, List<String>>();
            super.put(HTTP_REQUEST_HEADERS, headers);
        }

        EndpointReferenceType to = ContextUtils.retrieveTo(ctx);
        if (to != null && to.getAddress() != null) {
            URL url = new URL(to.getAddress().getValue());
            connection = getConnection(url);
            connection.setDoOutput(true);
   
            if (connection instanceof HttpURLConnection) {
                HttpURLConnection hc = (HttpURLConnection)connection;
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

        return createPort(null, serviceEndpointInterface);
    }

    public <T> Dispatch<T> createDispatch(QName portName, Class<T> serviceEndpointInterface,
                                    Service.Mode mode) {
        EndpointReferenceType ref =
            EndpointReferenceUtils.getEndpointReference(wsdlLocation,
                                                        serviceName,
                                                        portName.getLocalPart());
        createPortConfiguration(portName, ref);
        return new DispatchImpl<T>(bus, ref, mode, serviceEndpointInterface, executor);
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

        return new DispatchImpl<T>(bus, ref, mode, serviceEndpointInterface, executor);
    }

    public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode) {

        EndpointReferenceType ref =
            EndpointReferenceUtils.getEndpointReference(wsdlLocation,
                                                        serviceName,
                                                        portName.getLocalPart());
        createPortConfiguration(portName, ref);
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

        if (serviceName == null) {
            serviceName = getServiceName(wsAnnotation);
        }

        EndpointReferenceType ref = EndpointReferenceUtils.getEndpointReference(wsdlLocation,
                serviceName, portName.getLocalPart());

        Configuration portConfiguration = createPortConfiguration(portName, ref);

        EndpointInvocationHandler endpointHandler =
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

                if (isOneWay()) {
                    response.commit();
                }
            } else if (responseObj instanceof EndpointReferenceType) {
                // decoupled response
                EndpointReferenceType decoupledResponseEndpoint =
                    (EndpointReferenceType)responseObj;
               
                if (!isOneWay()) {
                    // REVISIT: use policy logic from HTTPClientTransport
                    // REVISIT: handle connection closure
                    URL url = new URL(decoupledResponseEndpoint.getAddress().getValue());
                    URLConnection connection = getConnection(url);
                    responseStream = connection.getOutputStream();
                    put(HTTPServerInputStreamContext.HTTP_RESPONSE, connection);
                }
            } else if (responseObj instanceof URLConnection) {
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

       
        URL url = getClass().getClassLoader().getResource(".");
        URL wsdlUrl = new URL(url, "../classes-tests/wsdl/hello_world.wsdl");
        assertNotNull(wsdlUrl);
        QName serviceName = new QName("http://objectweb.org/hello_world_soap_http", "SOAPService");
        EndpointReferenceType address = EndpointReferenceUtils
            .getEndpointReference(wsdlUrl, serviceName, "SoapPort");
       
        ClientBinding clientBinding = factory.createClientBinding(address);
        assertNotNull(clientBinding);
        assertTrue(SOAPClientBinding.class.isInstance(clientBinding));
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

    }
   
    protected void setUp() throws Exception {
        super.setUp();
        bus = Bus.init();
        epr = new EndpointReferenceType();
       
        URL wsdlUrl = getClass().getResource("/wsdl/hello_world.wsdl");
        QName serviceName = new QName("http://objectweb.org/hello_world_soap_http", "SOAPService");
        epr = EndpointReferenceUtils.getEndpointReference(wsdlUrl, serviceName, "SoapPort");       
    }
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

            maps.setMessageID(ContextUtils.getAttributedURI(messageID));
        }
        // To
        if (maps.getTo() == null) {
            // To cached in context by transport
            EndpointReferenceType reference =
                clientTransport == null ? null : clientTransport.getTargetEndpoint();
            maps.setTo(reference != null
                       ? reference.getAddress()
                       : ContextUtils.getAttributedURI(Names.WSA_NONE_ADDRESS));
        }
        // Action
        if (ContextUtils.hasEmptyAction(maps)) {
            maps.setAction(ContextUtils.getAction(context));
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

            // add request-specific MAPs
            boolean isOneway = ContextUtils.isOneway(context);
            // ReplyTo, set if null in MAPs or if set to a generic address
            // (anonymous or none) that may not be appropriate for the
            // current invocation
            EndpointReferenceType replyTo = maps.getReplyTo();
            if (ContextUtils.isGenericAddress(replyTo)) {
               
                try {
                    replyTo = clientTransport == null ? null : clientTransport.getDecoupledEndpoint();
                } catch (IOException ex) {
                    // ignore
                    replyTo = null;
                }
               
                if (replyTo == null || isOneway) {
                    AttributedURIType address =
                        ContextUtils.getAttributedURI(isOneway
                                                      ? Names.WSA_NONE_ADDRESS
                                                      : Names.WSA_ANONYMOUS_ADDRESS);
                    replyTo =
                        ContextUtils.WSA_OBJECT_FACTORY.createEndpointReferenceType();
                    replyTo.setAddress(address);
                }
                maps.setReplyTo(replyTo);
            }
            if (!isOneway) {
                // REVISIT FaultTo if cached by transport in context
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

                                  AddressingProperties inMAPs,
                                  CreateSequenceResponseType csr) {
       
        super(b, t, b.createObjectContext());
       
        EndpointReferenceType to = inMAPs.getReplyTo();
        if (to != null) {
            ContextUtils.storeTo(to, getObjectMessageContext());
            EndpointReferenceType replyTo =
                EndpointReferenceUtils.getEndpointReference(Names.WSA_ANONYMOUS_ADDRESS);
            ContextUtils.storeReplyTo(replyTo,
                                      getObjectMessageContext());
        }
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.