WCF sample connection String ?
System.Net.WebRequest request = System.Net.WebRequest.Create(“webservice.eonesolutions.request.Credentials = new System.Net.NetworkCredential(“username”,”password”,”domain”);
What is the correct Syntax? Thanks
I flipped in the online manual and don’t see code like you are trying to use above.
but the problem with the specific code you have above is exactly as you note.
remove the double quote after the .Create( statement since that isn’t a string.
And then you need to add a paren at the end because the .Create() method that you are calling doesn’t have its ending paren.
For that method to work, you need to replace the “username”, “password”, “domain” values with your actual variables or strings.
Here is Microsoft’s documentation on using the System.Net.WebRequest.Create method.
Console.Writeline(“password”; this line has a syntax error.
If you would like to submit an answer or comment, please sign in to the eOne portal.