Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

How to access a remote SOAP using JAX-WS

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I call a remote webservice whose url address is given...
I have the following code.. Bur how can I sure that the service provider hav the class CalculatorService in the server???
The code is given below... Thank you...


 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Developing Web Services Using JAX-WS

Originally posted by Damodar Mukherjee:
Bur how can I sure that the service provider hav the class CalculatorService in the server???



You can't be sure of that. com.techtip.jaxws.sample.CalculatorService is your own client-side class that is generated by JAX-WS wsimport tool based on the WSDL.

For all the client knows the service is written in Cobol which has no idea of "classes". However the service "promises" to follow the (interface) contract as specified in the WSDL document. In that contract it probably publishes the service under the universal name of {http://sample.jaxws.techtip.com/}CalculatorService



So all the assurances you need are in the contract which is published at http://localhost:8080/jaxws-webservice/CalculatorService?WSDL

See also Confusion in writing web service client + jax-ws
[ November 19, 2008: Message edited by: Peer Reynders ]
 
Damodar Mukherjee
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you, This post cleared my concept
 
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic