Post to URL Xml Json $50 for solution

Post to URL Xml Json $50 for solution

I have a formwith basic contact data - first name , last , address , age etc I need to post info after submitted to my db to external site as XML or JSON - I have tried everything  all I get back for response is Bad data type errors . I got 50 bucks for who ever gives me a working solution - Instructions below-



Our services follow RESTful standards fairly strictly. A successful api call is indicated by a http response code in the range: >= 200 and <= 299. Any other http response code is a failure. Our services respect common http headers if you need to customize the response to a specific encoding or format. If you run into a problem, be sure to look at the http response code and headers as they usually provide specific information about the problem.

When posting data upon transferring a prospect to us, please use the following URLs and formats:

XML
---

POST data to:

    Some Url

With the following headers set:

Content-Type: application/xml

In this format:

<mST>
   <leadMetadata>
       <source>Organic</source>
         </leadMetadata>
   <mSL>
       <firstName>Bob</firstName>
       <lastName>Seger</lastName>
       <phone>555-867-5309</phone>
       <email>test</email>
       <birthDate>2014-01-30</birthDate>
       <age>42</age>
       <address>11123 North Ohio St</address>
       <city>Effingham</city>
       <state>KS</state>
       <gender>Male</gender>
       <zipCode>66506</zipCode>
   </mSL>
</mST>

JSON
----

POST data to: Some URl

With the following headers set:

Content-Type: application/json

In this format:

{
  "mST":{
     "leadMetadata":{
        "source":"Organic",
          },
     "mSL":{
        "firstName":"Bob",
        "lastName":"Seger",
        "phone":"555-867-5309",
        "email":"test",
        "birthDate":"2014-01-30",
        "age":42,
        "address":"11123 North Ohio St",
        "city":"Effingham",
        "state":"KS",
        "gender":"Male",
        "zipCode":66506
     }
  }
}