Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Apache Axis2 - create a client to access a SOAP service

Thread view: 
cdvr - 10 Apr 2007 01:37 GMT
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
Arne Vajhøj - 10 Apr 2007 02:01 GMT
> Hi,
>     I am new to SOAP and Axis2, but here is what I am trying to do.
[quoted text clipped - 4 lines]
> 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
DougJrs - 10 Apr 2007 23:56 GMT
> Hi,
>     I am new to SOAP and Axis2, but here is what I am trying to do.
[quoted text clipped - 5 lines]
>
> 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=cache:PLiuHqk_vhgJ:www.oreilly.com/catalog/javaxm
l2/chapter/ch12.html+java+soap+client&hl=en&ct=clnk&cd=6&gl=us



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.