cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication Error while consuming a web service from a .Net program

former_member185846
Active Participant
0 Kudos

Hi All,

I've generted a WSDL file by using the following steps.

1.Created a RFC enabled ABAP pgm

2.Created a web service out of it (using webservice creation wizard - default virtual host. so my port is 8100)3.Released the web service (WSCONFIG)

4.Generated the WSDL file (WSADMIN + CTRL F1).

Then I wanted to consume it from a .Net program. But am getting authentication error in .Net.

<b>Do I need to configure anything for Authentication (username and password) from R/3 side?..</b>

<b>How Do I pass the credential info from .Net?.</b>

Should I take care of any setup other than what I've specified?.

Any Blogs or response would be appreciated.

Thanks,

Joe.

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

Usually like this:

WSReference1.WSPProxy proxy = new WSReference1.WSPProxy();
proxy.Credentials = new System.Net.NetworkCredentials("Username", "Password");
proxy.PreAuthenticate = true;
proxy.CallMethod();