cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming an SAP-Webservice with ASP - Authentication-Problem

Former Member
0 Kudos

Hi

I was searching the forum for a solution, but didn't find any satisfying solution.

I try to consume a webservice with ASP. I can get the WSDL-File without any problems, using an URL formed like this:

http://server/path/to/service/.../ws_policy/document?sap-client=xxx&sap-user=username&sap-password=p...

However, when I try to call the actual webservice, this fails miserably. I get an error telling me, that I'm not authenticated.

As I need to call this webservice in the background, I can't log on to SAP everytime I call it - this must be done through some header-authentication (or preferrably with the method I'm calling the WSDL-File...)...

Any Ideas how to do this?

Thanks for your help!

(P.S. I'm using ASP 1.0 using a MSXML2.XMLHTTP to create the connection)

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Silvia

Thanks for the reply.

The problem is solved - meanwhile - as I found a way to provide username/passwords in the SOAP-header that's being sent to the server...

Best regards

Urs

Former Member
0 Kudos

Hi Urs,

I assume that the SAP WebService is implemented on your ABAP backend?

In this case, please add the following role to the calling user in your ABAP backend system:

SAP_BC_WEBSERVICE_CONSUMER.

Depending on your SP level (7.0 SP14 or SP15, 7.1 SP4 or SP5 or SP6) additonal roles (RBAM) might be necessary.

Best regards,

Silvia