JAX - RPC, Webservice and the dateTime type elusive everything

I need to interface with a web service. I have no control over it, so I can't change the WSDL, the server, or something similar.

One of the types of data used is xsd: DateTime, a guy who according to it (table 1, JAX - RPC support for data types), is not supported on J2ME. Of my research (on this forum and on the Internet), person doesn't use any date/time/dateTime any form or is ordered to change their WSDL so it it does not use if they intend to use a client on J2ME.

If anyone has a clue on how to use it, because I said, I have no control over the server or the WSDL. Would be his replacement formatted by a string in the work in an appropriate manner or the JAX - RPC system would say it's the wrong type?

I used wscompile to get static stubs for the service, I can't compile without figure this (Type has only primitive types, 'UNKNOWN' what wscompile replaces the unsupported types is not cutting it for obvious reasons). Temporarily, I've replaced 'UNKNOWN' with Type.STRING but I don't know if it will work (that's why I asked).

OK, the base64Binary Type I used was Type.STRING. Then I just ran through the Base64InputStream.decode that does the job. I realized that two types do not work (wscompile is good for a general idea of how a web service must be implemented but horrible to the actual implementation) so I need to rewrite much of the code and decided to rewrite it so that it works better and is more clean.

Thanks for the help.

EDIT:

It was also the help function, I used to convert a string to a timetable so that it works with the web service:

public static String toSOAPString(Calendar cal)
{
    if(cal == null)
    {
        return null;
    }
    StringBuffer buf = new StringBuffer();

    //Get format
    new SimpleDateFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'SSS").format(cal, buf, null);
    buf.append("0000");

    //Timezone
    String zoneID = cal.getTimeZone().getID();
    int index = zoneID.indexOf('-');
    if(index == -1)
    {
        index = zoneID.indexOf('+');
        /* If no timezone offset exists, it isn't needed
        if(index == -1)
        {
            buf.append("+00:00");
        }
        */
    }
    if(index != -1)
    {
        buf.append(zoneID.substring(index + 1));
    }
    return buf.toString();
}

Tags: BlackBerry Developers

