• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

After creating WSDL-to-JAVA what i need to do in RAD IDE?

 
Ranch Hand
Posts: 41
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone, I am pretty new to Web Services.

IDE: RAD
application server: WAS 6.0
Web sphere runtime environment for web services.

Here my assignment is to generate WSDL to JAVA (Top-down approach).Where i have given a WSDL. And after that i have created the Client stubs using RAD Environment ( like right clicking the wsdl and opting "generate the java Bean Skeleton"). I dont know what i have to do after this. My team lead said that i can take example with the already done wsdl where others have generated client java from the given wsdl's.

these are other related questions.
1. how to call the web service?
2. how to test this web service?

I think these are basic questions but i have no good idea related to webservices.

Thanks for the replies in Advance.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have done this using JDeveloper , generate the java from WSDL.
When you are generating a java from WSDL there will be wsdl port and method which are called operation.
There will be some documentation on all this
Here are some points whcih might help you to start.
1) what is the webservice functionality?
2) What are the inputs to the webservice and what is the output.
3) You can test Webservice as a regualr Java applciation.

In JDeveloper there is an option called "TestHArness" which are usually sued to test the webservice.
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
RAD/WebSphere will generate a proxy class. For a web service named HelloWorld, the proxy class will be something like HelloWorldProxy. You need to write a test client that uses this proxy class.

public class WSTest {
public static void main (String [] args){
HelloWorldProxy proxy = new HelloWorldProxy ();
// invoke web service operation sayHello()
System.out.println (proxy.sayHello());
}
}

For a J2EE client, you can obtain a reference to a Service object using JNDI lookup and later call getPort method on this object to get the port, and then you can call the web service operation on the port. I will let you do some reading on that. BTW, if you look at the generated code, you will see all these classes.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WebSphere Version 6 Web Services Handbook Development and Deployment
 
Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

thanks for the help. those docs are really helpful.
I finally got the answer to my question.

What i actually did is first i copied the WSDL to my workspace, then right clicked on it " Generate java bean skeleton". that is the place what i did mistake. I have to " Generate Client" instead.

Now after making changes i got the proxy class, mapping xml file, other generator classes(helper, ser, deser), Service locator class, soap binding stub, service information class, and even updated web.xml file

i could manage with the test class finally.

thanks very much for the response.
 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic