Apache Axis2 - create a client to access a SOAP service

C

cdvr

Hi,
I am new to SOAP and Axis2, but here is what I am trying to do.
There is a web service which has a URL that I can view:
www.somesite.com/BlahService.asmx ....this service has an operation,
"getNames". I am trying to figure out how to create a client which
accesses this web service. From what I googled I think Axis2 should
be what I need but I am not sure how to get started? Any tips on how
to access an already existing service?

thanks
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

cdvr said:
Hi,
I am new to SOAP and Axis2, but here is what I am trying to do.
There is a web service which has a URL that I can view:
www.somesite.com/BlahService.asmx ....this service has an operation,
"getNames". I am trying to figure out how to create a client which
accesses this web service. From what I googled I think Axis2 should
be what I need but I am not sure how to get started? Any tips on how
to access an already existing service?

You can use axis2 to generate stubs.

Here are an ant fragment to do that:

<taskdef name="codegen"
classname="org.apache.axis2.tool.ant.AntCodegenTask"
classpathref="axis2.classpath"/>
...
<target name="stubgen">
<codegen wsdlfilename="${wsdl.url}" output="${gensrc.dir}"
packagename="foobar.stub"/>
...
</target>

Arne
 
D

DougJrs

Hi,
I am new to SOAP and Axis2, but here is what I am trying to do.
There is a web service which has a URL that I can view:www.somesite.com/BlahService.asmx....this service has an operation,
"getNames". I am trying to figure out how to create a client which
accesses this web service. From what I googled I think Axis2 should
be what I need but I am not sure how to get started? Any tips on how
to access an already existing service?

thanks


Here are a couple of links to pretty good examples:
http://www.cafeconleche.org/books/xmljava/chapters/ch03s05.html
http://xmlgateway.its.utexas.edu/docs/java_ex_soap.html
Google Page, lots of info and examples:
http://64.233.167.104/search?q=cach...tml+java+soap+client&hl=en&ct=clnk&cd=6&gl=us
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top