Hi ,
When I m trying to create user using Restful client for service /IWBEP/USERMANAGEMENT providing payload and header's I m getting 'Invalid Request' exception. Basically , I'm trying use User Self Service functionality of gateway service.
Here is the URL : http://<host>:8000/sap/opu/odata/iwbep/USERREQUESTMANAGEMENT/UserRequestCollection
Request Headers:
{"Content-Type" : "application/atom+xml"}
{"X-Requested-With" : "XMLHttpRequest"}
payload :
<a:entry xmlns:a="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<a:author><a:name/></a:author>
<a:content type="application/xml">
<m:properties>
<d:UserName>test10</d:UserName>
<d:FirstName>Test</d:FirstName>
<d:LastName>User10</d:LastName>
<d:EmailAddress>oliver.schraag@opentext.com</d:EmailAddress>
<d:PhoneNumber/></m:properties>
</a:content>
</a:entry>
Here is response , I' m getting :
<?xml version="1.0" encoding="utf-8"?><error
xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>/IW
BEP/CM_MGW_URM/003</code><message xml:lang="en">Invalid
request.</message><innererror><transactionid>C65730E5FF5BF1129607005056871279</t
ransactionid><timestamp/><Error_Resolution><SAP_Transaction/><SAP_Note/></Error_
Resolution><errordetails><errordetail><code>/IWBEP/CX_MGW_BUSI_EXCEPTION</code><
message>Invalid
request</message><propertyref/><severity>error</severity><target/></errordetail>
</errordetails></innererror></error>
Could you please help me to resolve the problem ? I'm on 740 SP10
Regards,
Ravi.