It's not a secret anymore!*
The moose likes Web Services and the fly likes How to access a remote SOAP using JAX-WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to access a remote SOAP using JAX-WS" Watch "How to access a remote SOAP using JAX-WS" New topic
Author

How to access a remote SOAP using JAX-WS

Damodar Mukherjee
Ranch Hand

Joined: Mar 20, 2007
Posts: 135
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...




SCJP 1.5, SCWCD 1.4, Next... SCBCD5
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
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

Joined: Mar 20, 2007
Posts: 135
Thank you, This post cleared my concept
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to access a remote SOAP using JAX-WS
 
Similar Threads
JNDI Name in EJB3
Client problem for my JAX-WS web service
Help me in writing client foe this JAX ws Web service
problem with stateful service
RMI Newbie