Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access a remote SOAP using JAX-WS

 
Damodar Mukherjee
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...


 
Peer Reynders
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic