| Author |
Non web Java client in RAD 6.0 to invoke uri
|
Sam Gehouse
Ranch Hand
Joined: Jul 21, 2003
Posts: 281
|
|
I am given a uri (not wsdl). I would like to create a non-web based Java client using RAD 6.0. Any help will be appreciated.
|
 |
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
|
|
Is this a problem that is different from your earlier one? Non web client for web service If it isn't then you don't have enough information unless the URL is the address of a WSDL. If it is simply the address of the endpoint then you still need the request and response message formats, otherwise you don't know what to send or what to expect in return. [ February 26, 2008: Message edited by: Peer Reynders ]
|
"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
|
 |
Sam Gehouse
Ranch Hand
Joined: Jul 21, 2003
Posts: 281
|
|
Yes, url is address of wsdl. Any help in pointing out how to write non web based Java client will be beneficial.
|
 |
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
|
|
What is the problem with Page 289: Creating Web service clients: Stand-alone Java client from WebSphere Version 6 Web Services Handbook Development and Deployment that I pointed out in your other thread? The "Web Service Client wizard" should allow you to specify a URI under: "Web Service Discovery Dialog: Web Services from a known URL" There may be one under the Java Perspective.
1. Switch to the Java perspective (Window > Open Perspective > Java). 2. Click File > New > Other. Select Web Services in order to display the various Web service wizards. Select the Web Service Client wizard. Click Next.
Otherwise there is a WSDL2Client command line tool in <RAD60_HOME>/bin Its use is described on page 399 of WebSphere Version 5.1 Application Developer 5.1.1 Web Services Handbook. WSDL2Client Manual Page It will take a URI that is remote or on the file system. See also Importing the WSDL2Client generated client into a Java project [ February 27, 2008: Message edited by: Peer Reynders ]
|
 |
Sam Gehouse
Ranch Hand
Joined: Jul 21, 2003
Posts: 281
|
|
Yes, I can accomplish the above within a Java project by writing a stand-alone client. However, I am required to use a url (address of wsdl) of a .Net service. I will not have access to the wsdl itself. Does RAD 6.0 allow you to create webservice out of an external url? What are my choices? Do I have to write SOAP's org.apache.soap.rpc.Call etc. and hand-code the client? Any tips on that will be useful.
|
 |
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
|
|
Originally posted by Sam Gehouse: Does RAD 6.0 allow you to create webservice out of an external url?
As I stated in the last post, an URL can be used both in the Web Service Client Wizard ("Web Services from a known URL") and WSDL2Client. Furthermore you can simply open the WSDL URL in a browser and then use "Save As" to save the WSDL file on your local file system.
Do I have to write SOAP's org.apache.soap.rpc.Call etc. and hand-code the client?
org.apache.soap.rpc.Call would require Apache 1.x. In J2EE javax.xml.rpc.Call is used - there is probably no need to get into dynamic web service invocation. Use the tools to generate the static stubs instead. [ February 27, 2008: Message edited by: Peer Reynders ]
|
 |
 |
|
|
subject: Non web Java client in RAD 6.0 to invoke uri
|
|
|