Try It

Try It is a tool available with the WSO2 Carbon that allows you to try out your own Web Services Definition Language (WSDL) or any publicly available WSDL of the document/literal style.

Try It provides you with a mechanism to test your WSDL by creating end points on-the-fly. It helps to test a WSDL before actually coding it, without the need for a third party WSDL validator tool.

Using Try It

  1. In the navigator, under Tools, click Try It. The Enter WSDL 1.1 or 2.0 Document Location page appears.
  2. In the Enter URL field, type or paste the location of the WSDL. It may be a local file system path, or a web URL.
  3. Click Try It.

    Note: If your browser has Pop up-Blocking enabled, you will receive a message saying a pop up was blocked. Allow pop ups for the current domain and try again. The available operations in the given WSDL appears. For operations that take arguments, you will see primitive argument type fields. The values specified in these fields will be passed to the operations. For no-argument operations, you will only see the button that has the same name as the operation.

  4. Two textareas can be seen, each for request and response. You can switch the layout using either Horizontal or Vertical buttons.
  5. Click the Send button to invoke that service operation. The return value immediately appears in the response textarea.

Figure 1: Try the Service

Choosing Endpoints

Use this function to change the endpoint for the service, if there are multiple endpoints. You can even specify a customized endpoint.

  1. Click Using Enpoint - ..... (It can be seen above the Request-Response textareas)
  2. Select the endpoint you want, and specify the address of the new endpoint.

Choose Endpoints

Figure 2: Selecting Endpoints

Prioritize Operations

Use the small yellow icon with the plus(+) sign, to prioritize operations. Then they will be added to the Priority Operations section.

This will be useful when you have a lot of operations in the tryit page. Then you can add operations you want into this section and switch among them easily.

Prioritize Operations

Figure 3: Prioritize Operations