> -----Original Message-----
> From: Vidula Pant [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 1:33 PM
> To: [EMAIL PROTECTED]
> Subject: Deploying Services
>
>
> I have succesfully set up Tomcat and Axis, and all the
> examples work as
> well.
> I want to add my own service, and I am following the steps in
> the User's
> Guide to do this.
> Step 1 says write a interface. How come none of the examples
> show any file
> with an interface?
I don't know, but I haven't been able to run Java2WSDL on a class, only on an interface. The user's guide says you can use it on either. Also, I seem to have to state that each method in the interface can through java.rmi.RemoteException.
> I understand that once I have used the WSDL2Java tool I have
> to add code
> in the <MyServiceName>SoapBindingImpl.java file and compile
> all the code.
> After that I use deploy my service which works fine. But how do I
> invoke it?
You should use the generated ServiceLocator class, Service interface and port type interface. Here's an example from some of my code.
CarQuoteService service = new CarQuoteServiceLocator();
CarQuote port = service.getCarQuote();
Car car = new Car(year, make, model, color);
int quote = port.getQuote(car);
You can also pass a URL to getCarQuote. This is useful when using tcpmon.
***************************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
***************************************************************************************
