Hi Daniel,
Thanks! You led me in the right direction, even though I was unable to use
your code directly as shown. You wrote:
> Service service = new Service(serviceQName);
But that constructor is protected. And the no-args one uses a default
place for the wsdl (where it was at stub-generation time).
What I ended up doing was this:
QName fooServiceQName = new QName("myns", "FooService");
FooService service = new FooService(null, fooServiceQName);
QName portName = new QName("myns", "Foo");
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, endpointURL);
Foo port = service.getPort(portName, Foo.class);
Giving null to the FooService constructor for wsdl-url makes it not read
it. Kind of un-documented, I think, but works.
Thanks again for the help.
/Per