This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic