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

  1. See Installation if you don't know how to start Yawet.
  2. Set up a new Project:
    1. In the menu select [File]->[New Web Project].
    2. Enter the server base url (ex. http://services.xmethods.net:80/perl/soaplite.cgi).
    3. If you need a proxy to access the internet, click on the [Browser] tab and configure the proxy host and port
    4. Optionally go to the [Soap] tab and adjust the Soap header.

    New Project in Yawet


  3. Create a Xml test page:
    1. In the tree view, click with the right mouse button on the project. Select [Add child]->[Xml Doc]
    2. 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>
    3. Click [Run]. The page is loaded and the page icon turns (hopefully) green. If not, check the [Log] tab

    New Xml test page


  4. Create an Xml Tag test node:
    1. Select the [Dom] tab. Enter "return" in the search combo box field. Click [Search]
    2. Click with the right mouse button on the found result field and select [Add Element]
    3. 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
    4. Set Text "equals" car.
    5. Click [Run]. The Xml Tag icon should now turn green.

    New Xml Tag


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

    New Xml Tag