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

2008-10-14 Thread keith chapman
Thisshould
give you a clue. I think thats what your looking for.

Thanks,
Keith.

[1]
http://www.keith-chapman.org/2008/10/how-to-embed-axis2-into-existing-web.html

On Tue, Oct 14, 2008 at 6:21 AM, Tian Chi <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> Sorry previous message is still in wrong text format, this is it again.
>
> I'm a newbie on using Axis2. After reading through most of the documents on
> this site,
> I still couldn't find the answer I need. I'd really apreciate it if someone
> can help me on this.
>
> All Axis2 documents I read on this site are to build new web
> services/client using Axis2.
> Currently I have already a big web app  in use and I need to add a SOAP
> service to
> my web app using Axis2. Is that doable?  If yes, what are the steps to make
> that happen?
>
> Is it possible to copy axis2.war into my servlet container (Resin) (both
> 'axis2' and 'myWebapp' directories under webapps directory) , create a SOAP
> service in the axis2 app and then forward the request (by deinfing the
> 'ServiceClass' parameter in services.xml?) to my own web app to handle some
> complicated database processes? It seems to me it's not doable.  Please
> don't laugh at me if this question is too sily.
>
> If the previous approach is not possible. The only other apprach I can
> think of is to embed Axis2 in my
> own webapp. In that case, do I need to copy all the needed Axis2 jar files
> to my own web app in WEB-INF/lib directory? If so, what are the needed jar
> files for a SOAP service?
> Basically the SOAP service is receive data from my client, save it to
> database and respond to client with the results. There are many jar files in
> Axis2. I just hope to skip some unnecessary Axis2 jar files to avoid
> overhead since my own web app is already very big.
>
> Besides the Axis2 jar files, what else needs to be done to embed a SOAP
> service in my own web app?
>
> I'd really really appreciate it if someone gives me some guidance or shed
> some lights on this.
> Hope to hear from you soon.
>
> thank you very much,
>
> -tian
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


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

2008-10-13 Thread Tian Chi

Thank you very much for your quick response, Ricky.
I'll start building the war file you mentioned.

Can I ask you two more questions about how to creat a SOAP service using Axis2?

Basically my client will just send a XML file with data using the SOAP service 
I'll provide him (an URL). From the document, I think the service names will be 
defined in the services.xml and associate with a java class with all the 
functions (services) there. My question is how in my class program to get the 
XML file my client posted?

I saw some example, it just pass the parameters using '?'

http://my-service-URL/getPrice?book=1234

But using SOAP, my client's XML file will be posted to my service program, How 
to get the XML document sent from my client to my service?

If it's too much to explain, do you know any online exmaples I can look into?

My 2nd question is
How to define the 'SOAPAction' in the service I'll create?

thank you again, 

-tian 


--- On Tue, 10/14/08, Ricky Murphy <[EMAIL PROTECTED]> wrote:

> From: Ricky Murphy <[EMAIL PROTECTED]>
> Subject: RE: [Axis2]Help! How to create a SOAP service using Axis2 in my own 
> webapp?
> To: axis-user@ws.apache.org
> Date: Tuesday, October 14, 2008, 11:51 AM
> Right, there will be a lot of jars. Actually, your web
> application will end up like what makes axis2.war
> eventually. 
> you may remove all those admin related stuff from
> "your" app. Start with those made axis2.war, use
> all its directory structure and build your own app and
> "embed" axis2 inside.
> 
> HTH
> 
> -Ricky
> 
> 
> 
> > Date: Mon, 13 Oct 2008 17:38:14 -0700
> > From: [EMAIL PROTECTED]
> > Subject: [Axis2]Help! How to create a SOAP service
> using Axis2 in my own webapp?
> > To: axis-user@ws.apache.org
> > 
> > MIME-Version: 1.0
> > Content-Type: text/plain; charset=iso-8859-1
> > Content-Transfer-Encoding: quoted-printable
> > 
> > Hi all, 
> > 
> > Sorry previous message is still in wrong text format, this is it again.
> > 
> > I'm a newbie on using Axis2. After reading through most of the documents on 
> > this site,
> > I still couldn't find the answer I need. I'd really apreciate it if someone 
> > can help me on this.
> > 
> > All Axis2 documents I read on this site are to build new web 
> > services/client using Axis2.
> > Currently I have already a big web app  in use and I need to add a SOAP 
> > service to
> > my web app using Axis2. Is that doable?  If yes, what are the steps to > > 
> > make that happen?
> > 
> > Is it possible to copy axis2.war into my servlet container (Resin)(both 
> > 'axis2' and 'myWebapp' directories under webapps directory) , create > > a 
> > SOAP service in the axis2 app and then forward the request (by deinfing the 
> > 'ServiceClass' parameter in services.xml?) to my own web app > > to handle 
> > some complicated database processes? It seems to me it's not > > doable.  
> > Please don't laugh at me if this question is too sily. 
> > 
> > If the previous approach is not possible. The only other apprach I can > > 
> > think of is to embed Axis2 in my
> > own webapp. In that case, do I need to copy all the needed Axis2 jar files 
> > to my own web app in WEB-INF/lib directory? If so, what are the needed jar 
> > files for a SOAP service? 
> > Basically the SOAP service is receive data from my client, save it to > > 
> > database and respond to client with the results. There are many jar files 
> > in Axis2. I just hope to skip some unnecessary Axis2 jar files to avoid 
> > overhead since my own web app is already very big.
> > 
> > Besides the Axis2 jar files, what else needs to be done to embed a SOAP 
> > service in my own web app?
> > 
> > I'd really really appreciate it if someone gives me some guidance or shed 
> > some lights on this.
> > Hope to hear from you soon.
> > 
> > thank you very much,
> > 
> > -tian
> > 
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> _
> Want to do more with Windows Live? Learn “10 hidden
> secrets” from Jamie.
> http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2008-10-13 Thread Tian Chi
Hi all, 

