Web Services Task File Sample

This is a sample of a Web service task file generated by Task Builder for Screens. This sample contains a single task called Example, and a single input and output called respectively, ExampleInputs and ExampleOutputs.

Sample Code:

<?xml version="1.0" encoding="UTF-8" ?> 
  <SampleTasks>
    <transactions>
      <transaction id="Example">
        <input>
          <xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema">
            <xsd:element name="ExampleInputs">
              <xsd:complexType>
                <xsd:element default="1000" name="AccountNumber" type="xsd:string" /> 
              </xsd:complexType>
            </xsd:element>
          </xsd:schema>
        </input>
        <output>
          <xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema">
            <xsd:element name="ExampleOutputs">
              <xsd:complexType>
                <xsd:element nullable="true" name="AccountBalance" type="xsd:string" /> 
                <xsd:element name="AccountDetails">
                  <xsd:complexType>
                    <xsd:element name="Row" maxOccurs="unbounded" minOccurs="0">
                      <xsd:complexType>
                        <xsd:element name="Date" type="xsd:string" /> 
                        <xsd:element name="Ammount" type="xsd:string" /> 
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:complexType>
                </xsd:element>
              </xsd:complexType>
            </xsd:element>
          </xsd:schema>
        </output>
      </transaction>
    </transactions>
  </SampleTasks>
Related Topics
Bullet Using Tasks in Your Applications, Overview
Bullet Using Web Services
Bullet Building Applications Using Native Win32 Technologies
Bullet Proxy Service Interface API Reference
  Attachmate