.net 调用 java WebService 报异常
我做联通短信接口,对方提供wsdl文件,我在.net里面添加服务引用,在程序里面声明代理类,调用接口的sendsms()方法,代码都写好了,编译也通过了:Sms11611...
我做联通短信接口,对方提供wsdl文件,我在.net里面添加服务引用,在程序里面声明代理类,调用接口的sendsms()方法,代码都写好了,编译也通过了:
Sms116114Service.Sms116114ServicePortTypeClient client = new Sms116114Service.Sms116114ServicePortTypeClient(new BasicHttpBinding(), new EndpointAddress("http://134.203.70.28:17000/axis2/services/Sms116114Service?wsdl"));
string sIn = XmlConvertTo.Base64Code(sXml);
string sResult = client.sendsms(sIn);
可是在运行的时候报错,"Exception occurred while trying to invoke service method sendsms "
翻译成中文就是"在试图调用服务方法SENDSMS发生异常" ,请问是什么原因,很急~ 展开
Sms116114Service.Sms116114ServicePortTypeClient client = new Sms116114Service.Sms116114ServicePortTypeClient(new BasicHttpBinding(), new EndpointAddress("http://134.203.70.28:17000/axis2/services/Sms116114Service?wsdl"));
string sIn = XmlConvertTo.Base64Code(sXml);
string sResult = client.sendsms(sIn);
可是在运行的时候报错,"Exception occurred while trying to invoke service method sendsms "
翻译成中文就是"在试图调用服务方法SENDSMS发生异常" ,请问是什么原因,很急~ 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询