Tag: wcftestclient

WCFTestClient HTTP请求是未经授权的客户端身份validationscheme“匿名”

我已经创build了一个WCF服务并将其部署在Server上。 当我浏览这个服务,它给了我积极的回应?wsdlurl。 现在我试图通过WCF Test客户端来testing服务。 它显示适当的元数据。 但是,当我尝试从服务中调用任何方法时,它显示了一个例外…这里是堆栈跟踪的错误细节.. HTTP请求未经授权,客户端身份validationscheme为“匿名”。 从服务器收到的身份validation头是“Negotiate,NTLM”。 服务器堆栈跟踪: 在 System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest请求,HttpWebResponse响应,WebException responseException,HttpChannelFactory工厂) HTTP请求未经授权,客户端身份validationscheme为“匿名”。 从服务器收到的身份validation头是“Negotiate,NTLM”。 服务器堆栈跟踪: 在 System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest请求,HttpWebResponse响应,WebException responseException,HttpChannelFactory工厂) 客户端绑定: <bindings> <wsHttpBinding> <binding name="WSHttpBinding_IServiceMagicService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="None"> <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /> […]

Visual Studio Wcftesting客户端 – input一个Int数组

我发现Visual Studio WCFtesting客户端对于我的WCF服务的快速testing非常有用。 这是在相对于Visual Studio安装目录的此位置中find的testing客户机: \ Common7 \ IDE \ WcfTestClient.exe 我有几个服务调用需要System.Int32 []types的参数 我似乎无法弄清楚什么值input这个参数,因为我不断收到错误 '[input的值]不是这种types的有效值 试图input值27我已经尝试了以下,但都失败 27 {27} 新的System.Int32 [] {27} 任何人都可以请帮助如何做到这一点