Can someone give me a couple of lines of JSP that mimic what I've done here in PHP?
Thanks for any help.
You better think of layering architecture: JSP - view, Servlet - controller (for navigation), POJO - model (for business logic). In your case, you consume web service in POJO.
This blog should help you: http://weblogs.java.net/blog/vivekp/archive/2006/12/webservices_in.html
Ryan Smith wrote:I haven't written a line of JSP, but I would like to test out, in various languages, a web service I just created.
Using a JSP just complicates matters - for testing purposes a simple command line program should do the trick. Also the Java code needed depends on the WSDL-to-Code generation tool that is being used.
ankur rathi wrote:This blog should help you: http://weblogs.java.net/blog/vivekp/archive/2006/12/webservices_in.html
JAX-WS will only work if the web service provider uses the rpc/literal or document/literal messaging mode.
Which style of WSDL should I use?
Other JAX-WS examples (which include client generation):
If the web service provider uses the rpc/encoded messaging mode then you have to use something like Axis 1.x.
Creating Web Services with Apache Axis: 3. WSDL2Java: Generate the Server-side Wrapper Code and Stubs For Easy Client Access