简体   繁体   中英

Where to get deployed service and generated wsdl using websphere

I am using WebSphere to publish my service as a web service using @WebService annotation in eclipse.

Details of the server :

Product name: WebSphere Application Server
Product Version: 17.0.0.2
Product edition: BASE_ILAN

While deploying the project on the server, the project started successfully and now I wanted to see the generated WSDL through admin console(as I do in Glassfish).But I am not finding any way to view the admin console or any directory which is having the generated WSDL(I am using mac os)

However, I can see(in eclipse) my service is deployed successfully, see attached image:

Thanks in advance.

As far as I know it's not available in the admin center however you can retrieve it from the service using a web browser.

Look in messages.log to find the context root of your webservices app, you'll see something like: Web application available (default_host): http://localhost:29080/hello_jaxws/

Then to find the service you might need to know a bit about the service. If the name of the service isn't in an @WebService annotation, and the class isn't remapped in web.xml, then it's the name of the class + "Service". So in my case the name of the class is HelloService, so the url to my service is http://localhost:29080/hello_jaxws/HelloServiceService

A browser should return Hello! This is a CXF Web Service Hello! This is a CXF Web Service from that url.

Finally, add ?wsdl to it to get the wsdl http://localhost:29080/hello_jaxws/HelloServiceService?wsdl

You can find it also when you navigate to {your service} -> Service providers -> {your service} -> WSDL document (from additional properties).

Look there for "soap:address" element, and copy the "location" value/address to your browser with anding "?wsdl" to the end of it.

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