cancel
Showing results for 
Search instead for 
Did you mean: 

Authorisation from .NET to SAP via Web Service

Former Member
0 Kudos

I am a .NET guy, and have been given the WSDL for a Web Service exposed through XI. I have the proxy built, but my code dies on a 401 (Not Authorized) exception. How do I pass a userid/password to SAP? Can anyone point me to manuals for how XI webservices interact with .NET?

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ryan,

XI Web Services should accept either username/password or SAP Logon Tickets for authentication.

I would like therefore to point you to my blog .

If your proxy is called myProxy the following code snippet will allow you to pass username and password to XI.

myProxy.Credentials = _
new System.Net.NetworkCredential("testsapuser", "secret");

Best regards,

André

Answers (0)