function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
zirosziros 

Passing Credentials from salesforce to external webservice

Hello,
 
After gathering all the data for accomplishing calling to external asp.net webservice, I face through I hope the last problem.
 
I genereated a class form wsdl and wrote apex class which calls to asp.net webservice, I just need to know
how can I pass username,password,domainname to the webservice.
 
here are the main part which instantiate the webservice wsdl class
 
WSIchlusSalesForce.ServiceIchlusSoap soap = new WSIchlusSalesForce.ServiceIchlusSoap();
now is there any way to call it with Credentials ?
 
In ASP.NET webservice on IIS , Directory Security, Authentication methods those things are set:
Enable anonymous access is set
Integrated Windows authentication is set
 
Thanks for any help on this.