1. #11
    Ext User
    Join Date
    Dec 2007
    Location
    italy
    Posts
    120
    Vote Rating
    0
    tarini is on a distinguished road

      0  

    Default


    Quote Originally Posted by Choleriker View Post
    Yes its strange But for me its strange why to change the http requests byself. Why dont let it like it is and change only the content to send and the handling after recive?
    maybe I can create a SoapProxy that creates two connection, for WSDL and for SOAP request, using <<standard>> Ext.data.Connection

    but in this way all the code is in the proxy .js file

    this evening I'll try this approach...

    stay tuned

  2. #12
    Ext User
    Join Date
    Jan 2008
    Location
    Paris (Les Lilas)
    Posts
    4
    Vote Rating
    0
    Hadrien is on a distinguished road

      0  

    Default Only mozilla.

    Only mozilla.


    Quote Originally Posted by Choleriker View Post
    Your extension only works in FF, but not in IE7 (XP).
    Yes, SOAP and WSDL API are only availble on mozilla based browser.

  3. #13
    Ext User
    Join Date
    Dec 2007
    Location
    italy
    Posts
    120
    Vote Rating
    0
    tarini is on a distinguished road

      0  

    Default


    Quote Originally Posted by Hadrien View Post
    Yes, SOAP and WSDL API are only availble on mozilla based browser.
    yes, but in my extension i DON'T use some specific API...
    just simple xml parsing with DOM method

  4. #14
    Ext User
    Join Date
    Jan 2008
    Location
    Paris (Les Lilas)
    Posts
    4
    Vote Rating
    0
    Hadrien is on a distinguished road

      0  

    Default


    Quote Originally Posted by tarini View Post
    yes, but in my extension i DON'T use some specific API...
    just simple xml parsing with DOM method
    Yes... but your-extension-witch-does'nt-use-some-specific-API DO NOT parse wsdl file to know if the SOAP message is valid, because SOAPClient does'nt check anything from the wsdl exept the name spaces (with a limit of one), the customs types, and because it use DOM, that it is well formed.. It does'nt event test if the method is in the wsdl...

    And unluckily (or not), my firt test of your one fail because of a name space problem.

    So, it's just an helper class for SOAP messages.

    You upset me. But it's okay, I'll work on this by myself.

    Good luck.
    Last edited by Hadrien; 22 Jan 2008 at 4:37 PM. Reason: grammar.

  5. #15
    Ext User
    Join Date
    Dec 2007
    Location
    italy
    Posts
    120
    Vote Rating
    0
    tarini is on a distinguished road

      0  

    Default


    Yesterday i thinked about a new extension structure and this is the result:
    - a Ext.ux.soap.WsdlContainer (a static class that manages wsdl request, cache and parsing (just types and namespaces ))
    - a Ext.ux.soap.SoapProxy (a DataProxy that opens a connection (using Ext.Ajax), parses result using a reader and calls a user-defined callback passing the parsed object)
    - a Ext.us.soap.SoapReader (a DataReader that parses SOAP response in a json object and passes it to a JsonReader to parse with a recordType)


    what do you think?
    biggest problem is to understand SOAP protocol and messages (for example usage of namespaces) and not only my CXF-implementation

  6. #16
    Ext User
    Join Date
    Dec 2007
    Location
    italy
    Posts
    120
    Vote Rating
    0
    tarini is on a distinguished road

      0  

    Default


    I attached my first version of this new SoapPackage...
    zip file included 3 file explained in my previous post

    i think there will be some namespace problems because this extension is actually optimized for my web service implementation
    Attached Files

  7. #17
    Ext User
    Join Date
    Aug 2007
    Posts
    119
    Vote Rating
    0
    sierk is on a distinguished road

      0  

    Thumbs up


    I like what you created but have some problems with understanding your Italian comments in your new solution. Would it be possible to give a translation or a example how to use the new version.

    Sierk

  8. #18
    Ext User
    Join Date
    Feb 2008
    Posts
    4
    Vote Rating
    0
    dolfelt is on a distinguished road

      0  

    Default


    I am trying to use this to connect to a SOAP database that used object oriented functions. I am fairly new to SOAP, so bear with me.
    PHP Code:
    <?
    try {
    $client = new SoapClient(NULL,
    array(
    "location"=>"http://some.server.com/MRcgi/MRWebServices.pl",
    "uri"=>"MRWebServices",
    "style"=>SOAP_RPC,
    "use" => SOAP_ENCODED
    )
    );
    $issues $client->MRWebServices__search("WebServices",'myPassword','',
    "select mrID, mrTITLE from MASTER99 WHERE lower(mrTITLE) LIKE 'test%'");
    print 
    "<BR><b> Search:<hr><br>\n";
    print 
    "<pre>";
    print_r($issues);
    print
    "</pre><br>\n";
    } catch (
    SoapFault $exception) {
    print 
    "ERROR! - Got a SOAP exception:<br>";
    echo 
    $exception;
    }
    ?>
    I need to convert this working method into Javascript. Here is what I have tried:
    PHP Code:
                var MRWebServices__search = new Object();
                
    MRWebServices__search.userid 'webservice';
                
    MRWebServices__search.password '1234';
                
    MRWebServices__search.extraInfo '';
                
    MRWebServices__search.query "SELECT mrid,mrtitle,mrsubmitdate FROM MASTER9 WHERE mrref_to_mr LIKE '%R%' AND mrstatus<>'Closed' ORDER BY mrsubmitdate DESC";
                var 
    = {
                  
    url "http://footprints.wheaton.edu/MRcgi/MRWebServices.pl",
                  
    method "MRWebServices__search"
                  
    /*param : ['webservice','all4114all','',"SELECT mrid,mrtitle,mrsubmitdate FROM MASTER9 WHERE mrref_to_mr LIKE '%R%' AND mrstatus<>'Closed' ORDER BY mrsubmitdate DESC"]
                  scope : 'uri:MRWebServices'*/
                
    }
                var 
    proxy = new Ext.data.SoapProxy(o);
                            
                var 
    reader = new Ext.data.SoapReader({
                  
    id:'mr'
                
    }, ['mrtitle','mrsubmitdate']);
                
                var 
    store = new Ext.data.Store({
                  
    proxyproxy,
                  
    readerreader
                
    });
                            
                
    store.load(); 
    As you can see from my commented out lines that I have also tried the param: variable to pass the needed variables by the MRWebServices__search method. Either way, I get a null value somewhere in the SoapClient.js script.

    Basically I need a way to call the MRWebServices__search with those 4 variables.

    Please help! Thanks.

  9. #19
    Ext User
    Join Date
    Aug 2007
    Posts
    119
    Vote Rating
    0
    sierk is on a distinguished road

      0  

    Default Working demo [UPDATE]

    Working demo [UPDATE]


    Hi,

    We had also some problems getting an example to work and had to make some changes to the original code. I provided our changed code including example and webproxy.

    We had some problems in the first release. So we changed the code and added a demo.

    Hopes this helps

    Sierk

    PHP Code:
     /** 
       Include Ext.ux.Soap.js in you main page
       Add the example code and change settings for your webservices.
       The namespace setting is needed for IE to parse wsdl: default (xs)
       
       We changed the code so it now supports a webservice proxy (ws_proxy.php) which
       enables us to call any webservice from Javascript by redirecting it through the proxy. when
       When proxy is not needed remove wsproxy as setting. 
     */  
     
     
    var = {
        
    wsproxy "http://localhost/webservice/ws_proxy.php",
        
    url "http://localhost/webservice/customer/index.php",
        
    disableCachingfalse,
        
    method "FindCustomer",
        namespace:
    'xs',
        
    params : {
          
    CustomerSearchCriteria : [{
            
    CustomerId 'Test'
          
    }]
        }
      }
      var 
    proxy = new Ext.ux.soap.SoapProxy(o);

      var 
    reader = new Ext.ux.soap.SoapReader(
        [
          {
    name:'lastname'mapping:'Customer.NaturalPersonDetails.LastName'},
          {
    name:'title'mapping:'Customer.NaturalPersonDetails.Title'},
          {
    name:'birthdate',mapping:'Customer.NaturalPersonDetails.BirthDate'}
        ]        
      );

      var 
    store = new Ext.data.Store({
        
    proxyproxy,
        
    readerreader
      
    });

      
    store.load(); 
    Attached Files
    Last edited by sierk; 5 Mar 2008 at 11:24 PM. Reason: Version 1.1 including demo

  10. #20
    Sencha User
    Join Date
    Jan 2008
    Posts
    52
    Vote Rating
    0
    egobits is on a distinguished road

      0  

    Default


    Hi Sierk,
    i tried to use your code with my settings:

    var o = {
    url : "http://e3virt002:8080/Viajes?WSDL",
    method : "ListaViajes",
    disableCaching: false,
    namespace:'xs',
    params : {
    CustomerSearchCriteria : [{
    vCod_Cabecera : '6',
    vCod_Detalle : 'all',
    iXml : '0',
    vUsrC : 'sa'
    }]
    }
    }
    var proxy = new Ext.ux.soap.SoapProxy(o);
    var reader = new Ext.ux.soap.SoapReader(
    [
    {name:'Puerto', mapping:'row.Column5'},
    {name:'FArribo', mapping:'row.Column6'}
    ]
    );

    var store = new Ext.data.Store({
    proxy: proxy,
    reader: reader
    });

    store.load();
    The problem is that at the end of the page i am using:
    alert(store);
    and im getting "UNDEFINED".

    What could be wrong?

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi