服务器和客户端之间使用SOAP头进行身份验证,
服务器端测试没有问题,但是客户端在进行WEB引用之后,编译完成,调用时出现了“soap头path未被理解”的错误提示。
另外在WEBSERVICE服务端单独使用的时候就不会出现这样的错误,将WEBSERVICE和ASPX工程一起使用就出现了这样的问题。
客户端的使用好象没有问题呀,这是什么错误,怎么解决?
---------------------------------------------------------------
are you using WSE? Add the following in web.config of your web services.
1<system.web>
2
3...
4<webservices>
5<soapextensiontypes>
6<add group="0" priority="1" type="Microsoft.Web.Services.WebServicesExtension,
7Microsoft.Web.Services, Version=1.0.0.0, Culture=neutral,
8PublicKeyToken=31bf3856ad364e35"></add>
9</soapextensiontypes>
10</webservices>
11...
12</system.web>
or remove routing output filter from client output pipeline.
1<e.g>
2
3Service serviceProxy = new Service();
4serviceProxy.Pipeline.OutputFilters.Remove(typeof(Microsoft.Web.Services.Routing.RoutingOutputFilter));</e.g>