Java Classes and WS
I have to develop a B2B application ( a JSP web site). My website will display some products of external Suppliers. These suppliers allow to use their Web Services to get their product to display on my website.
Now I'm using Axis to connect to supplier's WS
The question is that :
Supplier A has a WS which use java classes with Axis 1.1
Supplier B has a WS which use java classes with Axis 1.2
How can I solve this problem.. that is.. I can't put in my WEB-INF dir, classes of axis 1.1 and axis 1.2. togheter..
Thanks for your help!!
Roberto.
[595 byte] By [
Afterbita] at [2007-11-26 20:03:46]

# 1
> Now I'm using Axis to connect to supplier's WS
>
good choice.
> The question is that :
> Supplier A has a WS which use java classes with Axis
> 1.1
> Supplier B has a WS which use java classes with Axis
> 1.2
>
should be no problem.
> How can I solve this problem.. that is.. I can't put
> in my WEB-INF dir, classes of axis 1.1 and axis 1.2.
> togheter..
>
you don't need either, you could use something completely different like .NET or Perl.
As long as it can send and receive the correct messages the server doesn't care one bit which you use.
If the server requires you to use a specific library, that's a very weird server indeed.
# 2
I tried to generate the java client classes with Axis..
So i get a strange behaviour..
I if use axis 1.1 the generated classes doen't compile.. whereas with axis 1.2 and above.. it compile good!
So i think to do this thing... I would like to create two web sites... a site with axis 1.1 and a site with axis 1.2 .. then i would like to create a special method to get information from site 2 to site 1 i.e a Vector of articles ogf site 2
Vector articlesOfsite2 = getArticleOfSite2();
and the display this vector in site 1...
Is ti possible? and if so.. how?
# 3
> I tried to generate the java client classes with
> Axis..
> So i get a strange behaviour..
> I if use axis 1.1 the generated classes doen't
> compile.. whereas with axis 1.2 and above.. it
> compile good!
>
1.1 is ancient. 1.2 slightly less ancient. 1.4 is the latest Axis 1 release, use that.
> So i think to do this thing... I would like to create
> two web sites... a site with axis 1.1 and a site with
> axis 1.2 .. then i would like to create a special
> method to get information from site 2 to site 1 i.e a
> Vector of articles ogf site 2
> Vector articlesOfsite2 = getArticleOfSite2();
> and the display this vector in site 1...
> Is ti possible? and if so.. how?
why should you? Have you even read what I posted?
# 4
Maybe i did not explain the problem very well..
My web site use JSP with Tomcat.
I use axis to generate java client class ..so i can connect to provider's webservice...
Provider A require that i generate java client class with axis 1.1 ..
Provider B require that i generate java client with axis 1.2... if i use axix 1.1 i get some errors!!!
So in my web application..exactly in WEB-INF/lib directory i have to put lib. of axis to work with the java client classe that i have genetated previously! ...but.. i can't put in WEB-INF/lib, lib. of axis1.1 and axis 1.2 togheter!!
Any solutions?