[Download ] | [Documentation Home ] | [Release Note ]

Try It - Invoke a Remote Web Service

The aim of this document is to explain briefly how the Try It tool works.

Content

Introduction

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

Usage

Using Try It is quite straightforward. In fact, as with the other tools provided on the WSO2 Web Services Application Server front page, you don't even need to sign in.

Click on Try It and you will be taken to the following screen.

Figure:Try It Screen 1

Here, in the provided field, either type in or paste the location of a WSDL. It may be a local file system path, or a web URL. You can invoke practically any WSDL from anywhere in the world, with the condition that it uses the document/literal (doc/lit) style.

Once you've enetered the WSDL path or location, click on Try It. If yopur browser has Popup-Blocking enabled, you may receive a message saying a popup was blocked. If this occurs, choose to allow popups for the current domain and try again.

You should be presented with a screen that lists the available operations in the gioven WSDL. Here, for operations that take arguments, you will see fields that allow you to set values for the primitive argumant types that will be passed to the operations. For no-argument operations you will just see the button which has the same name as the operation.

Figure:Try It Screen 2

In either case, clicking on the button will invoke that service operation and in a few seconds, you will be able to see the return value immediately next to the button.

Figure:Try It Response Screen

Conclusion

Try It provides you with a mechanism to test your WSDL by creating end points on-the-fly. It can come quite handy in sounding out a WSDL before actually coding for it, without the need to go to a third party WSDL validator tool.