Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

How to write Client in Apache Axis?

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
I managed to install Axis on Tomcat4.0 and its workign ok. But i just need to write a client to connect to the Service.do i still need tomcat for that?im confused right now. Can u give me some guidelines as how do i write Client in Axis? I need to connect to an existing WebService which is supposed to be in axis.
any examples or guidelines would be appreciated.
thanks so much,
Sachin
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most of the webservice will have service descriptor file called WSDL. Apache Axis has a tool called WSDL2Java which can generate all the necessary client stubs for you to access and get the service results.

if your client is java application, then you don't need tomcat for just consuming the webservice
 
Sachin Dere
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Balaji,
My client is a java app so no probs.I did as u said and generated the necessary Clients etc. but which is the main Class?
Which file do i have to invoke? do i need to create a Main Class and then call one of these files?
im really confused here so pls help me as im running out of time and they have just given me 2 days to finish it.i never had any knowledge of SOAP before.
Can u post some sample code to invoke these files?any info would be highly appreciated.
thanks,
Sachin
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic