简体   繁体   中英

Is it using RMI for invoking the web service

I am new to web services and studing Jax-WS web services these days. I created a little web service and host it in tomcat server and created a java web service client for accessing the service as well . But I am having a little confusion in the web service client, because in the client we generate a stub for accessing the service.

Here is it using RMI for invoking the web service???

According to my knowledge tomcat is a web container and it is not supporting for RMI.

I searched this through the internet and I was unable to find the clear answer. Can anybody please simply explain me how does it happen.

If the tomcat is not supporting to RMI how does it invoke the web service. I have this confusion since it uses the stub that we generated using wsimport command.

thanks a lot

Here is it using RMI for invoking the web service???

Http. The web service client would create a http request (just like how a browser does when you request a url), convert your request object to an xml payload and invoke your service end point. Different vendors of JAX-WS may use different implementations, but it is usually some form of HttpURLConnection

HttpClient is a popular package to create Http connections from a java program.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM