faisal shaik
faisal shaik

Reputation: 160

What is the Use of WSDL in WSO2ESB

I have implemented lot of proxy services.So those are working fine while creating of custom proxy we have option call WSDL.What is the use of that option i have tried it but its not taking my value .its accepting only valid WSDL's only .i tried to customize like this

http://192.168.1.222:8280/services/Login/username=?&passwordname=?

but its not accepting giving error like NOt a proper WSDl after that tried with echo service Endpoint and its accepting this one

http://192.168.1.221:8282/services/echo?wsdl1

i am really wondering about this what is the use of this Publish WSDL Option.Is it useful for accepting the input from client or else something and i went with docs i couldn't find proper explanation and we have SOAPUI for testing as TRYTHIS But it has only one mediation Operation we can't able pass any parameters in to that like We have in WSO2dss try this how we will get that please explain to me THanks faisal

Upvotes: 0

Views: 277

Answers (2)

Isuru Perera
Isuru Perera

Reputation: 1905

WSDL is a fundamental principle in the context of Web Services. WSDL describes the Web Services and how you should access those.

With WSO2 ESB, when you create a proxy service, you have the option of publishing the WSDL to describe the web service you are trying to expose via the proxy.

If you do not specify a WSDL for the service, ESB will not know any operations you are trying to expose. This is why you only see a mediate operation. soapUI generates the request for an operation by looking at the XML schema for the request.

ESB will just mediate the requests to back-end service.

So, in summary, if you need your clients to know how your web service operations are defined, you should choose the option to publish a WSDL.

Upvotes: 3

Isuru Gunawardana
Isuru Gunawardana

Reputation: 2887

Publishing WSDL It's about what are the services exposed using the proxy service. You can create a proxy service with or without publishing wsdl. If you didn't provide, you can not see any operations in 'try this service' options (which can be seen after the proxy is created). But when you provide this publishing wsdl you will be able to see what are the operations (exposed over the wsdl) in 'try this service' option. Then you only have to edit the value of the requested fields and send the request which will hit the inSequence.

If you are using SOAPUI use the wsdl corresponding to your services (which can be seen in services list) to create the sopa UI project, then in your soapUI project it will show the operations you can perform.

PS: you can use axis2Server which comes with wso2esb for your testing (its mentioned here). Start the server and provide the wsdl url

http://localhost:9000/services/SimpleStockQuoteService?wsdl

as publishing wsdl.

Upvotes: 0

Related Questions