cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to Soap...... http 401 error

Former Member
0 Kudos

Dear Gurus,

I have developed one integration scenario which is proxy to soap. When i test this proxy it gives me error

I have check the connection.Connection is fine between ourPi system adn PI system of other party Some blogs said it could be connection or port issue. I have telnet that and from connection perspective everything seems to be fine. Some blog said that it could be issue of role "SAP_XI_IS_SERV_USER". The other side also have added this role in their PI login, the one we are using in our SOAP receiver channel. But problem is still there. can anybody help what could be the problem.

Thanks

regards

imran

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Dear Baskar and Samiullah,

I made the whole scenario and proxy again. Now when i execute the proxy, i am not getting that error the one mentioned above. Now after getting proxy, i get error of "UNKNOWN.ADAPTER.JAVA_EXCEPTION"

here is the screen shot of message status in PI and channel status in RWB.

I asked from other party ti check if they can see any message in their MONI. But they can't see any message there. Can you please help me in this regards.

Thanks

Former Member
0 Kudos

OK let me check whatever you mentioned and i will comeback to you.

Regards

Imran

samiullah_qureshi
Active Contributor
0 Kudos

As suggested by Baskar, user that you are using in HTTP RFC destination (used to connect to SAP PI) should be having XIAPPLUSER role assigned to it.

Also, test your HTTP destination from SM59, if is giving HTTP response code as 500 then it is fine. Otherwise it will give you some error.

Former Member
0 Kudos

Hi Imran,

As above said ,HTTP 401 error comes when PI couldn't able to connect to source/target system .

In your scenario what you need to do is .

Check in your receiver SOAP channel whether you configured hostname/IP ?

If you configured IP in url,check with the target system folks whether the user is locked or credentials are not correct ? (If this not the first time you are connecting ,then the only reason is user lock)

If you configured hostname in url,check with the target system folks whether any of the servers connecting to the load balancer have locked the user shared to you.

Cheers:)

Regards

Venkat




Former Member
0 Kudos

Dear Venkat,

The credentials are correct. I have tested this WSDL in XML SPY with same credentials, the one mentioned in SOAP receiver channel. I also have tried both host and IP in URL in Soap reciever channel but same message is coming. I am not getting what problem is this?

Kindly help

Thanks

Former Member
0 Kudos

Hi,

Is it like some of them are successful and some of them are failing in PI?

Regards

Venkat

vikas2
Active Participant
0 Kudos

If it's proxy to SOAP, are you able to see messages in SXMB_MONI in PI system?

Check if you're getting any error there - unauthorized normally comes if authentication credentials are wrong.

Former Member
0 Kudos

Dear Vikas,

NO, i cannot see any message in MONI. When i test proxy, a window appear for target PI usernaem and password. When i enter the username and password and press enter, cursor went back to clint number field. It just simply give message, the one in the above screen shot.

Thanks and let me know if any other problem you think might be.

Regards

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>the one we are using in our SOAP receiver channel. But problem is still there. can anybody help what could be the problem.

You need to talk to target system and get valid user login details.  HTTP 401 is invalid login credentials.  After getting the login credentials add  the same in teh soap reciever adapter.   Also ask the target system about their support communication http or https. If https, you have to get their system cert and store it in keystore and use that in the receiver adapter.

This is pretty common issue. Use the sap help link for more understanding

http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/content.htm

Former Member
0 Kudos

Dear Baskar,

Login details are correct. Because i have tested this WSDL on XML SPY and pass the same login adn password, the one i am passing in soap receiver channel. The target system support both http and https. I am using HTTP. I have telnet their IP and port too. connectivity is fine,

What could be the other problem?

Thanks

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Since you said the message does not show in PI.

a) I suspect the service user XIAPPLUSER  you use from proxy has some issues and so it is not acceptable by PI.

I want you to go through proxy configuration link

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0ac1a33-debf-2c10-45bf-fb19f6e15...

b) Also Check your rfc destination (type h) in sm59 transaction code and see credentials.