0

I know how to consume ASMX file in C#.net

Simple

Right Click on References

Then Add Service Reference

Paste the ASMX service in the address bar

Click Go.

What the vendor sent us is a .wsdl link that needs userid and password.

how can I consume that in my application?

I tried to google that

most of the pages talk about asmx or wsdl without authentication.

will appreciate if someone helped me here

1 Answer 1

1

assuming it's basic authentication:

client.ClientCredentials.UserName.UserName = "......";
client.ClientCredentials.UserName.Password = "......";
3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.