Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When the form is submitted,  will issue an HTTP PUT request to the above URL sending the customerCreditLimit XML document in the payload. The database connector will map this to the <update> operation of the customerCreditLimit query that we defined above, will use the data in the XML document to resolve the query (replace {creditLimit} and {cnum} in the query with the actual values from the XML document) and perform the UPDATE.

...

Code Block
<query name="

...

            <retrieve>

...

customerByNumber“> 
            <retrieve>
                  <!-- maps to HTTP GET -->

...

                  <statement>  

    SELECT * from Customers where customerNumber={cnum}  

                  </statement>

            </retrieve>

...


                  <statement>  
    SELECT * from Customers where customerNumber={cnum}  
                  </statement>
            </retrieve>
</query>