users@glassfish.java.net

Re: Running Ws client from glassfish throws exception

From: <glassfish_at_javadesktop.org>
Date: Fri, 01 Oct 2010 08:36:56 PDT

No taker on this one. Let me make it easier to break it down to simpler questions.

1) Has anyone used Netbeans 6.8 to build a web service JAXWS style client stub via the web service wsdl (new -> web service client -> choose 'WSDL URL')?

2) If yes to 1). Have you used the client stub to comsume the web service from an EJB or servlet in a web app deployed on Glassfish v3.0.1?

3) if the web service is not local on the same glassfish service, does it work?

4) If still yes, is the following the right way to use the client stub assume that the web service class is com.wstest.WSTest and the web service at http://anyserver:8080/SOAPWSEE6/WSTestService?wsdl

            URL baseUrl = WSTestService.class.getResource(".");
            WSTestService service = new WSTestService(new URL(baseUrl, "http://anyserver:8080/SOAPWSEE6/WSTestService?wsdl"), new QName("http://wstest.com/", "WSTestService"));
            port = service.getWSTestPort();


Thanks.
[Message sent by forum member 'hyijun37013']

http://forums.java.net/jive/thread.jspa?messageID=484128