I try to invoke method from my proxy class generated from a web reference added to the project , this is my code below
public void call()
{
com.monster.schemas.MonsterBusinessGatewayService gateway = new MonsterBusinessGatewayService();
Job job = new Job();
gateway.Url = "https://208.71.198.74:8443/bgwBroker";
gateway.Credentials = new NetworkCredential("xtestxftp", "ftp12345");
gateway.UpdateJob(job);
}
But , I encountered this error
System.Web.Services.Protocols.SoapHeaderException: Client not authenticated after processing available headers
Source Error:
Line 347: [return: System.Xml.Serialization.XmlElementAttribute("JobsResponse", Namespace="http://schemas.monster.com/Monster")]
Line 348: public JobsResponse UpdateJob([System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.monster.com/Monster")] Job Job) {
Line 349: object[] results = this.Invoke("UpdateJob", new object[] {
Line 350: Job});
Line 351: return ((JobsResponse)(results[0]));
on Line: 349