Sebastian Fresta wrote:Hi,
I was asked to create a sample class which behaves like the webservice and that would return the class returned by the webservice. this is required so to test the remaining of the application without the need of the webservice since we use a test server and most of the time this is down
Creating a sample class manually will be too much because it has a lot of data and subclasses. I finished up parsing the xml manually using javax.xml.parsers and org.w3c.dom.Document, etc. but i would still would like to know if there is a way to accomplish this.
thanks again
Hi Sebastian,
I'm not sure, if I understood completely, but you basically wanted to test your service, by not having the service deployed in some web or
ejb container. If that is the case, javax.xml.ws.Endpoint is at your rescue. I don't know, if this is ever used in production, but certainly a good option for testing, where proper containers are not available. But please be aware that using this, you may not be able to get benefited by the features the containers provide.