Sorry previous message is still in wrong text format, this is it again.

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


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2008-10-13 Thread Ricky Murphy
Right, there will be a lot of jars. Actually, your web application will end up 
like what makes axis2.war eventually. 
you may remove all those admin related stuff from "your" app. Start with those 
made axis2.war, use all its directory structure and build your own app and 
"embed" axis2 inside.

HTH

-Ricky



> Date: Mon, 13 Oct 2008 17:38:14 -0700
> From: [EMAIL PROTECTED]
> Subject: [Axis2]Help! How to create a SOAP service using Axis2 in my own 
> webapp?
> To: axis-user@ws.apache.org
> 
> MIME-Version: 1.0
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: quoted-printable
> 
> Hi all,=0A=0A=0AJust sent this but in rich text format, so this is it again=
> . My apology.=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 nee=
> d. I'd really apreciate it=A0if someone can help me on this.=0A=0AAll Axis2=
>  documents I read=A0on this site=A0are to build new web services/client usi=
> ng Axis2.=0ACurrently I have already a=A0big=A0web app=A0 in use and I need=
>  to add a SOAP service to=0Amy web app using Axis2. Is that doable?=A0 If y=
> es, what are the steps to make that happen?=0A=0AIs it possible to=A0copy=
> =A0axis2.war into my servlet container (Resin) (both 'axis2' and 'myWebapp'=
>  directories under webapps directory)=A0, create a SOAP service in the=A0ax=
> is2 app and then=A0forward the request (by deinfing the 'ServiceClass'=A0pa=
> rameter in services.xml?)=A0 to my own web app to=A0handle some complicated=
>  database processes? It seems to me=A0it's not doable.=A0=A0Please don't la=
> ugh at me=A0if this question is too sily. =0A=0AIf the previous approach is=
>  not 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 =
> files to my=A0own web app =0Ain=A0WEB-INF/lib directory? If so, what are th=
> e needed jar files for a SOAP service? =0ABasically=A0the SOAP service is=
> =A0receive data from my client, save it=A0to database and respond to client=
>  with the results.=A0There are many jar files in Axis2.=A0I just hope=A0to=
> =A0skip=A0some=A0unnecessary=A0Axis2 jar files to avoid overhead since my=
> =A0own web app already=A0is very big.=0A=0ABesides the Axis2 jar files, wha=
> t else=A0needs to be done=A0to embed a SOAP service in my own web app?=0A=
> =0AI'd really really appreciate it if someone gives me some guidance or she=
> d some lights on this.=0AHope to hear from you soon.=0A=0Athank you very mu=
> ch,=0A=0A-tian=0A=0A=0A  
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

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

2008-10-13 Thread Tian Chi
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all,=0A=0A=0AJust sent this but in rich text format, so this is it again=
. My apology.=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 nee=
d. I'd really apreciate it=A0if someone can help me on this.=0A=0AAll Axis2=
 documents I read=A0on this site=A0are to build new web services/client usi=
ng Axis2.=0ACurrently I have already a=A0big=A0web app=A0 in use and I need=
 to add a SOAP service to=0Amy web app using Axis2. Is that doable?=A0 If y=
es, what are the steps to make that happen?=0A=0AIs it possible to=A0copy=
=A0axis2.war into my servlet container (Resin) (both 'axis2' and 'myWebapp'=
 directories under webapps directory)=A0, create a SOAP service in the=A0ax=
is2 app and then=A0forward the request (by deinfing the 'ServiceClass'=A0pa=
rameter in services.xml?)=A0 to my own web app to=A0handle some complicated=
 database processes? It seems to me=A0it's not doable.=A0=A0Please don't la=
ugh at me=A0if this question is too sily. =0A=0AIf the previous approach is=
 not 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 =
files to my=A0own web app =0Ain=A0WEB-INF/lib directory? If so, what are th=
e needed jar files for a SOAP service? =0ABasically=A0the SOAP service is=
=A0receive data from my client, save it=A0to database and respond to client=
 with the results.=A0There are many jar files in Axis2.=A0I just hope=A0to=
=A0skip=A0some=A0unnecessary=A0Axis2 jar files to avoid overhead since my=
=A0own web app already=A0is very big.=0A=0ABesides the Axis2 jar files, wha=
t else=A0needs to be done=A0to embed a SOAP service in my own web app?=0A=
=0AI'd really really appreciate it if someone gives me some guidance or she=
d some lights on this.=0AHope to hear from you soon.=0A=0Athank you very mu=
ch,=0A=0A-tian=0A=0A=0A  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2008-10-13 Thread Tian Chi
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

Hi all, 









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

  
--0-2066077201-1223944054=:94829--

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]