Results 1 to 6 of 6

Thread: ExtJS SOAP Services does not work.

  1. #1
    Sencha User
    Join Date
    Dec 2015
    Posts
    7

    Default Answered: ExtJS SOAP Services does not work.

    I try to implement ExtJS soap client js. First I made jsp code like below

    CallMemberBeanService service = new CallMemberBeanService();
    ICallMemberPort port = service.getCallMemberBeanPort();
    out.println("Name : " + port.getMember("julian").getName());

    This client reply successfully. And wsdl files can be seen with the url

    http://localhost:8080/SOAPJaxbWeb/CallMemberBean?wsdl

    But ExtJS client throws nothing. The ExtJS codes are

    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: 'CallMemberBeanService/',
    api: {
    read: 'ICallMemberPort'
    },
    soapAction: {
    read: 'http://localhost:8080/SOAPJaxbWeb/ICallMemberPort'
    },
    operationParam: 'operation',
    targetNamespace: 'http://www.aaa.com/',
    reader: {
    type: 'soap',
    record: 'ns|return',
    namespace: 'ns'
    }
    },
    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()
    };
    .....

    I have no idea which configuration is wrong. I am newbie in ExtJS. Your advice is deeply appreciate. Thanks

  2. Do you see any errors on the server side? It sounds like your server script doesn't have a method called CallMemberPort. Can you confirm that it does?

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    With which specific version of Ext JS are you working?

  4. #3
    Sencha User
    Join Date
    Dec 2015
    Posts
    7

    Default ExtJS 5.1

    Thank you for your reply. I use ExtJS 5.1

  5. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Are you seeing any errors or warnings to the console?

  6. #5
    Sencha User
    Join Date
    Dec 2015
    Posts
    7

    Default

    I changed a few codes of ExtJS file like below 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 : 'operation', targetNamespace : 'http://www.aaa.com/', reader : { type : 'soap', record : 'ns|return', namespace : 'ns' }, exception: function(proxy, response, operation){ Then the code throws the following exception, POST http://localhost:8080/SOAPJaxbWeb/SO...CallMemberPort 405 (Method Not Allowed)

  7. #6
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Do you see any errors on the server side? It sounds like your server script doesn't have a method called CallMemberPort. Can you confirm that it does?

Similar Threads

  1. SOAP Proxy with non-CRUD services
    By fermat in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 28 Feb 2014, 8:27 AM
  2. Integration with SOAP based web services
    By MridulMishra in forum Ext: Q&A
    Replies: 1
    Last Post: 16 Sep 2012, 5:05 PM
  3. Extjs JSON-RPC or Soap?
    By codemonkey in forum Community Discussion
    Replies: 4
    Last Post: 5 Feb 2009, 9:50 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •