
Request
POST /IWBEP/SUBSCRIPTIONMANAGEMENT/SubscriptionCollection HTTP/1.1
HOST: <host>:<port>
accept: application/atom+xml
content-type: application/atom+xml
Content-Length: 634
X-Requested-With: XMLHttpRequest
X-CSRF-Token: krVmAnoj48a0mn36shLKRA==
<?xml version="1.0" encoding="utf-8"?>
<atom:entry xml:base="http://<host>:<port>/sap/opu/odata/IWBEP/SUBSCRIPTIONMANAGEMENT/" 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:category term="SUBSCRIPTIONMANAGEMENT.Subscription" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<atom:content type="application/xml">
<m:properties>
<d:CreatedBy/>
<d:TechnicalServiceName>/IWWRK/WFODCPROCESSING</d:TechnicalServiceName>
<d:TechnicalServiceVersion>0001</d:TechnicalServiceVersion>
<d:DeliveryAddress>http://XXX.XXX.1.1:XXXX/alerts/</d:DeliveryAddress>
<d:PersistNotifications>false</d:PersistNotifications>
<d:Collection>WorkflowTaskCollection</d:Collection>
<d:Filter/>
<d:Select>*</d:Select>
<d:ChangeType>updated</d:ChangeType>
<d:Principal>SAPUSER</d:Principal>
<d:PrincipalType>USER</d:PrincipalType>
<d:BaseUrl/>
</m:properties>
</atom:content>
</atom:entry>
|
Response
HTTP/1.1 201 Created
Content-Length: 650
Content-Type: application/xml;type=entry
Content-Encoding:gzip
dataserviceversion:2.0
<?xml version="1.0" encoding="utf-8"?>
<atom:entry xml:base="http://<host>:<port>/sap/opu/odata/IWBEP/SUBSCRIPTIONMANAGEMENT/" 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:category term="SUBSCRIPTIONMANAGEMENT.Subscription" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<atom:content type="application/xml">
<m:properties>
<d:ID>005056A509D41EE194DF0F559163A0DA</d:ID>
<d:CreatedBy>SAPUSER</d:CreatedBy>
<d:TechnicalServiceName>/IWWRK/WFODCPROCESSING</d:TechnicalServiceName>
<d:TechnicalServiceVersion>0001</d:TechnicalServiceVersion>
<d:DeliveryAddress>http://XXX.XXX.1.1:XXXX/alerts/</d:DeliveryAddress>
<d:PersistNotifications>false</d:PersistNotifications>
<d:Collection>WorkflowTaskCollection</d:Collection>
<d:Filter/>
<d:Select>*</d:Select>
<d:ChangeType>updated</d:ChangeType>
<d:Principal>SAPUSER</d:Principal>
<d:PrincipalType>USER</d:PrincipalType>
<d:BaseUrl>http://<host>:<port>/sap/opu/odata/IWCNT/WFODCPROCESSINGhttp://<host>:<port>/sap/opu/odata/IWCNT/WFODCPROCESSING</d:BaseUrl>
</m:properties>
</atom:content>
<atom:id>http://<host>:<port>/sap/opu/odata/IWBEP/SUBSCRIPTIONMANAGEMENT/SubscriptionCollection('005056A509D41EE194DF0F559163A0DA')</atom:id>
<atom:link href="SubscriptionCollection('005056A509D41EE194DF0F559163A0DA')" rel="edit" title="Subscription"/>
<atom:title type="text">SubscriptionCollection('005056A509D41EE194DF0F559163A0DA')</atom:title>
<atom:updated>2012-02-09T08:31:36Z</atom:updated>
</atom:entry>
|
Similarly, subscription for a Role is created by passing the below parameters:
<d:Principal>SAP_ROLE</d:Principal>
<d:PrincipalType>ROLE</d:PrincipalType>
As seen in the above example, the base URL is passed as request. Hence, the base URL is constructed from the Administrator's service context and the external name of the service.