views:

24

answers:

0

Hi folks,

I've been given the task of posting to a RESTful server. I'm new to the official "REST" but I've played with the concept before. However, this time I have an XML Payload example file that I am supposed to post. I'm struggling to figure out how the two relate. Can you help?

Right now I can post to a specific site, say www.pcpost.com/schema/Application I can generate the URL for the inital, ie: postApplication?userid=4&... Being relatively new to web programming, I find that don't know how to take the following and interface it with the server. I'm at least familiar with Javascript and PHP. If this is impossible with those two types, I can learn whatever would be best.

Thanks for your help on this. C

<?xml version=\"1.0\" ?>

<Application xmlns="http://www.pcpost.com/schema/Application" SchemaVersion="1.0" ProgramId="8" ApplicationDate="2009-08-29">

  <Vendors>
    <Vendor Role="Applicant" Company="Test Company"  Contact="Smith, John"/>
    <Vendor Role="Seller" Company="Test Company" Contact="Doe, Jane"/>
    <Vendor Role="Installer" Company="Test Company" Contact="Funk, Carl"/>
  </Vendors>

  <Participants>
    <Participant TaxStatus="Individual" Sector="Commercial">
      <Roles>
        <Role>Host Customer</Role>
      </Roles>
  </Participants>
</Application>