cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI - SOAP UI Testing - No Authorization 401

vishnu_pallamreddy
Contributor
0 Kudos

Hi all,

My interface is File to proxy.

in source side i have imported XSD and done full configuration.

Now I have taken WSDL from Sender Agreement and trying to test.

in SOAP UI i have give Basic Authorization also.

Here I have provided PI System user credentials.

even though it is showing like no authorization 401.

Could you please let me know the solution or any roles needs to be preferred for this?

Thanks In Advance,

Vishnu.

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Vishnu,

How you can test File to Proxy scenario using SOAP UI?

if your testing Soap to Proxy check u have below roles and maintain username/password in SOAP Ui

SAP_XI_ADMINISTRATOR_J2EE

    

SAP_XI_APPL_SERV_USER

    

SAP_XI_DEVELOPER_J2EE

    

SAP_XI_IS_SERV_USER

vishnu_pallamreddy
Contributor
0 Kudos

Hi Raghu,

Thank You.

For source structure I have imported XSD.

I will check the roles

former_member186851
Active Contributor
0 Kudos

Also check the point mentioned by Manoj.

If required add the username details in the the request XML.

vishnu_pallamreddy
Contributor
0 Kudos

Hi Raghu,

Tried. No Use.

I don't have these roles.

SAP_XI_APPL_SERV_USER

   

SAP_XI_DEVELOPER_J2EE

   

SAP_XI_IS_SERV_USER



former_member186851
Active Contributor
0 Kudos

Try assigning them and check Vishnu..

And check the below discussion

https://scn.sap.com/thread/3176307

vishnu_pallamreddy
Contributor
0 Kudos

Hi Raghu,

We need to provide PI system Username and password in SOAP UI right?

former_member186851
Active Contributor
0 Kudos

yes vishnu,.

your testing via SAP PI endpoint or directly the WS?

For SAP PI endpoint give the user name of SAP PI and password..check the roles in the discussion and the ones I shared.

vishnu_pallamreddy
Contributor
0 Kudos

Roles Added.

Not working.

User is dailog type.

i need to change right?

former_member186851
Active Contributor
0 Kudos

use communcation user.

And ur using SOAP channel with HTTP protocol right?

vishnu_pallamreddy
Contributor
0 Kudos

Yeah I am using soap Channel with HTTP protocol.

I have taken WSDL from Sender agreement.

So i am using PI system user credentials.

former_member186851
Active Contributor
0 Kudos

Ok Vishnu,

Check the user and roles then.

Answers (2)

Answers (2)

apu_das2
Active Contributor
0 Kudos

Hi Vishnu,

Please add below with the URL you got after importing the wsdl in the SOAPUI -

&&sap-user=<PI-user>&&sap-password=<pwd>

Thanks,

Apu

manoj_khavatkopp
Active Contributor
0 Kudos

Vishnu,

In your screenshot of the Request Paylaod it seems the credentials need to passed as part of SOAP Body also , so please maintain the credentials over there and re-try.

br,

Manoj

vishnu_pallamreddy
Contributor
0 Kudos

Hi manoj,

Those are not required.

I have tried, no use.

manoj_khavatkopp
Active Contributor
0 Kudos
My interface is File to proxy.

Have you created SOAP sender channel with Message Protocol HTTP and set the authentication for only HTTP ?provide the screenshot of the sender channel.

Br,

Manoj

former_member200386
Active Participant
0 Kudos

Hi Vishnu,

Check the Proxy receiver comm channel "User" will have the correct roles  and is it active or locked.

Thanks,

Pavan T

vishnu_pallamreddy
Contributor
0 Kudos

Hi pavan,

in receiver Proxy channel we are using HTTP Destination.

vishnu_pallamreddy
Contributor
0 Kudos

In Receiver proxy channel we are using HTTP Destination in that we have maintained one user that is locked.

manoj_khavatkopp
Active Contributor
0 Kudos

Do you see any error in PI message Monitoring/NWA ?

vishnu_pallamreddy
Contributor
0 Kudos

Yeah I am getting unauthorized error.

it is may be with HTTP Destination.

I will check on that.

former_member186851
Active Contributor
0 Kudos

Did you unlock and check if the message is working?

You said File-Proxy??what exactly is the scenario Vishnu..

former_member200386
Active Participant
0 Kudos

Hi Vishnu,

I am very confident , This issue is because of Receiver Proxy channel issue the URL which you are using to connect and user you maintained in the HTTPS destination is causing the issue. Please check and , If possible , Please share the Message Logs to the forum, So that we can get more insight of the issue.

Thanks,

Pavan T

former_member186851
Active Contributor
0 Kudos

So what was the issue and how u sorted it.?

Please close the thread sharing the answer vishnu..

vishnu_pallamreddy
Contributor
0 Kudos

Hi Raghu,

First issue with roles and next user locked in RFC Destination.

Unlocked the user and added the roles.

now we are getting response in SOAP UI.

Yeah its file to proxy.

But the source system provided the XSD thats why we have created SOAP Channel.

Thank You All.

former_member186851
Active Contributor
0 Kudos

Great Vishnu..:)