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...
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.
User-Agent: Axis/1.1RC1
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 498
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:authenticate soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://kodak.com/sis/1d">
<in0 xsi:type="xsd:string">rcuprak</in0>
<in1 xsi:type="xsd:string">alpha</in1>
</ns1:authenticate>
</soapenv:Body>
</soapenv:Envelope>
Ryan Cuprak
[EMAIL PROTECTED]
Office: (203)-786-5682
Cell: (203)-376-8789
| "Apostolopoulos Paris" <[EMAIL PROTECTED]>
02/19/2003 01:24 PM
|
To: <[EMAIL PROTECTED]> cc: Subject: RE: Determining if a service is deployed (wrapped in my own webapp) |
Assuming that you use tomcat on localhost on port 8080, if you go at
http://localhost:8080/axis/index.html
and then press the
View the list ot deploye Web services ,http://localhost:8080/axis/index.html
you will be able to see the deployed services and the equivalent WSDL of them!
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 6:21 PM
To: [EMAIL PROTECTED]
Subject: Determining if a service is deployed (wrapped in my own webapp)
Hello,
I am trying to determine if my webservice is being 'deployed'. I have wrapped Axis into my own webapp by:
- copying the jars into WEB-INF/lib
- copying the contents of Axis Webapp's web.xml into my web.xml
Then I wrote a service (now just one java class) which gets compiled, jared, and put in WEB-INF/lib.
To the WEB-INF folder I added 'server-config.wsdd' with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="GMP" provider="java:RPC">
<parameter name="className" value="com.kodak.sis.gmp.webapp.services.GMPService" />
<parameter name="allowedMethods" value="*" />
</service>
</deployment>
How do I know if my service has been deployed?
Ryan Cuprak
[EMAIL PROTECTED]
Office: (203)-786-5682
Cell: (203)-376-8789
