on 10-25-2010 5:36 PM
Hi All,
After creating a webservice for a custom RFC function developed in a ECC6.0 SAP machine, I tried to add it to a Visual Studio 2010 windows aplication (through a web reference connection).
The sequence I've done is:
- Create RFC in ABAP, with testing ok
- Create a WEBSERVICE with the ABAP editor
- Configured the webservice with SICF with:
Procedure: Standard
Logon data: standard R3 user
Security requirement: Standard
Authentication: Standard SAP User
Then, in SOAMANAGER I copied the webservice URL and tried to add it to Visual Studio 2010, but it keeps asking me the user and password. I try to supply the R3 username and password but if fails.
Why is ECC6.0 asking the user and passord if I've defined a SAP user for the login process?
Is there any way to disable this?
Thanks,
Manuel Dias
Hello Manuel,
You can use the following code:
CredentialCache cache = new CredentialCache();
cache.Add(new Uri("WEBSERVICEURL:PORTNUMBER/"), "Basic", new NetworkCredential("USERNAME", "PASSWORD"));
SAP needs a password.
Kind regards,
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.