on 04-24-2015 9:32 AM
Hi Experts,
I am currently working on a SOAP to REST (synchronous) scenario, and have used SAP's REST adapter in the receiver communication channel.
I am using the GET operation here on resource of the target system's REST API, and am trying to retrieve all the data related to the same from receiver server.
Here we are using few authentications while connecting to rest server:
1: basic authentication(user and pwd)
2: x- accesstoken (in http header)
But when I am sending the request from PI to rest server, it getting fail in receiver adapter engine..error is HTTP error occurred: HTTP/1.1 401 Unauthorized
and below is the screenshot url which we are using in Channel
we tried URL like
Also like hardcoded value in URL
and we tested SOAP UI tool(rest project) its working perfectly fine, The target URL seems like this:
https://xxxxxxxxx.co.uk/xxxxxxx/{id}/sites?Keyword=Atherton&ResultsPerPage=10
Note: Above same URL we tested in SOAP UI(new rest project)with same authentication..its working perfectly fine, Below is the screenshots.
And one more thing while sending “id” input data we had to keep either id style as Template or hardcoded in URL itself.. then only it working in UI tool.
So, Please can someone help me out to handle in pi server..
Thanks,
Maheswarareddy
Hi,
small progress...i just recreated new Channel and used below URL
https://xxxxxxxxx.co.uk/xxxxxxx/{id}/sites?Keyword=Atherton&ResultsPerPage=10
now error is HTTP/1.1 400 Bad Request
so, can any one please provide information why that error coming , in case URL formate is wrong, then how to frame the URL.
Thanks in advance!!
Thanks,
Maheswarareddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.