• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Non web Java client in RAD 6.0 to invoke uri

 
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Sam Gehouse
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic