使用ExtJS、SOAP和JavaScript的SOAP web服务客户端

使用ExtJS、SOAP和JavaScript的SOAP web服务客户端,extjs,soap,Extjs,Soap,我用WildFly实现了SOAP web服务。端点接口的调用成功。下面的url返回正确的结果 但是extjssoap客户端根本不工作。这些是我的ExtJS soap客户端代码 Ext.define('Member', { extend: 'Ext.data.Model', fields : [{ name : 'id', type : 'string' }, { name : 'passwd', type

我用WildFly实现了SOAP web服务。端点接口的调用成功。下面的url返回正确的结果

但是extjssoap客户端根本不工作。这些是我的ExtJS soap客户端代码

Ext.define('Member', {
    extend: 'Ext.data.Model',
    fields : [{
        name : 'id',
        type : 'string'
    }, {
        name : 'passwd',
        type : 'string'
    }, {
        name : 'age',
        type : 'int'
    }, {
        name : 'name',
        type : 'string'
    }]
});

Ext.onReady(function () {

    var family = Ext.create('Ext.data.Store' , {

        model : 'Member',
        autoLoad : true,
        proxy: {
            type: 'soap',
            url: 'SOAPJaxbWeb/',
            api: {
                read: 'ICallMemberPort'
            },
            soapAction: {
                read: 'http://localhost:8080/SOAPJaxbWeb/?operation=ICallMemberPort'
            },
            operationParam: 'ICallMemberPort',
            targetNamespace: 'http://www.aaa.com/',
            reader: {
                type: 'soap',
                record: 'ns|return',
                namespace: 'ns'
            },
            exception: function(proxy, response, operation){
                Ext.MessageBox.show({
                    title: 'REMOTE EXCEPTION',
                    msg: operation.getError(),
                    icon: Ext.MessageBox.ERROR,
                    buttons: Ext.Msg.OK
                });
            }
        },

        listeners: {
            load: function(family, operation, success) {
                if(success) {
                    alert('response : ' + family.model.length)
                } else {
                    alert('it failed')
                }
            }
        }

    });

    var onButtonClick = function() {
        Ext.Msg.alert(Ext.getCmp('myid').getValue())
        family.load()
    };
恐怕上面的ExtJS soap配置是错误的。执行时,不会显示任何内容

代理:soap

注意:此功能仅在购买Sencha Complete后可用。有关使用此类的更多信息,请访问我们的Sencha完整产品页面