aspose 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 2906
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 ]

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Genereic web service client across container
 
Similar Threads
WSDL File
setting the endpoint url
Dynamic Proxy client to access web service from weblogic
Apache SOAP Client for .NET Web Service
General Doubts in WebServices after Fibonacci Example