Examples of EndpointReferenceType


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

                    }
                }
            }
            Class cls = Class.forName(implName, false, Thread.currentThread().getContextClassLoader());
            Object impl = cls.newInstance();
            EndpointReferenceType ref;
            if (url != null) {
                ref = EndpointReferenceUtils
                    .getEndpointReference(url,
                                      QName.valueOf(serviceName),
                                      portName);
View Full Code Here

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

     * @param exposed the 2004/08 EndpointReferenceType
     * @return an equivalent 2005/08 EndpointReferenceType
     */
    public static EndpointReferenceType convert(
            org.objectweb.celtix.ws.addressing.v200408.EndpointReferenceType exposed) {
        EndpointReferenceType internal =
            ContextUtils.WSA_OBJECT_FACTORY.createEndpointReferenceType();
        internal.setAddress(convert(exposed.getAddress()));
        internal.setReferenceParameters(
                            convert(exposed.getReferenceParameters()));
        ServiceNameType serviceName = exposed.getServiceName();
        AttributedQName portName = exposed.getPortType();
        if (serviceName != null && portName != null) {
            EndpointReferenceUtils.setServiceAndPortName(internal,
                                                  serviceName.getValue(),
                                                  portName.getValue().getLocalPart());
        }

        // no direct analogue for ReferenceProperties
        addAll(internal.getAny(), exposed.getAny());
        putAll(internal.getOtherAttributes(), exposed.getOtherAttributes());
        return internal;
    }
View Full Code Here

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

    private GeronimoTransportFactory factory = new GeronimoTransportFactory();
    private EndpointReferenceType addr;
   
    public void setUp() throws Exception {
        container = new CeltixWebServiceContainer(null);
        addr = new EndpointReferenceType();
        AttributedURIType uri = new AttributedURIType();
        uri.setValue("http://not.there.iona.com/wibbly/wobbly/wonder");
        addr.setAddress(uri);
        QName serviceName = new QName("http://www.w3.org/2004/08/wsdl", "testServiceName");
        EndpointReferenceUtils.setServiceAndPortName(addr, serviceName, "");
View Full Code Here

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

    private void initFixture() {
       
        EasyMock.reset(clientBinding);
       
        endpointRef = new EndpointReferenceType();
        EndpointReferenceUtils.setServiceAndPortName(endpointRef,
                                                     new QName("http://objectweb.org/hello_world_soap_http",
                                                               "Greeter"),
                                                               "SOAPPort")
        ResponseCallback responseCallback = EasyMock.createMock(ResponseCallback.class);
View Full Code Here

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

   
    public void setUp() throws Exception {
       
        mockBus = busFactory.createMockBus();
       
        address = new EndpointReferenceType();
        AttributedURIType uri = new AttributedURIType();
        uri.setValue("http://foo.bar.iona.com/wibbly/wobbly/wonder");
        address.setAddress(uri);
        QName serviceName = new QName("http://www.w3.org/2004/08/wsdl", "testServiceName");
        EndpointReferenceUtils.setServiceAndPortName(address, serviceName, "");
View Full Code Here

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

        }
    }
   
    public void testWsdlPortProvider() throws WSDLException {
       
        EndpointReferenceType ref = EndpointReferenceUtils.getEndpointReference(WSDL_URL, SERVICE, PORT);
        Port p = EndpointReferenceUtils.getPort(wmgr, ref);      
      
        WsdlPortProvider pp = new WsdlPortProvider(p);
        assertNotNull(pp);
       
View Full Code Here

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

        pp = new WsdlPortProvider(null);
        assertNull(pp.getObject("bindingId"));
    }
   
    public void testWsdlHttpConfigurationProvider() throws WSDLException, JAXBException {
        EndpointReferenceType ref = EndpointReferenceUtils.getEndpointReference(WSDL_URL, SERVICE, PORT);
        Port p = EndpointReferenceUtils.getPort(wmgr, ref);      
      
        WsdlHttpConfigurationProvider hcp = new WsdlHttpConfigurationProvider(p, true);
        assertNull(hcp.getObject("SendTimeout"));
        Object value = hcp.getObject("httpServer");       
View Full Code Here

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

        }
       
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getSOAPPort();
       
        EndpointReferenceType ref =
            EndpointReferenceUtils.getEndpointReference(new WSDLManagerImpl(bus), implementor);
       

        String resp = port.registerCallback(ref);
View Full Code Here

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

        // the Remote interface. It is however annotated with a WebService
        // annotation
        // in which the wsdl location attribute is not set.
        Object implementor = new AnnotatedGreeterNoOverloadImpl();
        WSDLManager manager = bus.getWSDLManager();
        EndpointReferenceType ref = EndpointReferenceUtils
                .getEndpointReference(manager, implementor);

        Definition def = EndpointReferenceUtils.getWSDLDefinition(manager, ref);
        assertNotNull("Could not generate wsdl", def);
View Full Code Here

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

        Bus bus = Bus.init();
       
        Object implementor = new AnotherDerivedGreeterImpl();
       
        WSDLManager manager = bus.getWSDLManager();
        EndpointReferenceType ref = EndpointReferenceUtils
                .getEndpointReference(manager, implementor);
        Definition def = EndpointReferenceUtils.getWSDLDefinition(manager, ref);
        assertNotNull("Could not load wsdl", def);
       
        Port port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), ref);
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.