Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
topsyturvy
Post subject: JAX-WS tutorial -> Web application based WS Client  PostPosted: Nov 06, 2009 - 04:14 PM



Joined: Nov 06, 2009
Posts: 5

Hello All,

I found the JAX-WS (on websphere) tutorial very interesting. As a newbie on this topic I have a question, I would appreciate if anyone can guide me in the right direction.

Specifically, the WS client developed in the tutorial is a standalone java application. I would like my WS client to run with a servlet front end (in websphere). I know how to develop servlets for WebSphere, but I don't see how I can give them a WS client "back-end".

Thank you in advance,
AJ.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: JAX-WS tutorial -> Web application based WS Client  PostPosted: Nov 16, 2009 - 07:05 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

AJ,

The "client" that MyEclipse can generate you is an API that has the necessary calls to the remote service -- handling the marshalling of data when necessary.

Our tutorial develops a simple Java class like you said, but you could just as easily ship that generated code along side a servlet and have the servlet use the generated client API to communicate with the service.

You can literally use that code anyhere. As an example, take the example we have, write a servlet, and just copy-paste the code into the servlet doPost method (make sure the JARs and classes get packaged with it) and deploy it to websphere, you should see it work just like the standalone class.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits