Web Service SOAP returned XML data are unreadable

Hello

I hope someone with some experience of SOAP could help me find a solution for which XML data coming out of a Web Service (SAP production) are illegible.

In the attached file is the Web Service response, and as you can see in the header of the request is OK. (request to pass a serialized PCB of a 'tail' to 'work'). Request is successful (I manually check by directly connecting the SAP web service and check), but also the data on the printed circuit should be returned (edge stock code, etc...).

My request and response with the XML data returned works very well in SoapUI.

Any help would be appreciated.

Darin.K wrote:

I agree with Phillip (except that you want to "inflate" the payload).  You can simply post a VI with full response defined as default in a string control/indicator and I am betting we could get it sorted.

Thanks Darin, I think acompress and after reading an article google re: SAP NetWeaver, who used the terms inflate and deflate, I confused my prefixes. I also regularly exchange numbers when transcribing the long numbers. Dyslexic, I am.

JonnyR - please use the uncompress function I've included on the same link as soon as possible. You will need to remove the header HTML of the string portion. If you do not, unzip it will interpret the header as compressed data and you will get jumbled as output data.

Tags: NI Software

Similar Questions

  • Programmatically control a Web Service (SOAP/REST) data control

    Hello

    I'm relatively new to JDeveloper and I need help. Asked me to create a JAX - WS, who will be used in an Oracle DB procedures. It works very well. The problem is that the JAX - WS needs to communicate with a web 3rd party service that is rpc/encoded so I am not able to use the Proxy Client of Service Web JDeveloper, as it will not accept this type of web service.

    I would like to know if I could use the JDeveloper to create a Web Service (SOAP/REST) data control that points to 3rd party encoding/rpc, how could I call this my JAX - WS DataControl to execute the methods available in the DataControl programmatically?

    Or is there another solution that would allow the JAX - WS to use the RPC/Encoded Web Service?

    Thank you

    Daniel

    http://docs.Oracle.com/CD/E37975_01/doc.111240/e24475/amxwebservices.htm

  • Web service PLSQL returning multiple records

    Hello

    I am creating a web service using oracle 11 g, which should be able to return multiple records.

    Based on the code and the advice of the samples found on the internet, here is my code:

    CREATE OR REPLACE TYPE test_rec is OBJECT (
        s_nume_adre                    NUMBER ,
        c_eta_civi                     VARCHAR2(4 BYTE),
        l_nom1_comp                    VARCHAR2(40 BYTE),
        l_nom2_comp                    VARCHAR2(40 BYTE),
        l_nom3_comp                    VARCHAR2(40 BYTE),
        l_pren_comp                    VARCHAR2(30 BYTE),
        d_date_nais                    DATE);
    
    
    CREATE OR REPLACE TYPE test_array AS TABLE OF test_rec;
    */
    
    CREATE OR REPLACE PACKAGE test_pkg AS
      function get_rows(snume_adre in number) return test_array;
    END;
    /
    
    CREATE OR REPLACE PACKAGE BODY test_pkg AS
      function get_rows(snume_adre in number) return test_array is
        v_rtn   test_array := test_array(null);
        v_first boolean := true;
    
        cursor c_get_rows(snume_adre in number) is
          SELECT a.s_nume_adre,
                 nvl(a.c_eta_civi, '') c_eta_civi,
                 nvl(a.l_nom1_comp, '') l_nom1_comp,
                 nvl(a.l_nom2_comp, '') l_nom2_comp,
                 nvl(a.l_nom3_comp, '') l_nom3_comp,
                 nvl(a.l_pren_comp, '') l_pren_comp,
                 nvl(a.d_date_nais, to_date('01.01.1900', 'dd.mm.yyyy')) d_date_nais
        FROM bro.z45 a
      where a.s_nume_adre = snume_adre or snume_adre is null;
    
      begin
       
        for rec in c_get_rows(snume_adre) loop
          if v_first then
            v_first := false;
          else
            v_rtn.extend;
          end if;
       
        v_rtn(v_rtn.last) := test_rec(rec.s_nume_adre, rec.c_eta_civi, rec.l_nom1_comp, rec.l_nom2_comp,
                                    rec.l_nom3_comp, rec.l_pren_comp, rec.d_date_nais);
        end loop;   
    
        return v_rtn;
      end;
    END;
    /
    
    --select * from table (test_pkg.get_rows(null));
    
    
    

    I am able to retrieve data using select.

    However, when I try to access its wsdl I get an error:

    < envelope soap: >

    < soap: Body >

    < soap: Fault >

    Client: soap < faultcode > < / faultcode >

    entry processing < faultstring > error < / faultstring >

    < detail >

    < OracleErrors > < / OracleErrors >

    < / details >

    < / soap fault: >

    < / soap: Body >

    < / envelope soap: >

    -- -------------------------------------------------------------------------------------------------------------

    If I comment the function call in the package declaration I get a "correct": wsdl

    -- -------------------------------------------------------------------------------------------------------------

    " < name definitions = targetNamespace"GET_ROWS"=" http://xmlns.Oracle.com/orawsv/test/TEST_PKG/GET_ROWS "xmlns =" http://schemas.xmlsoap.org/wsdl/ "xmlns:tns =" http://xmlns.Oracle.com/orawsv/test/TEST_PKG/GET_ROWS "container =" http://www.w3.org/2001/XMLSchema "xmlns:soap =" http://schemas.xmlsoap.org/wsdl/SOAP/ "> " ""

    < types >

    " < xsd: Schema targetNamespace = ' http://xmlns.Oracle.com/orawsv/test/TEST_PKG/GET_ROWS "elementFormDefault ="qualified"> "

    < xsd: element name = "GET_ROWSInput" >

    < xsd: complexType >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "GET_ROWSOutput" >

    < xsd: complexType >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    < / types >

    < name of message = "GET_ROWSInputMessage" >

    < name of part = "parameters" element = "tns:GET_ROWSInput" / >

    < / message >

    < name of message = "GET_ROWSOutputMessage" >

    < name of part = "parameters" element = "tns:GET_ROWSOutput" / >

    < / message >

    < portType name = "GET_ROWSPortType" >

    < operation name = "GET_ROWS" >

    < input message = "tns:GET_ROWSInputMessage" / >

    < output message = "tns:GET_ROWSOutputMessage" / >

    < / operation >

    < / portType >

    < connection name = "GET_ROWSBinding" type = "tns:GET_ROWSPortType" >

    " < style: soap = transport = 'document' binding ' http://schemas.xmlsoap.org/SOAP/HTTP "/>

    < operation name = "GET_ROWS" >

    < soap: operation soapAction = "GET_ROWS" / >

    < input >

    < soap body parts: = 'settings' use = "literal" / >

    < / Entry >

    < output >

    < soap body parts: = 'settings' use = "literal" / >

    < / output >

    < / operation >

    < / binding >

    < service name = "GET_ROWSService" >

    < documentation > Oracle Web Service < / documentation >

    < name of port = "GET_ROWSPort" binding = "tns:GET_ROWSBinding" >

    " < soap: address location = ' http://server.domain.ch:8080 / orawsv/TEST/TEST_PKG/GET_ROWS "/>

    < / port >

    < / service >

    < / definitions >

    -- -------------------------------------------------------------------------------------------------------------

    Any suspicion that how create and access pl sql web service returning multiple lines?

    I use java not and do not have access to tools such as JDeveloper.

    Thank you!

    The real problem is that collection types are not supported for the return parameters.

    The solution is to wrap the collection into another object.

    Here is an example of work based on your settings:

    CREATE OR REPLACE TYPE test_rec is OBJECT (
      empno  number(4)
    , ename  varchar2(10)
    , hiredate date
    );
    /
    
    CREATE OR REPLACE TYPE test_array AS TABLE OF test_rec;
    /  
    
    CREATE OR REPLACE TYPE test_array_wrapper is OBJECT ( arr test_array );
    /
    
    CREATE OR REPLACE PACKAGE test_pkg AS
      function get_rows(p_deptno in number) return test_array_wrapper;
    END;
    /  
    
    CREATE OR REPLACE PACKAGE BODY test_pkg AS
      function get_rows(p_deptno in number) return test_array_wrapper is
        results  test_array;
      begin  
    
        select test_rec(empno, ename, hiredate)
        bulk collect into results
        from scott.emp
        where deptno = p_deptno;     
    
        return test_array_wrapper(results);
      end;
    END;
    /
    

    The wsdl is then generated correctly:

    SQL> select httpuritype('http://DEV:dev@localhost:8080/orawsv/DEV/TEST_PKG/GET_ROWS?wsdl').getxml() from dual;
    
    HTTPURITYPE('HTTP://DEV:DEV@LOCALHOST:8080/ORAWSV/DEV/TEST_PKG/GET_ROWS?WSDL').GETXML()
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
      
        
          
            
              
                
              
            
          
          
            
              
                
              
            
          
          
            
              
                
                  
                    
                      
                        
                          
                        
                      
                    
                  
                
              
            
          
          
            
              
              
                
                  
                    
                  
                
              
              
            
          
        
      
      
        
      
      
        
      
      
        
          
          
        
      
      
        
        
          
          
            
          
          
            
          
        
      
      
        Oracle Web Service
        
          
        
      
    
    
  • Web service SOAP of the access of LabView?

    I like to connect to a service-based SOAP from my code Labview (PC), or at least to understand if it is possible and how it will be.

    Just googling "Labview SOAP" gives a few hits, so it seems that people do, but I've found any way white paper or examples yet.

    Can someone ligh to the top of my darkness on SOAP web services and Labview?

    I also understand that web services is often described in wsdl (web service description language) files. A wsdl file completely describes a feature of web services, and in some languages, you can import such a file and say "give me the skeleton code to access this web service. Can do something like this in Labview?

    OLA (Just installed LV2015)

    Thank you Sam!

    It was the last piece that I needed! Now it works!

    I got the url, headers and body of the SoapUI test case as in my previous post. See the photos and the attachment.

    That means this vi:

    She calls the web service GuestManagementService on my local server (see url)

    It performs the getGuestDetails of action SOAP (see header)

    The guestName is Ola4 (see the body)

    In the body of the result, you can find (with difficulty)

    address = the nest, Norrland

    age = 467

    name = Ola4

    Totally cool! But a lot of work for a simple database search.

    Thanks for all the help.

    My next step is to understand what labview tools exist to help me create and manipulate xml files, but that's for next week.

  • How to use the web service to update the data?

    Hi team,

    Need help in establishing a procedure for updating data using the web service, in the first instance, I think that it's the same reading webservice but I will produce an error:

    29273 00000 - "the HTTP request failed.

    * Cause: The UTL_HTTP package cannot run the HTTP request.

    * Action: Use get_detailed_sqlerrm to check the detailed error message.

    Correct the error and restart the HTTP request.

    using this tag soap_request.

    < ns1:Request >

    < ns1:header >

    < ns1:InterfaceName > OSMMVNECreateOrder < / ns1:InterfaceName >

    < ns1:InterfaceId > OSM - XXX < / ns1:InterfaceId >

    < ns1:CorrelationId > TEST-06262015 < / ns1:CorrelationId >

    < / ns1:header >

    < ns1:Mvno > MTI < / ns1:Mvno >

    < ns1:orderId > < / ns1:orderId >

    < ns1:orderType > CHANGE_STATUS < / ns1:orderType >

    < ns1:orderDetails >

    < ns1:subscriberId > 9469273 < / ns1:subscriberId >

    < ns1:newStatusId > 2 < / ns1:newStatusId >

    < / ns1:orderDetails >

    < / ns1:Request >

    the < ns1:subscriberId > 9469273 < / ns1:subscriberId > the Subscriber must search and

    < ns1:newStatusId > 2 < / ns1:newStatusId > will replace the current state.



    any suggestion on how to do it?



    Best regards

    Nelz Ki

    There is no difference between calling a web service to write data, against the appellant for reading data. SOAP is SOAP. He cares not.

    Example to interact with a web service is in Re: PLSQL webservice call

    Regarding your error - stack display Tower full of error to see what said the trace of the error. The data you've posted unfortunately no sense to isolate the error.

  • Web service / SOAP encoding error

    Hello

    I'm trying to access a .net Web service from a flex client and I get the error shows

    [CPP faultString = error "" Error #1009: cannot access a property or method of an object. null reference "faultCode ="EncodingError"faultDetail ="null""]
    to mx.rpc.soap::Operation/ http://www.adobe.com/2006/flex/mx/internal:invokePendingCall () [C:\dev\enterprise_bali\fra meworks\mx\rpc\soap\Operation.as:582 ]
    to mx.rpc.soap::Operation/send() [C:\dev\enterprise_bali\frameworks\mx\rpc\soap\Operation.as: 492]
    function / http://adobe.com/AS3/2006/builtin::apply()
    at mx.rpc.soap.mxml::Operation/send () [C:\dev\enterprise_bali\frameworks\mx\rpc\soap\mxml\Ope ration.as:140]
    to WSTest2 / WSTest2:: send() [X:\Xp\workspace\MHDS\WSTest2.mxml:53]
    to WSTest2 / ___Button1_click () [X:\Xp\workspace\MHDS\WSTest2.mxml:85]


    =============

    This is the Web service that I used

    < mx:WebService id = "WS".
    showBusyCursor = "true".
    "WSDL =" http://XXXXXX.asmx?wsdl "

    result = "OnResult (Event)" >
    < mx:operation name = "GetPrices" resultFormat = "e4x" >
    < mx:request xmlns = "" >
    "< ask xmlns =" http://XXX/ "> "
    < RequestCriteria >
    <>criteria
    < id > 1 < /ID >
    < BeginDate xmlns = "" > 2007 - 01-01 T 00: 00:00 < / BeginDate >
    < EndDate xmlns = "" > 2007-10 - 10T 00: 00:00 < / EndDate >
    < / criteria >
    < / RequestCriteria >
    < / request >
    < / mx:request >
    < / mx:operation >

    I use another webservie located on the same server works perfectly.

    Can you give me a tip with this encoding problem


    Thanks for your help

    Stone

    Okay, I just sawmy error wrote that last post. I typed all my params in string of thats why I got this error in coding

    Thanks for your help (very much appreciated)

    Stone

  • XML data in the question text field

    LC ARE 8.2.1.3

    I have a web service that returns XML data and designer calls the Web service and the XML data meet a text field.  It works very well.

    My problem is getting the data out of the text field to fill in the various fields in my form.  I have done a lot of research and have tried many different things but still can't get out the data.  I did that my form is dynamic xml.

    This is the last thing I tried:

    -Begin Code-

    Place in testData: initialize and the connectionSet is placed in Page1:Initialize.

    var myXML = XMLData.parse (xmlData.rawValue, false);

    var subNames = XMLData.applyXPath (myXML, "//Subordinates/Subordinate/full_name");

    If (subNames == null) {}
    No data
    } Else if (subNames.length == null) {}
    No picture, just a single value
    topmostSubform.Page2.testData.addItem (subName.value);
    } else {}
    for (var i = 0; i < subNames.length; i ++) {}
    topmostSubform.Page2.testData.addItem (subName.item (i) .value);
    }
    }

    -Code of end-

    I worked on it for 3 days and still can not make it work.  The closest I came is out in my testData field that says "Object23485968".

    Thanks in advance for your help

    John

    I forgot the file ACL

    Paul

  • Spry, displaying xml data

    I tried to use spry on CS3 and I seized the spry region, then create a table but when I preview the page I get an error saying that there is a xml object error. I checked the xml code and it seems in good condition. There are small things that I would have missed out? It isn't really confussing me now

    Yes, that's the ticket.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    'David Powers' wrote in message
    News:f25c9i$QSA$1@forums. Macromedia.com...
    > Murray * ACE * has written:
    > Actually, no. My XML source is on a remote server. At least one of
    > what I put in the source - data field
    >>
    > http://<> address > / export.php
    >
    > It's probably because you're using a PHP script to serve the XML data.
    > This is directly inspired by the Spry documentation:
    >
    > ' The URL argument can be a relative or absolute URL to an XML file, or to.
    > a/application of web service that returns XML data. Users should be aware
    > loading XML data is subject to the browser's security model
    > which requires that any data you upload must come from the area where
    > the HTML page, running in the browser, came. Web developers
    > usually get around this limitation by having a script server-side who
    > can be called from the browser that can load URL in other areas. »
    >
    > http://labs.adobe.com/technologies/spry/articles/data_set_overview/
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    > Author, "PHP Solutions" (friends of ED)
    > http://foundationphp.com/

  • How to configure a web service primavera to return the data in the second database?

    Hello world


    We have P6 with WS first deployment on a single weblogic domain server. The first WS returns the first instance of database data.

    Then deployed to the WS second tip on a weblogic domain server separated with a different port. Set up the second WS with < WS2_INSTALL_HOME > / bin/dbconfig.sh, creating a new branch a configuration that specifies one second instance of the database. However, this configuration is ignored, and the second web services return data from the database.

    We have a single domain, including notably the following servers:

    Name / host / Port / deployments

    P6 / localhost / 0001 / P6 (v8.3), p6ws1 (v8.3)

    p6ws2 / localhost / 0002 / p6ws2 (v8.3)

    We have now two different files BREBootstrap.xml.

    P6 BREBootstrap.xml:

    < database >

    < URL > JDBC:Oracle:thin:@db1:1521:db1 < / URL >

    < user name > pubuser < / name >

    password <>anycriptopass1 < / password >

    oracle.jdbc.OracleDriver < driver > < / driver >

    < PublicGroupId > 1 < / PublicGroupId >

    < / data >

    < CfgVersion > 8.330 < / CfgVersion >

    <>configurations

    < name BRE = 'P6 Config_DB1"instances ="1"logDir ="anydir, P6EPPM, p6, PrimaveraLogs"/ >

    < / configuration >

    p6ws2 BREBootstrap.xml:

    < database >

    < URL > JDBC:Oracle:thin:@DB2:1521:DB2 < / URL >

    < user name > pubuser < / name >

    password <>anycriptopass2 < / password >

    oracle.jdbc.OracleDriver < driver > < / driver >

    < PublicGroupId > 1 < / PublicGroupId >

    < / data >

    < CfgVersion > 8.330 < / CfgVersion >

    <>configurations

    < name BRE = 'P6 Config_DB2"instances ="1"logDir ="anydir, P6EPPM, ws2, PrimaveraLogs"/ >

    < / configuration >

    "P6 Config_DB1" and "P6 Config_DB2" including the property database for the database 1 and 2 respectively.

    How to set up a second web service to return the data to the second database?


    Thanks in advance!


    Kind regards

    Dmitry

    So, answer oracle support:

    Looks like it is in the documentation, Web Services cannot be configured in this way as the other modules. See the following topics:

    BUG 19516437 - Is it POSSIBLE TO hardcode a DEPLOYMENT of SERVICES WEB P6 to an INSTANCE of DATABASE? (ask if this is possible)

    BUG 19579735 - FOR BEING ABLE to hardcode A P6 WEB SERVICES DEPLOYMENT to A DATABASE INSTANCE (corresponding improvement because it can be done).

    The problem has been resolved by the following:

    1 create the WebLogic domain.

    2 P6 and p6ws deployed on managed servers.

    3 configuration P6 uses the second instance of database and P6 has not begun.

    4 result: the p6ws (from additional domain WebLogic) returns data for the second instance of the database.

    Kind regards

    Dmitry

  • Can't get through the XML returned by the web service

    I'm using a .NET web service that returns the standard xml SOAP messages. After link "resultXML" to event.results [0], the variable displays its toString/toXMLString methods correctly and check the variable tree in the debugger displays the good exploration down. But browsing and/or variables affecting its children/descendants does not work properly. Variables are defined with the help of the. / operator or child/descendant methods are attached to something like XMLList(@8aa6701) without children and the toString methods return empty strings. I already tried to typecast between XML/XMLList and used methods of copy() with no results. Any suggestions?

    Found the answer to my own question. I needed to define and use the namespace defined in my SOAP message.

    http://livedocs.Adobe.com/Flex/3/HTML/data_access_6.html#194236

  • problems with the XML that is returned when you call a web service with CF11

    Hi, I ran into an unusual behavior when calling web services.

    I call a web service that returns an XML like this:

    < children >

    < child >

    John < firstname > < / name >

    DOE < name > < / lastname >

    < / child >

    < / children >

    during the call to the web service of CF10, it works fine. However, when the CF11, I don't get this:

    < child >

    John < firstname > < / name >

    DOE < name > < / lastname >

    < / child >


    no < child >? for some reason, CF11 ignores / hides the highest level XML. This does not happen on previous versions. Why? the server that hosts the web service's CF11 too.

    Report it as a bug in Coldfusion. In any case, I recommend making sure your web service returns a string, not an XML object.

    This is because a web service must be universal. Appellants to .NET, Java, PHP, ASP and so on, will interpret a chain exactly the same way. Whereas an object XML Coldfusion is a construction that is heard only in CFML.

    Your return string should also start with the XML declaration, like this

    John

    DOE

    So it is clear to the appellant in which brought the cat.

  • Exception during consumption of huge data from a web service.

    Hello

    I m developing an application to receive data from a Web Service and retain the data received on the device.

    App is developed for OS 4.3.0

    The Web Service call is made using Ksoap. The Code receives the data from the web service, analyzes the data and stores it in an object. This object is then persisted on the device. The data are essentially the coordinates. It takes the number of contacts required as input and passes it to the Web Service. The Web Service then returns the requested number of records

    The code works if I ask data of up to ~ 600 cases. If I specify more than 600 cases, it throws the following exception

    Chain rg.xmlpull.v1.XmlPullParserException:unexpected type (position: TEXT entity request in T...@1:24 in java.io.InputStreamReader@1f87d1b4)

    When I debugged using Eclipse, this exception is thrown on this statement ht.call (soapAction, envelope);

    Would it be because of a time-out? OT is because the Analyzer is not able to analyze huge data?

    Given that this exception occurs on the declaration of ht.call, I guess the problem is with the web service call and not with the code for persistent storage.

    I have included the code here... Is could someone please show me what the problem is?

    C ode to call Web Services

    public Vector getWebData(String count)
        {
    
       Vector personsVectorto = new Vector();
        try
        {
        StringBuffer receivedContent = new StringBuffer();
        String serviceUrl = "........";
        String serviceNamespace = ".....";
        String soapAction = ".........";
    
       SoapObject rpc = new SoapObject(serviceNamespace, "GetContactsList");
            //rpc.addProperty("listSize", "5");
            rpc.addProperty("listSize", count);
         SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    
            envelope.bodyOut = rpc;
    
            envelope.dotNet = true;
            envelope.encodingStyle = SoapSerializationEnvelope.XSD;
            HttpTransport ht = new HttpTransport(serviceUrl);
            ht.debug = true;
    
            ht.call(soapAction, envelope); // This is where thexmlpullparser exception occurs
    
     Object obj = envelope.getResponse();
            SoapObject soapResult = (SoapObject)obj;
    
                for(int i=0; i < soapResult.getPropertyCount(); i++)
    
                {
                  PersonDTO personto = new PersonDTO();
               SoapObject choice = (SoapObject)soapResult.getProperty(i);
                if( choice!=null)
                {
                    for(int j = 0; j < choice.getPropertyCount(); j++)
                    {
                      receivedContent.append(" Reading Property Number" + String.valueOf(j) + " Value = " + choice.getProperty(j).toString());
    
         if (j==0) personto.setElement(1,choice.getProperty(j).toString());
        if (j==1) personto.setElement(2,choice.getProperty(j).toString());
        if (j==2) personto.setElement(3,choice.getProperty(j).toString());
        if (j==3) personto.setElement(4,choice.getProperty(j).toString());
        if (j==4) personto.setElement(5,choice.getProperty(j).toString());
         if (j==5) personto.setElement(6,choice.getProperty(j).toString());
         if (j==6) personto.setElement(7,choice.getProperty(j).toString());
          if (j==7) personto.setElement(8,choice.getProperty(j).toString());
         if (j==8) personto.setElement(9,choice.getProperty(j).toString());
       if (j==9) personto.setElement(10,choice.getProperty(j).toString());
                    }
                }                 
    
                personsVectorto.addElement(personto);
                //storepersistentobject(personsVectorto);
            }
    
            }catch(org.xmlpull.v1.XmlPullParserException ex2)
            {
                String bah1 = ex2.toString();
                Dialog.alert("String: " + bah1);
                String bah2 = ex2.getMessage();
                Dialog.alert("Message: " + bah2); 
    
            }       
    
            catch(Exception ex){
                String bah = ex.toString();
                Dialog.alert("Response: " + bah);
    
                }
    
                return personsVectorto;
        }
    

    Thank you

    Hi Philippe,.

    First Question: Print server response

    Yes - I think for you too in fact just print the answer you'll have to do a regular HTTP call to the server and print it like this:

    StringBuffer sb = new StringBuffer();

    int thumb;

    HttpConnection httpConn = (HttpConnection) Connector.open (url);

    httpConn.setRequestMethod (HttpConnection.GET); or by POST depending on your needs

    in = httpConn.openInputStream ();

    While ((thumb = in.read ())! = - 1).

    {

    SB. Append ((Char) inCh);

    }

    System.out.println ("server response:" + sb.toString ());

    Try and see if you get a request too large entity. Note: you should probably put your SOAP request in GET or POST http request.

    Second Question: Is zipping required?

    This is how I chose to do for my particular needs that transfer me a large amount of data and the compression algorithm seems to keep all my data well below 40 k. However, it is not the only way, you could actually make several requests and get data piece by piece, but I don't know if it works well with SOAP responses. Depending on the type of Network Setup Blackberry you have, you can also set this limit to be higher (I think a maximum of 1 024 Ko for BES).

    Third Question: Timeout Logging

    For wait times, usually the exception you get should indicate that there was a timeout, but if you are suspicious that it's a timeout check your web service and see.

    Hope that helps!

    R

  • best way to get the web service XML JSON etc legacy database

    We have a bunch of old scientific databases for which we would like to expose data via an XML web service.  International XML schemas have been developed in the standards for the sharing of these data we need to provide the data in.  These patterns have very different data of our legacy data structures.  We want to leave our databases within the same structures but to expose the data in them in the XML schemas.

    Building SQL indications XMLFOREST SQL etc. that returns the XML doesn't seem very practical that the structures are very different and the SQL must be very very complex and would be very tedious to make and maintain.  Is there another way to make in the database?  There are tools outside the database such as who can help in that we used in the past and could be used again - but I had much rather that on the database if possible.

    Building SQL indications XMLFOREST SQL etc. that returns the XML doesn't seem very practical that the structures are very different and the SQL must be very very complex and would be very tedious to make and maintain.

    Using SQL/XML is the most flexible way to generate XML from relational data, as you have full control over what you do.

    If the target XML structure is complex, any method will be complex to implement completely in the database anyway.

    There is no tool integrated with Oracle that would take an XML schema and make the mapping with relational data.

    What you can do is a third-party tool allows to design a XSLT stylesheet that would take care of transforming an XML format canonical (easily created from the database of a query) in the target XML instance.

    In this way the complexity lies in the style sheet, and the real transformation could be made within the database.

  • Widget to the Web service, parsing XML

    I worked on the communication with my web services and back to my widget.

    By using the code below, I was able to perform a GET and repay the XML, but I can't find data where I expect it to be node-wise when parsing XML. I return an object with 3 variables attached to it. I expect to be child nodes 1, 2, and 3. They proved to be 1, 3 and 5 nodes.

    Any ideas on why or how? I feel I'm missing just a simple thing in all of this.

    XML response

    
    - http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
      1000
      Test Station
      105.285
      
    

    The widget code

    //****************** Ajax Logic ******************
    var xmlHttp;
    function getStationUpdate() {
    
        alert("in station update");
        xmlHttp = new XMLHttpRequest();
    
        var Posturl = "http://MachineIPGoesHERE:51107/Service1.asmx/HelloWorld2?";
        alert("after post url");
        xmlHttp.onreadystatechange = updateData;
        alert("after onReadyStateChange");
        xmlHttp.open("GET", Posturl, true);
        alert("after GET");
    
        xmlHttp.send(null);
    }
    
    function updateData() {
        if (xmlHttp.readyState == 4) {
            alert(xmlHttp.responseText);
            parser = new DOMParser();
            var xmlDoc = parser.parseFromString(xmlHttp.responseText, "text/xml");
    
            alert(xmlDoc.documentElement.childNodes[1].tagName + " " + xmlDoc.documentElement.childNodes[1].childNodes[0].nodeValue);
            //alert(xmlDoc.documentElement.childNodes[1].childNodes.length);
            //alert(xmlDoc.documentElement.childNodes[1].hasChildNodes());
            //alert(xmlDoc.documentElement.childNodes[2].hasChildNodes());
            //alert(xmlDoc.documentElement.childNodes[2].tagName + " " + xmlDoc.documentElement.childNodes[2].childNodes[0].nodeValue);
            alert(xmlDoc.documentElement.childNodes[3].tagName + " " + xmlDoc.documentElement.childNodes[3].childNodes[0].nodeValue);
            alert(xmlDoc.documentElement.childNodes[5].tagName + " " + xmlDoc.documentElement.childNodes[5].childNodes[0].nodeValue);
    
            alert(xmlDoc.documentElement.childNodes.length);
        }
    

    Web service

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Services;
    using System.Xml.Serialization;
    
    namespace WebService1
    {
        /// 
        /// Summary description for Service1
        /// 
        [WebService(Namespace = "http://tempuri.org/")]
        [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
        [System.ComponentModel.ToolboxItem(false)]
        // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
         [System.Web.Script.Services.ScriptService]
        public class Service1 : System.Web.Services.WebService
        {
    
            [WebMethod]
            public string HelloWorld()
            {
                return "Hello World";
            }
    
            [WebMethod]
            public myTestObj HelloWorld2()
            {
                myTestObj test = new myTestObj();
                return test;
            }
        }
    
        [Serializable]
        public class myTestObj
        {
            private int _StationID;
            private string _StationName;
            private double _Volume;
    
            [XmlElementAttribute(Order = 0)]
            public int StationID
            {
                get
                {
                    return this._StationID;
                }
                set
                {
                    this._StationID = value;
                }
            }
    
            [XmlElementAttribute(Order = 1)]
            public string StationName
            {
                get
                {
                    return this._StationName;
                }
                set
                {
                    this._StationName = value;
                }
            }
    
            [XmlElementAttribute(Order = 2)]
            public double Volume
            {
                get
                {
                    return this._Volume;
                }
                set
                {
                    this._Volume = value;
                }
            }
    
            public myTestObj()
            {
                StationID = 1000;
                StationName = "Test Station";
                Volume = 105.285;
            }
        }
    }
    

    > Any ideas on why or how? I feel I'm missing just a simple thing in all of this.

    White space nodes?

  • SOAP WITH UTL_HTTP ON HTTPS WEB SERVICE

    Hi all! I'm new there and experimenting with the consumption of web services from database.

    I'm trying to consume a service soap (simple) utl_http via https web with no luck in the Oracle 11 g Release 11.2.0.1.0 - 64 bit Production database.

    When you try to consume a web service soap utl_http over http, I have a great solution. But things goes bad when change the http secure (https) Protocol.

    There are a lot of examples and articles out there on how to do it, but there is nothing, not an integrated solution explained step by step.

    I would like to write the steps that I followed then maybe someone will find what am I missing or what I'm doing wrong.

    1 grant the user permissions of utl_Http.

    2 Confure ACL with

    BEGIN

    DBMS_NETWORK_ACL_ADMIN. ASSIGN_ACL (LCD = > 'utl_http.xml',)

    Home = > 'oracle-www.m-base.org/Sounds.html');

    END;

    /

    COMMIT;

    and check the ACL with

    SELECT *.

    Of user_network_acl_privileges;

    and

    SELECT *.

    OF dba_network_acls;

    3 export certifications of sites web service and import them into the portfolio (https://oracle-base.com/articles/misc/utl_http-and-ssl). Try a to time with different types of key - extensions (with key chains or not)

    4. When you try to consume the service web soap over HTTPS with SOAP UI everything works fine, but I get with utl_http

    ORA-28857: unknown error SSL

    I think keystore loaded successfully, but there is one thing missing in my puzzle. Also, I find this portfolio when run SELECT * FROM v$ encryption_wallet has a closed state.

    WRL_TYPE WRL_PARAMETER STATE

    fileE:\oracle\admin\HOSPITAL\WalletCLOSED

    The web service is trying to run is a simple add you can fid it https://oracle-base.com/webservices/server.php/ws_add

    Please help me to find out what am I do wrong.

    Thank you in advance.

    Working on my db...

    Then try to patch your database...

Maybe you are looking for

  • Phone calls from Mac

    We can make calls from mac, mac is on ethernet and iphone in wifi (with the same network).

  • Shaky video Clip - Camileo

    I bought the clip you want to use to record my walks. I tested it using the stabilizer and waiving the clip that I was walking along, but the video has been jumping around so it was very bad! How the hell can I overcome this problem? If I "clip" she

  • Satellite C855-1TD begins with the message "checking media [Fail].

    My Toshiba laptop has suddenly refused to work well, does not start. When loading from the initial loading of toshiba screen, a black screen will appear saying "Checking media [fail]" I tried everything I saw online that do not opening my laptop. It

  • Almost dead Satellite P10

    When I turn on the laptop the power light lights up and the hard disk light flashes then nothing, the screen is blank, it is as if the laptop is not even read the bios. It's already happened and the motherboard was replaced, exaggerated, I think. Las

  • Function key does not work on Satellite A50-109

    The Funtion Key (Fn) does not work on my computerAnd I don't know how to solve this problem It worked once (with all the F1, F2 etc.), but it does not work now PLS HELP ME! Thank youBart