1. #1
    Sencha Premium Member
    Join Date
    Jul 2013
    Posts
    3
    Vote Rating
    0
    nreddy@Euro is on a distinguished road

      0  

    Default SOAP webserive from architect.

    SOAP webserive from architect.


    Hi,

    I am very much new to the sencha architect. As part of my project we need to call java SOAP web service from the ExtJs using Sench Architect.

    I can see rest proxy in available proxies to call rest web services. but not soap proxy. in one threads people are suggesting to create a alias of the soap proxy by adding soap proxy as resource(http://www.sencha.com/forum/showthre...799-Soap-Proxy).

    I added soap proxy JavaScript file as resource. Created plain store and added Ajax proxy and changed Ajax proxy alias name to 'soap'.

    it is not behaving as soap proxy so not sending soap request. Getting error in tomcat console saying "org.apache.cxf.interceptor.Fault: No binding operation info while invoking unknown method with params unknown."

    My code snippet:

    Code:
    Ext.define('BNA4AllSAInterface.store.MyStore', {
        extend: 'Ext.data.Store',
    
        requires: [
            'BNA4AllSAInterface.model.Record'
        ],
    
        constructor: function(cfg) {
            var me = this;
            cfg = cfg || {};
            me.callParent([Ext.apply({
                autoLoad: true,
                model: 'BNA4AllSAInterface.model.Record',
                storeId: 'MyStore',
                proxy: {
                    type: 'soap',
                    soapAction: {
                        read: 'POST'
                    },
                    api: {
                        read: '/elinkService/elinkService/listServiceTypes'
                    },
                    url: 'http://localhost:8089/'
                }
            }, cfg)]);
        }
    });
    Any suggestions, solutions are highly appreciated.

    Thanks in advance!!!!
    Naren

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    first question is what soap proxy are you using?

    next are there any errors in the console when you run this code in the browser?
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2013
    Posts
    3
    Vote Rating
    0
    nreddy@Euro is on a distinguished road

      0  

    Default


    I have taken proxy.js, reader.js from the Complete-Trial and added as the resource reference.
    When I run the the application in tomcat console I am getting the above mentioned error.

  4. #4
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    Can I assume you've followed similar instructions to this: http://www.sencha.com/blog/taking-a-...oap-data-proxy
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  5. #5
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  6. #6
    Sencha Premium Member
    Join Date
    Jul 2013
    Posts
    3
    Vote Rating
    0
    nreddy@Euro is on a distinguished road

      0  

    Default


    Here I am listing things What I have done:


    1) In some posts I can see soap proxy has to be included as resource, I took the proxy.js, reader.js from the soap folder of the complete trial and added as resource in the project.
    2) created a plain store and ajax proxy and changed alias name to the 'soap'.
    3) please see my orginal post for the code I added.
    4) when I do a preview in browser, in tomcat console it is giving the error mentioned in my orginal post.

    Please let me know If I am missing some thing here.


    One thing I want to know is, can we see the sopaproxy listed in list of proxies available?

  7. #7
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    With Architect 3 we can add these things as Extensions and then you will see them in the toolbox and as a proxy choice.

    To fix the issue you're having now I believe you're configuring your soapAction incorrectly.

    Code:
    soapAction: {
                        read: 'POST'
                    },
    see example I posted ^^^ for correct usage.
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

Thread Participants: 1