Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Webservices : Writing a client  RSS feed

 
Lalitha Gottumukkula
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
 
Ugender Rekulampally
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
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!