解决方案 »

  1.   

    http://www.smschinese.cn/
      

  2.   

    顺便发一下接口地址http://www.my.jituanyun.com/MasService.asmx
      

  3.   

    我们这已经买了移动MAS2.0了。不再使用第三方服务了
      

  4.   

    ArgumentError
    Destination addresses is null or empty
    这句提示是移动服务器那边返回给你的还是你本地的代码提示的?
      

  5.   

    这是他们定义的接口标准

    SendSms测试
    测试窗体只能用于来自本地计算机的请求。
    SOAP 1.1以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
    POST /MasService.asmx HTTP/1.1
    Host: www.my.jituanyun.com
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://www.jituanyun.com/SendSms"<?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <SendSms xmlns="http://www.jituanyun.com/">
          <userName>string</userName>
          <password>string</password>
          <destAddr>
            <string>string</string>
            <string>string</string>
          </destAddr>
          <content>string</content>
          <ext>string</ext>
        </SendSms>
      </soap:Body>
    </soap:Envelope>
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length<?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <SendSmsResponse xmlns="http://www.jituanyun.com/">
          <SendSmsResult>
            <ErrorCode>Success or AuthenticiationFailed or BadKeywords or InsufficientBalance or BatchSizeTooLarge or ArgumentError or BadRequest or ServiceUnavailable</ErrorCode>
            <ErrorMessage>string</ErrorMessage>
            <RequestIdentifier>string</RequestIdentifier>
          </SendSmsResult>
        </SendSmsResponse>
      </soap:Body>
    </soap:Envelope>
    SOAP 1.2以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。POST /MasService.asmx HTTP/1.1
    Host: www.my.jituanyun.com
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: length<?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
      <soap12:Body>
        <SendSms xmlns="http://www.jituanyun.com/">
          <userName>string</userName>
          <password>string</password>
          <destAddr>
            <string>string</string>
            <string>string</string>
          </destAddr>
          <content>string</content>
          <ext>string</ext>
        </SendSms>
      </soap12:Body>
    </soap12:Envelope>
    HTTP/1.1 200 OK
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: length<?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
      <soap12:Body>
        <SendSmsResponse xmlns="http://www.jituanyun.com/">
          <SendSmsResult>
            <ErrorCode>Success or AuthenticiationFailed or BadKeywords or InsufficientBalance or BatchSizeTooLarge or ArgumentError or BadRequest or ServiceUnavailable</ErrorCode>
            <ErrorMessage>string</ErrorMessage>
            <RequestIdentifier>string</RequestIdentifier>
          </SendSmsResult>
        </SendSmsResponse>
      </soap12:Body>
    </soap12:Envelope>
      

  6.   

    应该是LZ把参数填错了destAddr 这个理论上应该是  ArrayOfString ,LZ尽量使用引用webservices 本身的数据类型另外就是mas理论上是sp直连行业网关(短信网关)