我在php中调用Web服务时遇到问题,这是用c#语言编写的Web服务。 我在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 function call和我的WSDL WSDL
相同