title: Building a service for a given request
body: <p>I am relatively new to SOAP frameworks and have been reading through Spynes docs and trying to figure out to build a service that accepts the following request:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://..." xmlns:xsi=http:/..." xmlns:xsd="http://..."&gt;
  &lt;SOAP-ENV:Body&gt;
      &lt;modifyRequest returnData="everything" xmlns="urn:..."&gt;
        &lt;attr ID="..."/&gt;
        &lt;data&gt;
        &lt;/data&gt;
      &lt;/modifyRequest&gt;
    &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>I have read through the docs but just have not seen enough more complex examples to figure out how to put together something to handle this. The <code>&lt;attr ID="..."/&gt;</code> tag must be processed for the ID attribute and the <code>&lt;data&gt;</code> tags contain some varying collection of additional xml. I understand its better to formally define the service but for now I was hoping to use anyXML (?) to accept whatever is in the tags. I need to accept and process the ID attribute along with its xml payload contained within the data tags.</p>
  
  <p>I'd be grateful for any guidance,
  Thanks.</p>