|
Re: Java Web Service Client [message #144995 is a reply to message #144968] |
Mon, 24 October 2005 17:29 |
Jeff Shirley Messages: 6 Registered: July 2009 |
Junior Member |
|
|
When you have WTP generate a web services client, it just generates a
proxy which can connect onto your service. So you can use the proxy to
call your webservice methods from whatever code you want. Just have it
generate the client, write your other code separately, and then link it up.
You can simply uncheck the "Test Web Service" box, and it won't generate
the JSP files, but leave the "Generate Proxy" box checked. Then you can
just instantiate the <your service name>Proxy class which gets generated
by WTP wherever you want to call the webservice method. Simply call the
method on the proxy, and it will handle the communication. You may need
to edit the EnrollerServiceLocator, etc files to suit your situation.
Hope that helps.
Jeff
Ben wrote:
> I have been working with Web Services for about 6 months now. I find
> that using Eclipse to generate the Web Service and Client's is
> fantastic. However, I notice that when I generate the client that it
> creates a JSP client (which works for my testing) but I need a java
> client to access the Web Services as well. I noticed that under the JSP
> files in the client are a number of java files as well. Here is my
> predicament, I want to create a stand alone java program using the
> visual editor and add a connection to the Web Service from there.
> (1) Would it be easier to generate a Web Service client from the WSDL
> first and then add the Visual parts to the program?
>
> (2) Create the visual project first and then add connections to the Web
> Service?
>
> (3) Is there a way of generating a Java Web Service client from the WSDL
> that isn't a JSP and can easily be incorporated into a Visual project?
>
> (4) If there is another combination or option that I haven't discussed,
> please let me know.
>
> Thanks,
> Ben
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03459 seconds