Atlas declarative blocks

I have been playing with Atlas and running through the hands on labs. In lab 2, you create some 'Atlas declarative blocks' to associate async invocations with controls on your form and with a web service. It looks something like (from one of the labs) :-

       <textBox id="SearchKey" />
        <serviceMethod id="helloService" url="HelloWorldService.asmx" methodName="HelloWorld">
        <bindings>
          <binding dataContext="SearchKey" dataPath="text"
            property="parameters" propertyKey="query" />
        </bindings>
        <completed>
          <invokeMethod target="resultsBinding"
            method="evaluateIn" />
        </completed>
      </serviceMethod>

        <button targetElement="SearchButton">
        <click>
            <invokeMethod target="helloService" method="invoke" />
        </click>
        </button>

        <label targetElement="results">
        <bindings>
            <binding id="resultsBinding" dataContext="helloService"
            dataPath="response.object" property="text"
            automatic="false" />
        </bindings>
        </label>

All these service bindings remind me of the bindings used in Indigo, I dont suppose its any real accident either. These definitions are placed in a <script type="text/xml-script"> which I found quite odd at first but am defintely getting the hang of it.

1 Comment

Comments have been disabled for this content.