You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Tian Chi <ch...@yahoo.com> on 2008/10/14 02:27:34 UTC

[Axis2]Help! How to create a SOAP service using Axis2 in my own webapp?

MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-2066077201-1223944054=:94829"

--0-2066077201-1223944054=:94829
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all, =0A=0A=0AI'm a newbie on using Axis2. After reading through most of=
=A0the documents on this site,=0AI=A0still couldn't find the answer I need.=
 I'd really apreciate it=A0if someone can help me on this.=0A=0AAll Axis2 d=
ocuments I read=A0on this site=A0are to build new web services/client using=
 Axis2.=0ACurrently I already have a=A0big=A0web app=A0 in use and I need t=
o add a SOAP service to=0Amy web app using Axis2. Is that doable?=A0 If yes=
, what are the steps to make that happen?=0A=0AIs it possible to=A0copy=A0a=
xis2.war into my servlet container (Resin)=A0(both 'axis2' and 'myWebapp' d=
irectories under webapps directory)=A0, create a SOAP service in the=A0axis=
2 app and then=A0forward the request (by deinfing the 'ServiceClass'=A0para=
meter in services.xml?)=A0to my own web app to=A0handle some complicated da=
tabase processes? It seems to me=A0it's not doable.=A0=A0Please don't laugh=
 at me=A0if this question is too sily. =0A=0AIf the previous approach is no=
t possible. The only other apprach I can think of is to embed Axis2=A0in my=
=0Aown webapp. In that case, do I need to copy all the needed Axis2 jar fil=
es to my=A0own web app in=A0WEB-INF/lib directory? If so, what are the need=
ed jar files for a SOAP service? =0ABasically=A0the SOAP service is receive=
 data from my client, save it=A0to database and respond to client with the =
result. There are many jar files in Axis2.=A0I just hope=A0to=A0skip=A0some=
=A0unnecessary=A0Axis2 jar files to avoid overhead since my=A0own web app i=
s already=A0very big.=0A=0ABesides the Axis2 jar files, what else=A0needs t=
o be done=A0to embed a SOAP service in my own web app?=0A=0AI'd really real=
ly appreciate it if someone gives me some guidance or shed some lights on t=
his.=0AHope to hear from you soon.=0A=0Athank you very much,=0A=0A-tian=0A=
=0A=0A      
--0-2066077201-1223944054=:94829
Content-Type: text/html; charset=us-ascii

<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi all, </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>&nbsp;</DIV>
<DIV>I'm a newbie on using Axis2. After reading through most of&nbsp;the documents on this site,</DIV>
<DIV>I&nbsp;still couldn't find the answer I need. I'd really apreciate it&nbsp;if someone can help me on this.</DIV>
<DIV>&nbsp;</DIV>
<DIV>All Axis2 documents I read&nbsp;on this site&nbsp;are to build new web services/client using Axis2.</DIV>
<DIV>Currently I already have a&nbsp;big&nbsp;web app&nbsp; in use and I need to add a SOAP service to</DIV>
<DIV>my web app using Axis2. Is that doable?&nbsp; If yes, what are the steps to make that happen?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Is it possible to&nbsp;copy&nbsp;axis2.war into my servlet container (Resin)&nbsp;(both 'axis2' and 'myWebapp' directories under webapps directory)&nbsp;, create a SOAP service in the&nbsp;axis2 app and then&nbsp;forward the request (by deinfing the 'ServiceClass'&nbsp;parameter in services.xml?)&nbsp;to my own web app to&nbsp;handle some complicated database processes? It seems to me&nbsp;it's not doable.&nbsp;&nbsp;Please don't laugh at me&nbsp;if this question is too sily. </DIV>
<DIV>&nbsp;</DIV>
<DIV>If the previous approach is not possible. The only other apprach I can think of is to embed Axis2&nbsp;in my</DIV>
<DIV>own webapp. In that case, do I need to copy all the needed Axis2 jar files to my&nbsp;own web app in&nbsp;WEB-INF/lib directory? If so, what are the needed jar files for a SOAP service? </DIV>
<DIV>Basically&nbsp;the SOAP service is receive data from my client, save it&nbsp;to database and respond to client with the result. There are many jar files in Axis2.&nbsp;I just hope&nbsp;to&nbsp;skip&nbsp;some&nbsp;unnecessary&nbsp;Axis2 jar files to avoid overhead since my&nbsp;own web app is already&nbsp;very big.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Besides the Axis2 jar files, what else&nbsp;needs to be done&nbsp;to embed a SOAP service in my own web app?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'd really really appreciate it if someone gives me some guidance or shed some lights on this.</DIV>
<DIV>Hope to hear from you soon.</DIV>
<DIV>&nbsp;</DIV>
<DIV>thank you very much,</DIV>
<DIV>&nbsp;</DIV>
<DIV>-tian</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></DIV><BR></DIV></DIV></DIV><BR></DIV></DIV></DIV><BR></DIV></DIV></div><br>

      </body></html>
--0-2066077201-1223944054=:94829--

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org