I have created a wbservice. In the webservice I have created a method to send an acknowledgement. For sending the acknowledgement I have provided the link of the url in my web.config file as below:-
<applicationSettings>
<ABCD.Properties.Settings>
<setting name="Servicename"
serializeAs="String">
<value>http://10.237.1.1/X/Y/Z</value>
</setting>
</ABCD.Properties.Settings>
</applicationSettings>
</configuration>
But when I am running my webservice then I am getting the error as:- The request failed with HTTP status 401: Unauthorized. Is it that I have to provide the username and password while sending the acknowledgement. If yes then please tell me how is it possible?