如何为SyncML配置生成OTA SMS

如何为SyncML配置生成OTA SMS,sms,over-the-air,Sms,Over The Air,我需要生成并发送SyncML OTA短信。我有短信提供商,可以发送二进制短信。但我有点被OTA规范卡住了,如果你能告诉我以下任何一项,我会非常高兴: 一个开源工具,可以根据提供的某些属性生成OTA短信 关于如何制作OTA短信的好的概述或教程(OTA规范似乎根本不可读) 提前谢谢 看一看。它很老了,但我认为应该展示一下如何创建和发送OTA sms。您需要生成以下OMA-DP XML文档,并将其提交给您的服务提供商网关。您必须严格遵循手机将消息标识为配置消息的格式。另外,请联系您的服务提供商,询问他

我需要生成并发送SyncML OTA短信。我有短信提供商,可以发送二进制短信。但我有点被OTA规范卡住了,如果你能告诉我以下任何一项,我会非常高兴:

  • 一个开源工具,可以根据提供的某些属性生成OTA短信
  • 关于如何制作OTA短信的好的概述或教程(OTA规范似乎根本不可读)

  • 提前谢谢

    看一看。它很老了,但我认为应该展示一下如何创建和发送OTA sms。

    您需要生成以下OMA-DP XML文档,并将其提交给您的服务提供商网关。您必须严格遵循手机将消息标识为配置消息的格式。另外,请联系您的服务提供商,询问他们是否可以将XML提交即时转换为SMS。他们需要将XML编码为WBXML,然后以PDU模式转发消息

    <?xml version="1.0" encoding="utf-8"?>
    <wap-provisioningdoc>
      <characteristic type="BOOTSTRAP">
        <parm name="NAME" value="SYNCSETTINGS" />
      </characteristic>
      <characteristic type="APPLICATION">
        <parm name="APPID" value="w5" />
        <parm name="TO-NAPID" value="INTERNET" />
        <parm name="NAME" value="SYNCSETTINGS" />
        <parm name="ADDR" value="http://syncserver/sync" />
        <characteristic type="RESOURCE">
          <parm name="URI" value="pb" />
          <parm name="NAME" value="Contacts DB" />
          <parm name="AACCEPT" value="text/x-vcard" />
        </characteristic>
        <characteristic type="RESOURCE">
          <parm name="URI" value="cal" />
          <parm name="NAME" value="Calendar DB" />
          <parm name="AACCEPT" value="text/x-vcalendar" />
        </characteristic>
        <characteristic type="RESOURCE">
          <parm name="URI" value="notes" />
          <parm name="NAME" value="Notes DB" />
          <parm name="AACCEPT" value="text/plain" />
        </characteristic>
        <characteristic type="APPAUTH">
          <parm name="AAUTHNAME" value="username" />
          <parm name="AAUTHSECRET" value="password" />
        </characteristic>
      </characteristic>
    </wap-provisioningdoc>
    
    [PS:相信我,这可以通过 还有GSM调制解调器!]


    这不应该是一个社区维基问题。
    public string CreateOTAXmlFile(string Username, string Password)
        {
            var ota = new XDocument(
                        new XElement("wap-provisioningdoc",
                            new XElement("characteristic", new XAttribute("type", "BOOTSTRAP"),
                                new XElement("parm", new XAttribute("name", "NAME"), new XAttribute("value", "SYNCSETTINGS"))
                                        ),
                            new XElement("characteristic", new XAttribute("type", "APPLICATION"),
                                new XElement("parm", new XAttribute("name", "APPID"), new XAttribute("value", "w5")),
                                new XElement("parm", new XAttribute("name", "TO-NAPID"), new XAttribute("value", "INTERNET")),
                                new XElement("parm", new XAttribute("name", "NAME"), new XAttribute("value", "SYNCSETTINGS")),
                                new XElement("parm", new XAttribute("name", "ADDR"), new XAttribute("value", "http://syncserver/sync")),
                                new XElement("characteristic", new XAttribute("type", "RESOURCE"),
                                    new XElement("parm", new XAttribute("name", "URI"), new XAttribute("value", "pb")),
                                    new XElement("parm", new XAttribute("name", "NAME"), new XAttribute("value", "Contacts DB")),
                                    new XElement("parm", new XAttribute("name", "AACCEPT"), new XAttribute("value", "text/x-vcard"))
                                            ),
                                new XElement("characteristic", new XAttribute("type", "RESOURCE"),
                                    new XElement("parm", new XAttribute("name", "URI"), new XAttribute("value", "cal")),
                                    new XElement("parm", new XAttribute("name", "NAME"), new XAttribute("value", "Calendar DB")),
                                    new XElement("parm", new XAttribute("name", "AACCEPT"), new XAttribute("value", "text/x-vcalendar"))
                                            ),
                                new XElement("characteristic", new XAttribute("type", "RESOURCE"),
                                    new XElement("parm", new XAttribute("name", "URI"), new XAttribute("value", "notes")),
                                    new XElement("parm", new XAttribute("name", "NAME"), new XAttribute("value", "Notes DB")),
                                    new XElement("parm", new XAttribute("name", "AACCEPT"), new XAttribute("value", "text/plain"))
                                            ),
                                new XElement("characteristic", new XAttribute("type", "APPAUTH"),
                                    new XElement("parm", new XAttribute("name", "AAUTHNAME"), new XAttribute("value", Username)),
                                    new XElement("parm", new XAttribute("name", "AAUTHSECRET"), new XAttribute("value", Password))
                                            )
                                        )
                                    )
                                );
            
            ota.Save(Server.MapPath("~/OTA/") + Username + ".xml");
            return (ota.ToString());
    
        }