Quick start Soap
Here is an simple example on how to write a Soap test case. It uses
the Babelfish translation service to translate "Auto" into english (car). The example
can be downloaded from
http://www.informatrix.ch/yawet/examples/babelfish.ywt
-
See Installation if you don't know how to start Yawet.
-
Set up a new Project:
- In the menu select [File]->[New Web Project].
- Enter the server base url (ex. http://services.xmethods.net:80/perl/soaplite.cgi).
- If you need a proxy to access the internet, click on the [Browser] tab and configure the proxy host and port
- Optionally go to the [Soap] tab and adjust the Soap header.

-
Create a Xml test page:
- In the tree view, click with the right mouse button on the project.
Select [Add child]->[Xml Doc]
-
Enter the Soap request:
<ns1:BabelFish xmlns:ns1="urn:xmethodsBabelFish"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<translationmode xsi:type="xsd:string">de_en</translationmode>
<sourcedata xsi:type="xsd:string">Auto</sourcedata>
</ns1:BabelFish>
- Click [Run]. The page is loaded and the page icon turns (hopefully) green. If not, check the [Log] tab

-
Create an Xml Tag test node:
- Select the [Dom] tab. Enter "return" in the search combo box field.
Click [Search]
- Click with the right mouse button on the found result field and
select [Add Element]
- In the tree view, click with the left mouse button on the newly created Xml Tag icon.
On the right view the properties of the Xml Tag test node are shown
- Set Text "equals" car.
- Click [Run]. The Xml Tag icon should now turn green.

-
Save and run the test:
- In the menu select [File]->[Save]. Enter a file name (ex. babelfish) and save the test.
- Press [F3] to run the whole test.
- In the tree view, now all icons should hopfully turn gree.
- If not, click on the lowest red element, and check the error message in the Log tab.
- If yes, start testing your real Soap applications. ;-)
