0

我在调用 php 中的 Web 服务时遇到问题,该 Web 服务是用 c# 语言编写的。我在 c# 中有可以正常工作的示例代码,此代码使用 System.ServiceModel.ClientBase。

ServiceReference2.ExternalClient t = new ServiceReference2.ExternalClient ();
            t.Endpoint.Binding.CloseTimeout = new TimeSpan(500, 0, 0);
            t.Endpoint.Binding.SendTimeout = new TimeSpan(500, 0, 0);
            t.Endpoint.Binding.ReceiveTimeout = new TimeSpan(500, 50, 0);
            t.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None;
            t.ClientCredentials.UserName.UserName = txtUserName.Text;
            t.ClientCredentials.UserName.Password = txtPassword.Text;
            string ds = t.GetTransfer(txtDate.Text);

我测试了 nusoap 和 soapclient,但我收到了错误消息(错误的请求或错误获取 http 标头)。

我的问题与WSSE PHP SOAP Client Header 函数调用和我的 WSDL 类似WSDL

4

0 回答 0