Search in sources :

Example 1 with PortInfoImpl

use of com.sun.xml.ws.handler.PortInfoImpl in project metro-jax-ws by eclipse-ee4j.

the class HandlerChainTester method testPortInfoImpl.

/*
    Commenting this test as this no longer is useful.
    In 2.1, When we try to add a invalid Port to a service with wsdl, now we throw WebServiceException,
    during addPort() itself saying Port name is not a valid port in the wsdl.

    public void testHandlersOnUnknownPortDispatch(){
        TestService_Service service = getService();
        String bindingId = SOAPBinding.SOAP11HTTP_BINDING;
        service.addPort(UNKNOWNPORT, bindingId, endpointAddress);
        Dispatch<Source> dispatch = service.createDispatch(UNKNOWNPORT, Source.class,Service.Mode.PAYLOAD);
        Binding testBinding = ((BindingProvider) dispatch).getBinding();
        List<Handler> chain = testBinding.getHandlerChain();
        //System.out.println(chain.size());
        assertEquals(2,chain.size());
    }
    */
public void testPortInfoImpl() {
    PortInfo portInfo = new PortInfoImpl(BindingID.SOAP11_HTTP, new QName("http://example.com/", "EchoPort"), new QName("http://example.com/", "EchoService"));
    assertTrue(portInfo.equals(portInfo));
}
Also used : PortInfo(jakarta.xml.ws.handler.PortInfo) QName(javax.xml.namespace.QName) PortInfoImpl(com.sun.xml.ws.handler.PortInfoImpl)

Aggregations

PortInfoImpl (com.sun.xml.ws.handler.PortInfoImpl)1 PortInfo (jakarta.xml.ws.handler.PortInfo)1 QName (javax.xml.namespace.QName)1