cancel
Showing results for 
Search instead for 
Did you mean: 

Redirection for PI URL and passing crendentials in it.

Former Member
0 Kudos

Hi There,

As the direct access is not allowed from external parties to PI in our landscape. We have used a other server to redirect PI URL.

Like when 3rd party hits https://www.example.co.uk it will redirect to http://xxx.yyyy.co.uk:50000/XISSOAPAdapter/MessageServlet?channel=:BD_WebService:CC_SND_SOAP_WebServ...

When we hit the URL (https://www.example.co.uk) in browser, it asks for credentials and responds with 'Message Servlet is in Status ok'. Now we have started testing using SOAP UI with updated wsdl by keeping https://www.example.co.uk as end point.

In SOAP UI we have provided PI credentials in Auth. part and also tried in sending in Header(Authorization Basic ewee345rtrtyop89). Which did not work and response was 'java.net.unknownhostexception: www.example.co.uk' in both cases.

When accessed from Browser it is ok. But when testing, it is throwing exception as above.

We have tried the below way as well,

If 3rd party hits https://www.example.co.uk the server will redirect to http://xxx.yyyy.co.uk:50000/XISOAPAdapter/MessageServlet?Channel=:BC_WebService:CC_SND_SOAP_WebServi...

But, when https://www.example.co.uk is accessed in Browser it still prompts for credentials and from SOAP UI the response is still same.

Though we are passing the credentials in URL it is still prompting for credentials for both.

Can someone help with this to sort out?. .

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

iaki_vila
Active Contributor
0 Kudos

Hi Pavan,

Have you thought to use the SAP Web dispatcher to redirect?

Check this thread

Regards.

Harish
Active Contributor
0 Kudos

comment removed as it is already shared.

Former Member
0 Kudos

hello,

Did u check this

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi Amit,


Yes, but this did not help in our scenario. As there is a redirection when accessed externally and it also prompts for credentials when http://www.xxx.yyyy.co.uk:50000/XISOAPAdapter/MessageServlet?Channel=:BC_WebService:CC_SND_SOAP_WebS... accessed in browser.

Former Member
0 Kudos

Hello,

>>As there is a redirection when accessed externally and it also prompts for credentials when

You cannot set username/password in the Adapter engine SOAP URL call. User/password embedded in the URL only works when u are directly passing message to PI IE.

So either try to set passoword in the soap header (as suggested in the blog) or everytime while making a soap call send user name and password from the sender application.

Thanks

Amit Srivastava

former_member184720
Active Contributor
0 Kudos

Just to add - You might want to rewrite the header in your proxy which is redirecting the requests to PI.

Former Member
0 Kudos

Hi Amit,

Even though I access the URL directly, http://xxx.yyyy.co.uk:50000/XISOAPAdapter/MessageServlet?Channel=:BC_WebService:CC_SND_SOAP_WebServi... it is prompting for the password. Is there something in above format?

Former Member
0 Kudos

Hi Hareesh, This parameter is also set in Apache.

former_member184720
Active Contributor
0 Kudos

The credentials have to be part of HTTP header but not part of the URL.(unlike HTTP_AAE adapter where in you can pass credentials as part of URL)

You have to set this authentication information as HTTP header when you reroute the request to PI.

That is how Soap adapter works.

Have a look at the below discussion and see if that helps in setting the HTTP header with PI user credentials in base64 encoded format as suggested in the blog.

Set up an HTTP proxy to insert a header - Stack Overflow

Former Member
0 Kudos

Hello,

>> it is prompting for the password. Is there something in above format?

I think u haven't read my reply properly. Statement from my previous post -

You cannot set username/password in the Adapter engine SOAP URL call. User/password embedded in the URL only works when u are directly passing message to PI IE.

Thanks

Amit Srivastava