Hii,
I followed these steps for Integration.
1. Description of SOAP Webservice:
We are using OpenText SOAP services. The payload for this service is as follows. It takes two input parameters – username & password
2. On executing the web service , we get the following output which gives an authentication token as output.
3. Based on the above description, we have followed the steps mentioned in the below url :
The entity set comprises of username, password & responseToken.
4. In the Select Data Source Wizard, we have selected operation as Read and Data Source as SOAP Webservice
We have done the request and response mapping for read operation.
Request Mapping :
Response Mapping :
5.We have successfully deployed the Service Implementation Project on SMP as below in
6.Created a new application with application id com.sap.authenticate with endpoint
https://hostname:8083/gateway/odata/SAP/DEMO;v=1
request is reaching to backend server successfully from SMP
7. From REST Client
To Check, if request is reaching successfully, Make a GET request by entering this
URL http://hostname:8080/odata/applications/latest/com.sap.authenticate
- Where: com.sap.authenticate: application id
- smp server host name – hostname
Notice the response, you will see two entries of collection. Endpoints and Connections
8. Register the Application ID
- For registration we have to use the "Connections" collection at the end of the
- URL: http://hostname:8080/odata/applications/latest/com.sap.authenticate/Connections
- Method: POST
- Add Header keys:
KEY | VALUE |
Content-Type | application/xml |
X-SMP-APPCID |
|
|
|
- Added this xml text in the RAW body section:
- <?xmlversion="1.0"encoding="utf-8"?>
- <entryxmlns="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">
- <contenttype="application/xml">
- <m:properties>
- <d:DeviceType>Android</d:DeviceType>
- </m:properties>
- </content></entry>
- Here i have added DeviceType as Android. That means registration will be for Android device.
- Status as 201 created and in the Response headers we get newly created X-SMP-APPCID
9. Device registration in the Admin cockpit:
10.For GET
When we fire the url "http://smphost:8080/appId
We are getting 200 status
11. For POST(Creating a record)
When we fire the url "http://smphost:8080/appId/collection name" we get the below error
"403 Forbidden"
Kindly suggests,
Regards,
Sumit.