• 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

How to access a remote SOAP using JAX-WS

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Thank you, This post cleared my concept
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic