This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Webservices : Writing a client

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am not aware of Java Web Services. I have to create a client to call a webservice.

I was searching for the code in google but failed to understand what files/components/jars need to be there at the client side to call a web service.

Can anyone let me know how to create a client which makes a call to an external Web Service?

Thanks,
Lalitha
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Lalita,

Are you planning to use Axis as SOAP engine? if so here is one of my test clients ..





Hope that helps.

Thanks,
Ugender
 
Lalitha Gottumukkula
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the code Ugender.
I am not sure what should be used as I am completely unaware of the web services.

Can you clarify the following :
1. Are there are any config files for the web services that should be present at the client side?
2. Should we need to have the Web Services download to run the client? What jars needs to be present at the client side?
3. How many types of clients can be written and what are their pros & cons?? (I think it is 3 types..)

Thanks,
Lalitha
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a SAAJ client is OK, have a look at this one. It's just about the simplest possible WS client in Java, and has the benefit of not using any specific SOAP library, just the Java APIs.
 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic