【问题标题】:How to consume Soap Web Service in sencha touch 2?如何在 sencha touch 2 中使用 Soap Web Service?
【发布时间】:2015-02-19 17:43:20
【问题描述】:

我是 sencha touch 的新手,我想使用这样的 SOAP WS。

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <register_user soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <a xsi:type="xsd:string">?</a>
         <b xsi:type="xsd:string">?</b>
         <c xsi:type="xsd:string">?</c>
         <d xsi:type="xsd:string">?</d>
      </register_user>
   </soapenv:Body>
</soapenv:Envelope>

此应用程序将是 android 中的混合应用程序, 帮助!请。

【问题讨论】:

    标签: web-services extjs soap touch


    【解决方案1】:

    您可以通过执行以下操作在应用程序中填充您的商店:

    var store = Ext.create('Ext.data.Store', {
        autoLoad: true,
        model: 'MyModel',
        proxy: {
            type: 'ajax',
            url: 'myURL',
            reader: {
                type: 'xml',
                root: 'data'
            },
            writer: {
                type: 'json'
            }
        },
        listeners: {
    
            //[...]
    
        }
    });
    

    请参阅Ext.data.Store 了解更多信息。您还可以查看 Ext.data.RestProxy 进行 CRUD 操作。

    希望对你有帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多