How to use the Provider interface with JAX-WS
Please can someone give me advice on this? I can use the sample that comes with the JAX-WS download, and also send the prepared client and get the expected response. But, I cannot use the WSDL to generate a SOAP message that receives a proper response - I just get the exception thrown from the server class. Is it possible to use the wsdl to generate a client? I tried, for instance, to generate both C# and Java clients, but couldn't do it because I couldn't work out what to do. I've also tried sending a straight XML message over HTTP, with the message conforming to the types section in the WSDL - but that got the response "Unable to create envelope from given source". When I Googled for that, it seemed to be a namespace issue but I was using the namespace given in the WSDL. I'd really like to make this work!
I would be so grateful to have more details about how to use this and how it's actually working (in addition to the documentation with the JAX-WS and the javadocs, both of which I've read). Because some of the classes used in the client are generated artefacts (ServiceFactory, AddNumbersService, AddNumbersPortType), it's not easy to see what's going on.