• 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

Auto generation code

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I would like to create a client that can parse a WSDL file and then call dynamically the remote methods.
Basically, the user click on a list where all the available methods are shown.
When he click on one, some input boxes appear depending of the number of arguments required by the selected method.
The user give the required values, press submit and the result is shown.
The important point is, the list is automatically refreshed during client code compilation.
When some methods are added to the WSDL file, the user don't have to manually add the method name and parameters to the list, he just compile the client again.
I read the Java Web Service Tutorial Chapter 12: Building Web Services With JAX-RPC
I thougth Dynamic proxy or Dynamic invocation interface (DII) could do this.
But i realized that when you write the client code you do have to manualy write the name of the method you want to call.
As in the Dynamic proxy HelloClient example:
System.out.println(myProxy.sayHello("Buzz"));
As in the Dynamic invocation interface (DII) HelloClient example:
call.setOperationName(
new QName(BODY_NAMESPACE_VALUE,"sayHello"));
call.addParameter("String_1", QNAME_TYPE_STRING,
ParameterMode.IN);
String[] params = { "Murph!" };
Is there any way to retrieve automatically a list containing all the methods names and arguments from the WSDL file?
Or do i have to parse myself the WSDL file?
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yann!.. Welcome to Javaranch.
How abt getting some idea from the projects likes WSIF,WSDLJ etc.,.
 
Yann Emeraud
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the anwser, i m going to look in
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic