I am stuck while trying to HTTP post an XML to Gateway Service which calls the BAPI_LEAD_CREATE in SAP CRM. The request is posted from the REST CLIENT In Firefox and i get an non descriptive HTTP 400 error in response
http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
xml:lang="en">
System expected the element '{&EXPECTED_NAMESPACE&}&EXPECTED_NAME&'</message>
</error>
I am unable to figure what the issue is, because i have used the Standard atom Envelope for the Request Body and have ensured the required data elements are present in the XML string
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <atom:entry xmlns:atom="http://www.w3.org/2005/atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <atom:content type="application/xml"> <m:properties> <d:value>xxx@xxxxxx,com</d:value> <d:scheme_id>Z_CRM_LEAD_FINAL</d:scheme_id> <d:scheme_agency_id>E61</d:scheme_agency_id> <d:process_type_1>dmy1</d:process_type_1> <d:lead_type>dmy1</d:lead_type> <d:process_type_2>L</d:process_type_2> <d:lead_type_1>dmy2</d:lead_type_1> <d:partner_fct>L</d:partner_fct> <d:title_p>M</d:title_p> <d:firstname>sriram</d:firstname> <d:lastname>vasudevan</d:lastname> <d:city>bangalore</d:city> <d:street>sjri</d:street> <d:street_no>20</d:street_no> <d:country>india</d:country> <d:region>karnataka</d:region> <d:tel1_numbr>900-000-002</d:tel1_numbr> <d:fax_number>900-000-002</d:fax_number> <d:partner_fct_1>C</d:partner_fct_1> <d:title_p_1>M</d:title_p_1> <d:firstname_1>sriram</d:firstname_1> <d:lastname_1>vasudevan</d:lastname_1> <d:city_1>C</d:city_1> <d:street_1>C</d:street_1> <d:street_no_1>S</d:street_no_1> <d:country_1>I</d:country_1> <d:region_1>T</d:region_1> <d:e_mail>xxx@xxxxxx,com</d:e_mail> <d:tel1_numbr_1>9</d:tel1_numbr_1> <d:fax_number_1>9</d:fax_number_1> </m:properties> </atom:content> </atom:entry>
Any help with this is appreciated.