Addresses (参数)   xsd:anyURI  [0..unbounded](类型)。 我用的是C#,这个是数组类型吗?我想让手机号包含这个参数里面   
WebReference.sendSmsRequest send = new WebReference.sendSmsRequest();
send.Addresses = ??? (???是我想要输入的手机号)  c#

解决方案 »

  1.   

    不是吧,这应该是webservice地址
      

  2.   

    send.smsSend(这里应该是手机号和短信内容等参数信息); //假设smsSend是webservice里的方法
      

  3.   

    应该是URI -- 统一资源定位符,一般是URL的数组This datatype corresponds normatively to the XLink href attribute. Its value space includes the URIs defined by RFCs 2396 and 2732, but its lexical space doesn't require the character escapes needed to include non-ASCII characters in a URIs.来自:
    http://books.xmlschemata.org/relaxng/ch19-77009.html
      

  4.   


    Addresses 是什么类型? URi[]还是String[]?
      

  5.   

    send.Addresses = new URI[]{new URI("http://www.contoso.com/index.htm#search"),new URI("http://www.contoso.com")};
      

  6.   


    文档里面写的是 URI[]  类型 但是我看了返回值是string[]类型!!!
      

  7.   


    啥叫返回值?你在代码里面光标移动到Addresses 上,按F12,就能看到定义了。
      

  8.   

    如果是string的话,可以啊。不过对方会接收吗?
    你可以试一试
    send.Addresses = new string[]{"111","222"};