Web服务3.0 [英] Web Service 3.0
问题描述
需要帮助修复该错误我已经google了很多但仍未找到任何解决方案
我已经创建了一个方法
< WebMethod()> _
< span style ="color:#0000ff; font-size:x-small"> 公共
Sub SetClientCredential( ByVal
UsernameToken As Microsoft.Web.Services3.Security.Tokens.UsernameToken)
Dim cProxy
As
新 Microsoft.Web.Services3.WebServicesClientProtocol
cProxy.SetClientCredential(UsernameToken)
结束
Sub
当我跑到localhost时得到这个
Microsoft.Web.Services3.Security.Tokens.UsernameToken无法序列化,因为它没有无参数构造函数。
http:// stackoverflow。 COM /问题/ 3429241 /网络服务的错误 - 它 - 不 - 不具有-A-参数的构造函数 块引用>
Need Help of fixing that error i have googling alot but still didnot find any solution
I have create a method
<WebMethod()> _
Public Sub SetClientCredential(ByVal UsernameToken As Microsoft.Web.Services3.Security.Tokens.UsernameToken)
Dim cProxy As New Microsoft.Web.Services3.WebServicesClientProtocol
cProxy.SetClientCredential(UsernameToken)
End Sub
and get this when i run to localhost
Microsoft.Web.Services3.Security.Tokens.UsernameToken cannot be serialized because it does not have a parameterless constructor.
解决方案http://stackoverflow.com/questions/3429241/web-service-error-it-does-not-have-a-parameterless-constructor
这篇关于Web服务3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!