问题描述
我尝试从添加到项目的Web引用生成的代理类中调用方法,这是我的代码下面
public void call()
{
com.monster.schemas.MonsterBusinessGatewayService gateway = new MonsterBusinessGatewayService();
工作职位= new Job();
gateway.Url = https://208.71.198.74:8443/bgwBroker;
gateway.Credentials = new NetworkCredential( xtestxftp, ftp12345);
gateway.UpdateJob(job);
}
但是,我遇到了这个错误
System.Web.Services.Protocols.SoapHeaderException:Client not not处理完可用标题后验证
来源错误:
第347行:[返回:System.Xml。 Serialization.XmlElementAttribute(JobsResponse,Namespace =http://schemas.monster.com/Monster)]
第348行:public JobsResponse UpdateJob([System.Xml.Serialization.XmlElementAttribute(Namespace) =http://schemas.monster.com/Monster)]工作职位){
第349行:object [] results = this.Invoke(UpdateJob,new object [] {
第350行:工作});
第351行:返回((JobsResponse)(结果[0]));
线上
:349
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
这篇关于客户端在处理可用标头后未经过身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!