----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 10:34 Subject: RE: Determining if a service is deployed (wrapped in my own webapp)
> Thanks, > but I've wrapped it in my own webapp. I tried this: > http://149.98.242.166:8080/GMPServer/services/GMP > > which returned the page: > GMP > Hi there, this is an AXIS service! > Perhaps there will be a form for invoking the service here... try http://149.98.242.166:8080/GMPServer/services/GMP?WSDL to get the wsdl, or http://149.98.242.166:8080/GMPServer/services/GMP?method=authenticate¶m= rcuprak¶m=alpha to invoke the endpoint > > I assume this means I have sucessfully deployed the service. I ran the > java2wsdl tool on my class I am exposing as a webservice and then used > wsdl2java to generate a client. I then wrote the following test code to > use the generated client code: > GMPService binding = null; > try { > binding = new GMPLocator().getGMPService(); > } catch ( javax.xml.rpc.ServiceException jre) { > jre.printStackTrace(); > } > try { > boolean value = binding.authenticate("rcuprak","alpha"); > } catch (RemoteException e) { > e.printStackTrace(); //To change body of catch statement use > Options | File Templates. > } > When I run this I get a soap fault - something about target service being > null which I am not sure how to resolve. time to start debugging. I like to use tools like Xmlspy when starting off, just to avoid having to get the client side right first. you can also use Wsdl2java to create junit tests, download chapter 15 of my book http://manning.com/antbook to steal the code to do that