File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Genereic web service client across container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Genereic web service client across container" Watch "Genereic web service client across container" New topic
Author

Genereic web service client across container

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
All,
In our project we are running our application in two container.
Tomcat
Weblogic.

We are accessing the Web service given by client, by generating the client stub codes from WSDL.
To create the client stub code, we used WSDL2Java utility along with Apache Axis.

For Weblogic it seems to use the above generated code we need the Apache axis related jar file inside weblogic.
which we don't want to do it.

Is it possible to have a generic web service client which we can use across container instead of deploying the application along with dependent jar file.

If i was wrong please clarify it.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Parameswaran Thangavel:
Is it possible to have a generic web service client which we can use across container instead of deploying the application along with dependent jar file.


Not with most WSDL-to-Java code generators as they will generate code that will often reference components from their specific platform for the purpose of reuse. Portability of the generated artifacts is rarely an objective. Some teams have used Axis 1.x successfully on WebLogic 8.1 (with difficulty).

For a small and simple WSDL you could possibly write a client from scratch with SAAJ which should run on different SAAJ implementations.

"Java Web Services in a Nutshell" Sample: Chapter 3 SAAJ (PDF)
[ May 07, 2008: Message edited by: Peer Reynders ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Genereic web service client across container