• 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

wsdl to html form

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,
I need to create an html form starting from wsdl to sumbit web service requests. Since it does not seem to be a simple task to achieve I am looking for a library (Java) that might help me to write the code.

Do you have any suggestions ?

Thanks in advance.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Does the WS use SOAP, or is it more of a REST-style service? If the former, you'll need to integrate a JavaScript library that generates SOAP and then submits it using XMLHttpRequest. See here and here for introductions on how to do this.

If the latter, submitting the form using GET might be sufficient (although it's rare for REST-style WS to be described using WSDL, so this is likely not feasible).
[ January 21, 2008: Message edited by: Ulf Dittmer ]
 
Giuseppe Fiameni
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:


Does the WS use SOAP, or is it more of a REST-style service? If the former, you'll need to integrate a JavaScript library that generates SOAP and then submits it using XMLHttpRequest. See here and here for introductions on how to do this.




Ulf Dittmer, thanks for you replay.

My problem is quite different, maybe I did not explain it well enough to be understandable.

Actually, I need a way to generate HTML interface that matches web services request based on XML schema. The request submission is made by server side code. The user fills out the form and posts data, no actions happen on client side.

thanks,
Giuseppe
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see. Most web service toolkits (like Axis or JAX-WS) include a tool that generates Java client code from a WSDL. It might be called wsdl2java or some such; check the documentation of the toolkit you're using.

Once you have the code to access the WS, you can examine which parameters it needs, and construct an HTML form that submits those to a servlet. That in turn can use the previously generated client code to access the WS.

I'm not aware of a tool that generates HTML forms directly from a WSDL.
[ January 21, 2008: Message edited by: Ulf Dittmer ]
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are simply accessing the one SOAP web service then Ulf's suggestion is the way to go

However as you haven't elaborated what problem you are trying to solve, it should be pointed out that SoapUI, Stylus Studio's: Web Service Call Composer and Altova XMLSpy offer a graphical user interface with "that" functionality as a web service testing tool.

Visual Studio with ASP.NET web services is the only tool that I know of that offers browser pages for web services tests - which doesn't help in your particular case.

It is also possible (if necessary) to call SOAP web services directly from JavaScript.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try Googling WSDL form. First two hits are good.
http://www.extreme.indiana.edu/xgws/xydra/
does rest.
www.soapclient.com/soaptest.html
does soap. it is a web service but I think if you look around you can source.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic