How to access the WSDL URL of a OSB proxy service in web browser

你。 提交于 2019-11-28 04:44:49

问题


Does anybody know how to access the WSDL URL of a Oracle Service Bus?

For example, in tomcat, axis2 if a service is deployed I can access the WSDL of it like:

http://localhost:8080/services/foo?wsdl

How to achieve the same in OSB?

P.S.: I have installed OSB in Weblogic.


回答1:


You access it the same way. To verify the path to your wsdl, login to the OSB console:

http://localhost:7001/sbconsole

Click Resource Browser on the left and you should see all of the available proxies you have deployed and their paths. If you click on one of the proxies, you will see your Endpoint URI:

Endpoint URI    /service/test/YourService

If you add ?WSDL onto the end of that, you should be able to access your WSDL like:

http://localhost:7001/service/test/YourService?WSDL

Assuming your managed server is running on your localhost with that port.




回答2:


Quoting from the OSB Documentaton:

There are three ways to access an effective WSDL:

  • In a Web browser, enter the URL for an HTTP-based proxy service, appended with ?WSDL. This works only for HTTP-transport-based services for which Oracle Service Bus can generate effective WSDLs.)

  • In a Web browser, enter the fixed HTTP URL, for example:

     [http://host:port/sbresource?PROXY/project_path/proxy_service_name]
    

    or

     [http://host:port/sbresource?BIZ/project_path/business_service_name]
    

    This works for all services for which Oracle Service Bus can generate effective WSDLs.

  • Export the WSDL from the console



来源:https://stackoverflow.com/questions/16649819/how-to-access-the-wsdl-url-of-a-osb-proxy-service-in-web-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!