Thanks,
I tried http://149.98.242.166:8080/GMPServer/services/GMP?WSDL
but recieved a http 404 code. When I try to pass parameters to it:
http://149.98.242.166:8080/GMPServer/services/GMP?method=authenticate¶m=
rcuprak¶m=alpha
I get the same fault in the webbrowser that I am seeing when I try to run my client. Checking though the logs from tomcat there is no reference to the 404 or any exceptions being thrown.
Do I have to provide a wsdl file for my service (place it in WEB-INF)?
Ryan Cuprak
[EMAIL PROTECTED]
Office: (203)-786-5682
Cell: (203)-376-8789
| "Steve Loughran" <[EMAIL PROTECTED]>
02/19/2003 02:55 PM
|
To: <[EMAIL PROTECTED]> cc: Subject: Re: Determining if a service is deployed (wrapped in my own webapp) |
----- 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