Similar Questions

  • What is normal for the backup of XP SP3 and the startup type of the removable storage service?

    I was getting ready to plan and attempt a clean full backup for tonight.  I have the backups created on several entities, currently backup but have a very stable system at the moment and wanted to try to make a clean backup file.  That day has finally arrived after been forced a corrupted system files hard drive failure "repair" critical and forced me to go back to SP1a (my Windows Genuine valid CD which I highly appreciate) in order to obtain any boot system, including safe mode and console mode.  Repair has presented many incompatibilities at the level of program and system, including the basic WMI and COM of the corruption system.  Three months later... it of time to update my backups and recovery procedures and hope that this does not happen!

    In preparation, I decided to refresh my memory on the use of the backup and by browsing the Help and Support Service Center files.  One of the first things I noticed was "storage removable service must be started for the backup works correctly."  Audit and inspection of my existing Services using computer (Local) management, I have observed that after a normal windows startup, the removable storage service is not started with manual startup type.  I use a USB drive connected as my backup media, and it is fully operational as a normally formatted NTFS data disk volume.  I have windows indexing disabled on this volume.  Is the type of service required removable storage of normal manual started?  The backup program will automatically start this service?  I know I've never manually started it myself and backups seem to work well.  Should we change the startup type to automatic?

    -Thanks, Jerry

    I would like to leave as a textbook.

    The Service will start (if capable) as soon as ntbackup.exe begins.

    If you want to see, with your Services window related to the function of RS place and it will not work and the manual.

    Click Start, run and enter in the box:

    Ntbackup.exe

    Click OK to start the backup and the Restore Wizard.

    Go back to your Services window and press F5 to refresh and SR Service should now work.

    When you exit the backup and the Restore Wizard, the RS Service stops (it may take a few minutes), and you may need to close the Services applet and reopen it to notice she's moved to manual and not running.

    You will see things like present to the event system log viewer:

    Event type: Information
    Event source: Service Control Manager
    Event category: no
    Event ID: 7036
    The removable storage service entered the running state.

    (this is when you go out the backup and the Restore Wizard and wait a few minutes... then the Service stops itself...)

    Event type: Information
    Event source: Service Control Manager
    Event category: no
    Event ID: 7036
    Description:
    The removable storage service entered the stopped state.

    It's like aid and assistance...  Most of the people (including the technical support engineers who are hired by Microsoft) say to set the Startup Type to automatic, but you don't have to...  Set it to manual and it will start fine when he needs start (if he can).

    There is no need for these Services (and many other Services in XP) as starting at each restart and run all day without doing anything.

    Here is a good list that will help you understand your XP Services:

    http://www.blackviper.com/2008/05/19/black-vipers-Windows-XP-x86-32-bit-Service-Pack-3-service-configurations/

  • Get the name and the data type into an object?

    Hello

    I would like to know if there is a way to get the names and the types of data encapsulated in an object of labview?

    For example, let's say I make a simple object, called myObject to be commonplace, with private data: myObjectName (string), myObjectValue (int 32) (etc.)

    So, how to build a method to return the type of the data of myObjectValue, or infact back the names and types of all data in the object field, which could be a lot?

    Thank you

    Paul.


  • objects and the record type

    Hello experts.

    create type emp2_obj is object
    (
    objno number
    ,
    objname varchar2
    (20),
    objdept number
    );

    create type emp2_objarr is table of emp2_obj;

    and

    type emp2_rec is record
    (
    recno number
    ,
    recname varchar2
    (20),
    recdept number
    );

    create type emp2_recarr is table of emp2_rec ;

    Objects and types of records are created similar and have the same similar object.  Is it only advisable to use registration type if you use a collection in PL/SQL type... Please advice

    user13328581 wrote:

    the only reason why I ask is because he asked during an interview

    -Objects and the types of records are created similar and have the same similar object.  Is it only advisable to use registration type if you use a collection in PL/SQL type... Please advice

    Not at all.  You can use record types used with collection types outside.  They are a group concept.  If you want to group a set of values together (including fields), you can use a record.  It may be convenient.  You can send documents around proc and functions.

    Be aware that the record types are limited to procedures, functions, anonymous blocks and packages (i.e. PL/SQL), while the types of objects are stored in the dictionary of data as a separate Oracle objects (they can also have methods, the records may not).  Object types can be used in SQL, as said sol.beach types of records (outside of the intelligent pipeline situations) is for PL/SQL.

  • The elements and the SQL Types

    I just started learning apex and I'm confused about the application and page elements. Since they can serve as a kind of variables in the SQL and PL/SQL (for example, by using the syntax variables bind), at some point they should be prescribed a type, since SQL and PL/SQL are two strongly typed languages.

    It seems that the items have types, see the documentation (http://docs.oracle.com/cd/E11882_01/appdev.112/e11947/bldapp.htm#BCEDCGGH), but I don't know how they correspond to the SQL types.

    For example, I saw that to_date is always used with items of type date picker, implying that it is a string of SQL type.

    So the question. What have SQL type apex page/application parts, is what type conversion do I need to use when dealing with items in SQL and PL/SQL?

    They are all VARCHAR2 (4000) as far as I know - anything application are the same and the page elements is adjustable in number or date more. Put date or number will include only internal validation, check whether the format is match the parameters of globalization of applications.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • check for the datetime type between

    Hi all

    How can I check the records with the column datetime between 10 minutes before and 10 minutes after?

    If it comes to my sample
    mydate
    02/09/2011 10:50:00
    02/09/2011 12:00:00
    02/09/2011 12:15:00
    02/09/2011 10:00:00
    02/09/2011 10:55:00
    How can I get the registration 1 and 5, if my whereclause is

    When trunc (mydate) = February 9, 2011"
    and the time between 10:40 'and 11:00 '

    Thanks for help
    SQL> with t as (
      2  select to_date('02/09/2011 10:50:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
      3  select to_date('02/09/2011 12:00:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
      4  select to_date('02/09/2011 12:15:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
      5  select to_date('02/09/2011 10:00:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
      6  select to_date('02/09/2011 10:55:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual
      7  )
      8  select *
      9  from t
     10  where trunc(mdate, 'MI') between trunc(to_date('02/09/2011 10:50:00', 'dd/mm/yyyy hh24:mi:ss'), 'MI')
     11                                   - (1/6)/24
     12                           and     trunc(to_date('02/09/2011 10:50:00', 'dd/mm/yyyy hh24:mi:ss'), 'MI')
     13                                   + (1/6)/24
     14  /
    
    MDATE
    -------------------
    02/09/2011 10:50:00
    02/09/2011 10:55:00
    

    I assume that you have a way to identify your first row.
    The example above explicitly takes the value of the first row in the WHERE clause, which is probably not what you do.
    You may specify some of your other column values to get a better idea of how this code.

  • create new tab with the name of the pass and the data type of the tab & ranks on the b tab

    Hello

    I'm really struggling with this.
    Have two tables A and B
    A is a table with columns, tag_label, tag_colmn code
    -------------------------------------------------------------
    CODE | TAG_LABEL | TAG_COLMN_NAME
    -----------------------------------------------------------
    023. Registration | CHAR_TAG1
    023. Contract number | NUM_TAG1
    023. Agency | NUM_TAG2

    B is an operating table with code, CHAR_TAG1, CHAR_TAG2, NUM_TAG1, NUM_TAG2...
    ----------------------------------------------------------------------------------------------------------------------------
    CODE | CHAR_TAG1 | CHAR_TAG2 | NUM_TAG1 | NUM_TAG2......
    ----------------------------------------------------------------------------------------------------------------------------
    023. 420/09 | -- || 100023 | 1002
    021 | -- || 400030 | -- || --
    023. 450/10 | -- || 100025 | --


    I need to create a dynamic new table or view C from these two with
    ----------------------------------------------------------------------------------------------------------------------------
    CODE | REGISTRATION | CONTRACT NUMBER | AGENCY NUMBER
    ----------------------------------------------------------------------------------------------------------------------------
    023. 420/09 | 100023 | 1002
    023. 450/10 | 100025 | --

    That's when my Jdeveloper, I will be able to get a view with table C object.
    If you see C, there new column names, derived from the Tag_label of the table A column names and the lines are filled with the values from table B corresponding to the tag_column_name of the column of table A

    Is it possible to do so. This is very important because it is the main part of my project and I'm stuck on this.

    Kind regards.

    Published by: user10264958 on August 21, 2010 22:28

    Try this:

    CREATE OR REPLACE PROCEDURE MAKE_VIEW
    IS
        L_SQL VARCHAR2(32767);
    
        TYPE A_TAB_TYP IS TABLE OF A%ROWTYPE;
        A_TAB A_TAB_TYP;
    
        L_COMMA varchar2(10);
    BEGIN
        SELECT * BULK COLLECT INTO A_TAB FROM A;
        IF SQL%NOTFOUND THEN
            RAISE_APPLICATION_ERROR( -20999, ' Table A is empty ' );
        END IF;
        L_SQL := 'CREATE OR REPLACE VIEW C AS SELECT';
    
        L_COMMA := ' ';
        FOR I IN A_TAB.FIRST .. A_TAB.LAST
        LOOP
            L_SQL := L_SQL || L_COMMA;
            L_SQL := L_SQL || A_TAB( I ).TAG_COLMN_NAME ||
                  ' "' || A_TAB( I ).TAG_LABEL || '" ';
            L_COMMA := ',';
        END LOOP;
        L_SQL := L_SQL || ' FROM B WHERE ';
    
        L_COMMA := ' ';
        FOR I IN A_TAB.FIRST .. A_TAB.LAST
        LOOP
            L_SQL := L_SQL || L_COMMA;
            L_SQL := L_SQL || A_TAB( I ).TAG_COLMN_NAME ||
                  ' IS NOT NULL ';
            L_COMMA := ' OR ';
        END LOOP;
        EXECUTE IMMEDIATE L_SQL;
    END MAKE_VIEW;
    
    DROP VIEW C;
    EXECUTE MAKE_VIEW;
    
    SELECT * FROM C;
    
     DROP VIEW C succeeded.
    anonymous block completed
    Registration AGREEMENT NUMBER       Agency
    ------------ ---------------------- ----------------------
     420/09      100023                 1002
    450/10       100025                                        
    
  • Browse... and the file type of the file...

    I've looked everywhere I can think of, but I have not seen elsewhere addressed to all the...

    When I use the type of page element «File browse...» ", is there a change in the way that the" files of Type: "" all files (*. *) "?

    Not that I know of. This is a limitation of the "input type = 'file ' ':

    [http://www.w3schools.com/TAGS/att_input_accept.asp]

    It seems such a function of the basic UI, but there must be a reason for that.

  • SQL for the datetime type

    Hello

    help me in this.

    I have a sql to the datetime of the user input value:

    Select * from master_table
    where time < = 9 April 09 ' + 1

    It seems that I can not add '+ 1' here...

    April 9 09 is the web-based user input...

    My question: How can I add a '+ 1' every time that the user key in the user input text box?

    Thank you.

    You can change in your date format or add

    Select * from deadline-1=to_date('09-apr-09','DD-MON-YY master_table');

  • Create graphics using multi-channel for measures and another single channel for the datetime type.

    Hello world

    I'm using Labview and DIAdem to create graphical reports and I use screws of connectivity and not the Express VI.

    The data is stored in a data base MySQL Inno.

    I use the following command to get the data I want to show the graphic report!

    SQL_ExecDirect (' select 'TimeStamp', 'Value' by 'TableX' where and taste =' %s and channel =' %s; "" ")

    And then I use:

    SQL_BindChannel ("Datetime1C1", "TimeStamp", "t", "#yyyy - mm - dd hh") to bind the data to the X axis of the graph.

    And after that, I use:

    SQL_BindChannel("SampleN","Value","n") to bind the data to the axis of the graph Y.

    I want to create the chart with more than a sample, I use the commands above on a loop.

    Now here's a printscreen of my problem.

    In the first iteration (green line), DateTime1C1 has the timestamp for sample1 but in the second portion (yellow line) DateTime1C1 has the timestamp for sample2, the third iteration (blue line) DateTime1C1 timestamp for sample3. etc.

    The time stamp of origin for each sample are 'lost' he re-wrote datetime1C1. and in the end, it shows only the timestamp for the 5th iteraction.

    How can I create a single graph with several lines (samples) and datetime an axe?

    THX in advance

    Hi AlexandreHSCas,

    If I understand your situation, the only thing you need to change is to create a new group in the DataPortal before each request.

    FOR i = 1 TO iMax
    NewGroupName = "application" & I
    Call GroupCreate (NewGroupName)
    Call GroupDefaultSet (GroupCount)
    Call SQL_ExecDirect ("select 'TimeStamp', 'Value' from ' TableX" including Sample =' %s and channel =' %s;) ")
    Call SQL_BindChannel (NewGroupName & "/ Datetime1C1", "TimeStamp", "t", "#yyyy - mm - dd hh")
    Call SQL_BindChannel (NewGroupName & "/ SampleN", "Value", "n")
    NEXT

    Then you can simply drag each group from the data on the same graph XY-portal, because each group has its own time warp, data points will be displayed correctly placed on the common X axis of the graph.

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • Extract the total result of webService and the display in the console

    Hi team,

    IAM I invoke merger currency WebService: CurrenciesService? WSDL

    IAM able to run it.

    How can I extract the load output xml from it?

    the following is extracted from java code:

    // Add your code to call the desired methods.
    try {}
    System.out.println ("method call");
    variableName = currenciesService.getDailyConversionType (conversionType);
    System.out.println ("Value of the Variable name->" + VariableName);
    System.out.println ("Data->" + variableName.attribute1);
    System.out.println ("The Type of Conversion->" + variableName.conversionType);
    System.out.println ("User Conv TYpe->" + variableName.get);
    } catch (ServiceException e) {}
    }

    I don't think you can get it from the object rather either must implement a handler as in the related documentation or marshall to the string using JAXB XML. Including a sample for the latter:

    import java.io.StringWriter;

    Import javax.xml.bind.JAXBContext;

    Import javax.xml.bind.JAXBElement;

    Import javax.xml.bind.Marshaller;

    import javax.xml.namespace.QName

    ...

    Rule = creditRuleService.getRule (test);

    JAXBContext jaxbContext = JAXBContext.newInstance (Rule.class);

    Marshaller marshaller = jaxbContext.createMarshaller ();

    marshaller.setProperty (Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);

    StringWriter stringWriter = new StringWriter();

    JAXBElement jaxbElement = new JAXBElement (new QName("Rule"), Rule.class, rule);

    marshalling. Marshal (jaxbElement, stringWriter);

    String xmlString = stringWriter.toString ();

    Note that while I tested it it works I thought not performance etc.

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • Relationship between a Tablespace and the BLOB type columns

    Hello
    When I import using cmd imp, all tables were imported except the table that has columns of type BLOB. After some pain in my head, I noticed that it was because of tablespace (I don't have the source table space in my destination).

    Can someone explain the reason for the relationship between the tables BLOB and tablespaces (because all other imported tables)?

    Oracle Version: 10.2.0

    Check this thread
    problem importing table with the blob data type
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:::P11_QUESTION_ID:378418239571}

  • The stocks app and widget is missing from my iphone6. If I drag from left and the stocks type I see, but it does not appear as an application on any of my screens. How to get him back?

    The stocks app and widget disappeared from my iPhone 6 more screen. I can access hitting swipe to the left and tapping stocks, though. How do I bring as a widget on my home screen?

    Harry1225 wrote:

    The stocks app and widget disappeared from my iPhone 6 more screen. I can access hitting swipe to the left and tapping stocks, though. How do I bring as a widget on my home screen?

    I guess the stock app is the built-in app comes with the phone if so it cannot be deleted.

    First glance at your home screen or app folders.

    Check the restrictions.

    If all else fails - settings - General - reset - Reset available to the home screen.

  • Dynamically find the Integer and the Data Type of a Decimal column

    Table: test (INTE number, DECISION number (7.2)) of the

    Try to dynamically determine the type of column.

    Use select user_tab_columns data_type. It returns only the NUMBER that does not indicate whether the column is an integer or a decimal data type.

    Is there a way to dynamically determine whether a column is around or type decimal?

    Thank you

    create table test (INTE, DECI number number (7.2));

    Select column_name, data_type, data_precision from dba_tab_columns where table_name = 'TEST '.

    COLUMN_NAME DATA_TYPE DATA_PRECISION
    ------------------------------ ---------------------------------------------------------------------------------------------------------- --------------
    NUMBER OF INTE
    DECI, NUMBER 7

  • SCAN of the listeners and the earpiece by default everything is happening at the 2nd node

    I installed GRID/Oracle yesterday and I saw on the first node, there are scan-auditeur1, 2, and on the second node, there are scan-listner3.

    This morning, I try to create db by dbca and it gives me a warning that there is no default listener on the local node.

    Then, I checked, it not there no any listener on the local node:
    ps - ef | grep tns
    grid 31295 30685 0 13:47 pts/1 00:00:00 grep tns

    but on the second node:
    ps - ef | grep tns
    grid 13518 1 0 00:14? 00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1-inherit
    grid 13536 1 0 00:14? 00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr EARPHONE-inherit
    grid 15878 15566 0 13:48 pts/0 00:00:00 grep tns
    grid 16945 1 0 06:22? 00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN3-inherit
    grid 16959 1 0 06:22? 00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN2-inherit


    How to explain this situation? How all the listener failed at the second node?

    Where is the log that I can check?

    Thank you

    Hello

    Check if the resources or cluster is online on node1.

    Use of the */bin/crsctl check crs * command to check the State of availability Services high Oracle and Oracle Clusterware stack on the local server.

    Use */bin/crsctl check cluster - all * command on any node in the cluster to verify the condition of the battery of Oracle Clusterware. The OHAS must run to run this command.

    Use of the */bin/crsctl start res - you * command to check the status of all resources.

    If the cluster is offline on node1, you can start */bin/crsctl start crs *.

    Kind regards
    Levi Pereira

Maybe you are looking for