cancel
Showing results for 
Search instead for 
Did you mean: 

401 Unauthorized-Runtime Workbench error

Former Member
0 Kudos

Hi All,

I am facing an error when I am trying to test my scenario through Runtime Workbench test tool.

It is giving me an error message as ,"Error sending message, 401 Unauthorized".

Path:

Runtime Workbench -> Component Monitoring -> Integration Engine -> Test Message

I tried with all users but still getting the same error .Could anyone help me out in this.

Thanks in Advance,

Lavanya

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Hello,

What is the QOS you have selected at RWB ? If all the roles are assigned then internet explorer should post it successfully.

Did you try any SOAP UI to test if Integration Engine url being used in RWB is working ? At time this URL may need some correction before testing .

Just in case iam repeating the steps : please do no post message in test message of ADAPTER Engine it won't allow you to.

SXMB_IFR from SAP logon > Select RWB > Component Monitoring >* Integration Engine* > Test Message

1. Sender System Trinity : Sender Service, Sender Interface,Sender Namespace

2. QoS : Exactly Once. only this works for Test Message

3. Check Send message to URl to be correct

I doubt you were selecting Adapter Engine to test message please select Integration Engine and test message again, should work.

Regards

Kishore

Edited by: Rathna K Ganta on Apr 28, 2011 7:28 PM

Former Member
0 Kudos

Hi Kishore

I am testing only on Integration Engine .

Regards

Lavanya

Former Member
0 Kudos

Hi Lavanya,

We will get this error when we try to post to adapter engine. Please make sure you are posting to integration engine then you should not get this error.

After going to RWB --> under components --> under your domain --> integration server --> integration engine <SID>. Then click on integration engine <SID> then you can test to integration engine. Probably you are selecting Adapter Engine <SID> thats why you have this error.

Regards,

---Satish

former_member182418
Participant
0 Kudos

Hi Lavanya,

This 401 Error is realted to Authorization. Check with your basis team , so that they can assign the appropriate Authorization.

Check if SAP_XI_APPL_SERV_USER roll is there or not. Please Elobrate your Scenerio also.Coz 401 : normally comes if there is No Authorozation to view request source.

Ravi raika

Former Member
0 Kudos

Hi Ravi raika,

All the roles were assigned to my user id but still facing the issue.

We could not able to trace the problem,could anyone help me out in this.

Thanks in advance,

Lavanya

0 Kudos

Hi Lavanya,

Can you please confirm the role "SAP_XI_RWB_SERV_USER" is present at Server -> Service -> Security Provider -> Policy Configuration -> sap.com/com.sap.aii.af.app*AdapterFramework -> security roles -> xi_af_rtc?

Regards,

Caio Cagnani

Former Member
0 Kudos

Hi Caio Cagnani

I have assigned the roles like,

>SAP_SLD_CONFIGURATOR

>SAP_XI_IS_SERV_USER

>SAP_XI_IS_SERV_USER_MAIN

but still I am able to see the same error .

Regards,

Lavanya

Former Member
0 Kudos

Please also apply the role SAP_XI_APPL_SERV_USER and try executing it again.

Former Member
0 Kudos

Hi Lucas Santos ,

I tried as you guided me but still the status is same.

lavanya

maciej_jarecki
Contributor
0 Kudos

Hi

Ok, but if it is sync interface like proxy with sap target system, then perhaps something is wrong on ECC side

Tell us more details about the flow

BR

Maciej

Former Member
0 Kudos

Hi Maciej

The above stated error is not only for my user id but irrspective of user user id's and flow(Asyn/Syn)

Regards,

Lavanya

Former Member
0 Kudos

Hi ,

This error may be caused by some default properties of the J2EE engine user management (UME) integration with the R/3 user management. You'll need to increase these UME properties used for the user authentication.

Refer Note -821026

Regards,

Raghu

naveen_chichili
Active Contributor
0 Kudos

Hi Lavanya,

While testing from your RWB-->Adapter engine ---> test message u need to provide your integration engine url(http://<host>:<port>/sap/xi/engine?type=entry) in the above and then u should provide your

sender service

reciever service

sender interface

sender name space.

User name

Password:

Please provide your user credentials correctly and give the mode of transport and paste your payload below.

NOTE: payload must be correctly in order to check if payload is correct paste the payload in mapping -->test and confirm

Cheers!!!

Naveen.

former_member463616
Contributor
0 Kudos

Hi Lavanya,

>>>I am facing an error when I am trying to test my scenario through Runtime Workbench test tool.

>>>It is giving me an error message as ,"Error sending message, 401 Unauthorized".

I think you have to specify right client number in T.code SICF.

For this, Go to SICF transaction, choose default_host -> sap -> xi -> engine.

http://<host>:<port>/sap/xi/engine?type=entry&sap-client=<client-number>;

Hopes this helps to you.

Regards,

P.Rajesh

SudhirT
Active Contributor
0 Kudos

This is because of no proper authorization. Try to test it with PIISUSER. It should work.

Former Member
0 Kudos

Hi Sudhir ,

I tried giving the user :PIISUSER and it worked for me .

I assigned those roles to my user id but still facing the same issue.Kindly help me out in this.

Regards,

Lavanya

0 Kudos

Hi there,

In order to solve this, ensure you have maintained the correct password, which MUST be the same, for all the service users

on XI. You may check all the places it should be maintained, such as Exchange Profile, SU01, SLDAPICUST, etc..

Kindly check the note below, according to your system version:

PI 7.1:

#999962 - PI 7.10: Change passwords of PI service users

XI 7.0

#936093 - XI 7.0: Changing the passwords of XI service users

XI 3.0

#721548 - XI 3.0: Changing the passwords of the XI service users

Also ensure that the user has the correct role as per link below:

http://help.sap.com/saphelp_nwpi71/helpdata/en/9f/d12940cbf2195de10000000a1550b0/frameset.htm

Regards,

Caio Cagnani