我在c#
中使用此wsdl服务http://ws.adpdigital.com/services/MessagingService?wsdl当我在Windows应用程序中运行它没关系,但当我将它作为Windows服务运行时给我一个错误
exception.message:
XML文档中存在错误(1,504)。
exception.trace:
在System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,String encodingStyle,XmlDeserializationEvents事件)
在System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,String encodingStyle)at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage 消息,WebResponse响应,流responseStream,布尔值 asyncCall)at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(字符串 methodName,Object [] parameters)at SendSmsToMagfa.com.adpdigital.ws.JaxRpcMessagingServiceService.report(字符串 userName,String password,String shortNumber,String fromClientId, String clientId,String fromId,String id,Int32 maxSize)at SendSmsToMagfa.SendSms.Send(String [] message,String [] mobile, String [] id,String [] port)at SendSmsService.SendSmsService.ServiceSmsMethod(Object sender, ElapsedEventArgs e)
我在.net 2和3以及3.5和4中检查了它,但所有这些都有错误
问题是什么?