Skip to main content

.addPort has no effect

1 reply [Last post]
hamphh
Offline
Joined: 2008-07-04
Points: 0

Hi there,

obviously .addPort has no effect. Why?

Service service = new MyService_Service(wsdlURL, new QName("http://myService", "MyService"));
service.addPort(new QName("http://myService", "SpecialPort"), SOAPBinding.SOAP11HTTP_BINDING, "http://specialAddress");
MyService port = service.getPort(new QName("http://myService", "SpecialPort"), MyService.class);

==> javax.xml.ws.WebServiceException: {http://myService}SpecialPort is not a valid port.

Thanks, Markus.

Any Ideas?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jitu
Offline
Joined: 2003-06-14
Points: 0

It is typically used with Dispatch clients (also without WSDL)