This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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.
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 ]
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.
Joined: Mar 22, 2005
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 ]