A WORKING EXAMPLE ABOUT CRYPTING / DECRYPTING SOME DOC

Hi guys,
i'm trying to use this DBMS_CRYPTO to crypt. I don't know if it works or not.
i've found an oracle security guide dated 2003 and tried as well to use the procedure DBMS_CRYPTO with no success.
My goal is to cript file as pdf / doc and so on. Now i'm very confused with this DBMS_CRYPTO library.
How can i achieve this without having to study 50 pages or more of documentation?
Thanx a lot

Hi to all,
My blob encryption procedure work smooth: PL /SQL DEVELOPER tricked me with a one of his refresh bugs......
1 day and 1/2 lost....
Thanx a lot to all of you trying to help

Similar Messages

  • HT1555 i just got a new apple tv but for some reason the remote only worked for about a min. and than it wount work at all. i tried to pair and unpair but nathing works but when i press a button the light on the apple tv turns off. what should i do?

    i just got a new apple tv but for some reason the remote only worked for about a min. and than it wount work at all. i tried to pair and unpair but nathing works but when i press a button the light on the apple tv turns off. what should i do?

    Have you held the menu and left arrow together for 6 secs ?  (I think you have from what you say).
    Also try unpowering and restarting AppleTV.
    AC

  • Can anyone send me some docs about dimension analysis?

    hi all
    Can anyone send me some docs about dimension analysis. What factors should be considered before dimension are created and stuff like that.
    to my email id [email protected]
    regds
    hari

    hi all
    Can anyone send me some docs about dimension analysis. What factors should be considered before dimension are created and stuff like that.
    to my email id [email protected].
    regds
    hari

  • Having upgraded all my devices to IOS 6, including iPad And upgraded no montan limón no my macbookpro, iCloud seems not to be working as smoothly anymore And some impagos docs have not transferred. Help

    Having upgraded all my devices to IOS 6, including iPad And upgraded no montan limón no my macbookpro, iCloud seems not to be working as smoothly anymore And some impagos docs have not transferred. Help

    Having upgraded all my devices to IOS 6, including iPad And upgraded no montan limón no my macbookpro, iCloud seems not to be working as smoothly anymore And some impagos docs have not transferred. Help

  • Find some examples about pthread by objective-c

    hello,
    Now I am studying pthread. But I can't find some examples about pthread by objective-c. The example is pass to bulid and run. Example is twoThread which can communicate each other. I will still find. If you know some useful infomation,would you support some?
    Thank you very much!

    Hi qzxin-
    Several examples of DAQ programming install with Measurement Studio for Visual Studio .NET. DAQmx examples can be found in this folder of your hard drive: C:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Examples\DAQmx . For analog measurements, the syntax for adding multiple physical channels to the operation is "DexX/ai0:n" where X is the device number and n is the last channel in the list.
    Can you let us know more about which DAQ device and which version of Measurement Studio you're using? It would make it easier to suggest an example.
    Thanks,
    Tom W
    National Instruments

  • I need some working examples with pl/sql records and pl/sql tables.

    i am new to pl/sql tables and pl/sql records. i need some working examples on pl/sql records and pl/sql tables from basics to hoghlevel.how to use then procedures and functions and packages.

    i am new to pl/sql tables and pl/sql records. i need some working examples on pl/sql records and pl/sql tables from basics to hoghlevelThere is no such thing as PL/SQL "+tables+". This is a misnomer and creates the perception that a PL/SQL "table" is somewhat like a SQL table. Nothing can be further from the truth. The correct term is "+collection+" or "+associative array+". Compared to SQL tables, these are very primitive structures, very rigid structures, cannot scale, and can be quite expensive memory wise.
    That is not to say do not use an associative array or collection. These are very useful tools.. but only when applied correctly. Like using a collection for a bulk fetch to transfer more rows between the PL and SQL engines and thus decrease context switching.
    Unfortunately, quite often we see the row-by-row and slow-by-slow approach - where the developer uses SQL as an I/O only layer, pulls rows into expensive PL engine memory into record structures and arrays, and then process the rows there.
    So before looking at working example (even the wrong approach's code will compile and run and work in practice), make sure that you know the fundamentals of correctly using the PL engine and correctly using the SQL engine. And these fundamentals can be summed up into a very basic rule:
    Maximize SQL. Minimize PL/SQL+
    Get this rule right, and you will have a sound foundation for writing performant and scalable Oracle applications.

  • Can anyone send some docs about 0infoprovider?

    hi all,
    I am trying to create a new multiprovider where the infoproviders are from 4 ods. i want to restict an ods using infoprovider?
    So can anyone send me some docs nor links. to my email id [email protected]
    regds
    hari

    Hi Hari,
    Check out these threads,
    what is 0infoprovider
    Restriction in a multiprovider based on Infoprovider
    Re: Filtering Datatarget in Multiprovider level in BEx
    Regards,
    Mani

  • Looking for good example about Woodstock components and custom validators

    Hi guys,
    could someone be so kind to give (or suggest) me a simple, minimal and working example with a Woodstock TextField (or Calendar) component and a custom validator?
    I cannot find good examples, all the ones I find on the net are too much wide and confusing so that I'm not able to adapt them to my needs.
    I already made a custom validator (formerly, "DateValidator") with the "validate()" method, and added it to some dynamically created components with code like this:
    calendar1.setImmediate(true);
    calendar1.setAutoValidate(true);
    MethodExpression methodExpression = facesContext.getApplication().getExpressionFactory().createMethodExpression(elcontext, "#{DateValidator.validate}", null, new Class[] { FacesContext.class, UIComponent.class, Object.class });
    calendar1.setValidatorExpression(methodExpression);
    Now, when I change data in the textbox or in the calendar, I see that something obscure is moving (this because I can read "Reading from localhost..." in the status bar of the browser), but nothing happens, and the validator method is never called (I tried this with the debugger).
    I think that only a good example could save me from the dark... Thanks in advance!

    Yes, I'd thought about just having the user set their
    timezone (similar to the forum Settings). However,
    even this forum settings causes some confusion.
    There's two options for a number of timezones. What
    differentiates them? The daylight saving rules are
    important to know and the list of timezones doesn't
    indicate this in any way. This list doesn't show all
    available timezones either (as previously mentionted,
    there's seven timezones for GMT -0700).Then you would have to do a better job than Sun did, wouldn't you? After all if you are going to be interpreting the answer you get, you had better ask a clear question. If you want to know the list of timezones actually supported by Java, then examine the source code for the TimeZone class. You can also search Google for "time zones" for links that will keep you busy for weeks learning the arcana of time zones around the world.

  • Can any send me some docs on BAPI.

    Can any send me some docs on BAPI. If possible please send the docs on ID :- [email protected]
    Edited by: dilip kushwah on Dec 31, 2007 12:32 AM

    Hi Dilip
    I am sending you some material on BAPI, pls go thru it.
    Pls reward pts if help.
    Regards
    Deepanker
    what is BAPI?
    BAPI stands for Business API(Application Program Interface).
    A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    You can make your function module remotely enabled in attributes of Function module but
    A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    The following standardized BAPIs are provided:
    Reading instances of SAP business objects
    GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
    The BAPI GetList() is a class method.
    GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
    The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
    Create( ) and CreateFromData! ( )
    The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
    Change( )
    The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
    Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
    The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
    Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
    Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    just refer to the link below
    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
    list of all bapis
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    for BAPI's
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    Also refer to the following links..
    www.sap-img.com/bapi.htm
    www.sap-img.com/abap/bapi-conventions.htm
    www.planetsap.com/Bapi_main_page.htm
    www.sapgenie.com/abap/bapi/index.htm
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    Example Code
    U need to give the step_nr, item_nr, cond_count and cond_type so the correct conditon will be updated. If no condition exists for the given parameters, a new condition will be created.
    U can find these parameters for a particular condition type in table KONV.
    *& Form saveTransactionJOCR
    text
    --> p1 text
    <-- p2 text
    FORM saveTransactionJOCR .
    data: salesdocument like BAPIVBELN-VBELN,
    order_header_inx like bapisdh1x,
    order_header_in like bapisdh1,
    return type standard table of bapiret2 with header line,
    conditions_in type standard table of bapicond with header line,
    conditions_inx type standard table of bapicondx with header line,
    logic_switch like BAPISDLS,
    step_nr like conditions_in-cond_st_no,
    item_nr like conditions_in-itm_number,
    cond_count like conditions_in-cond_count,
    cond_type like conditions_in-cond_type.
    salesdocument = wa_order_information-VBELN.
    LOGIC_SWITCH-COND_HANDL = 'X'.
    order_header_inx-updateflag = 'U'.
    conditions
    clear conditions_in[].
    clear conditions_inx[].
    clear: step_nr,
    item_nr,
    cond_count,
    cond_type.
    step_nr = '710'.
    item_nr = '000000'.
    cond_count = '01'.
    cond_type = 'ZCP2'.
    CONDITIONS_IN-ITM_NUMBER = item_nr.
    conditions_in-cond_st_no = step_nr.
    CONDITIONS_IN-COND_COUNT = cond_count.
    CONDITIONS_IN-COND_TYPE = cond_type.
    CONDITIONS_IN-COND_VALUE = 666.
    CONDITIONS_IN-CURRENCY = 'EUR'.
    append conditions_in.
    CONDITIONS_INX-ITM_NUMBER = item_nr.
    conditions_inx-cond_st_no = step_nr.
    CONDITIONS_INX-COND_COUNT = cond_count.
    CONDITIONS_INX-COND_TYPE = cond_type.
    CONDITIONS_INX-UPDATEFLAG = 'U'.
    CONDITIONS_INX-COND_VALUE = 'X'.
    CONDITIONS_INX-CURRENCY = 'X'.
    append conditions_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = salesdocument
    ORDER_HEADER_IN = order_header_in
    ORDER_HEADER_INX = order_header_inx
    LOGIC_SWITCH = logic_switch
    TABLES
    RETURN = return
    CONDITIONS_IN = conditions_in
    CONDITIONS_INX = conditions_inx
    if return-type ne 'E'.
    commit work and wait.
    endif.
    ENDFORM. " saveTransactionJOCR
    Bdc to Bapi
    The steps to be followed are :
    1. Find out the relevant BAPI (BAPI_SALESORDER_CHANGE for VA02).
    [for VA01 use BAPI_SALESORDER_CREATEFROMDAT2]
    2. Create a Z program and call the BAPi (same as a Funtion module call).
    2. Now, if you see this BAPi, it has
    -> Importing structures.
    eg: SALESDOCUMENT: this will take the Sales order header data as input.
    -> Tables parameters:
    eg: ORDER_ITEM_IN: this will take the line item data as input.
    Note :
    Only specify fields that should be changed
    Select these fields by entering an X in the checkboxes
    Enter a U in the UPDATEFLAG field
    Always specify key fields when changing the data, including in the checkboxes
    The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
    Maintain quantities and dates in the schedule line data
    Possible UPDATEFLAGS:
    U = change
    D = delete
    I = add
    Example
    1. Delete the whole order
    2. Delete order items
    3. Change the order
    4. Change the configuration
    Notes
    1. Minimum entry:
    You must enter the order number in the SALESDOCUMENT structure.
    You must always enter key fields for changes.
    You must always specify the update indicator in the ORDER_HEADER_INX.
    2. Commit control:
    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.
    For further details... refer to the Function Module documentation for the BAPi.
    Bapi to VB(Visual Basic)
    Long back I had used the following flow structure to acheive the same.
    Report -> SM59 RFC destination -> COM4ABAP -> VB.exe
    my report uses the rfc destination to create a COM session with com4abap. com4abap calls the vb.exe and manages the flow of data between sap and vb exe.
    You need to have com4abap.exe
    If com4abap is installed you will find it in sapgui installatin directory , C:\Program Files\SAPpc\sapgui\RFCSDK\com4abap.
    else refer OSS note 419822 for installation of com4abap
    after making the settings in com4abap to point to the vb program and setting up rfc destination in sm59 to point to com4abap session , you can use the following function modules to call the vb code.
    for setting up com4abap and rfc destination please refer to the documentation for com4abap.
    Invoke NEW DCOM session
    call function 'BEGIN_COM_SESSION'
    exporting
    service_dest = service_dest "(this will be a RFC destination created in SM59)
    importing
    worker_dest = worker_dest
    exceptions
    connect_to_dcom_service_failed = 1
    connect_to_dcom_worker_failed = 2
    others = 3.
    call function 'create_com_instance' destination worker_dest
    exporting
    clsid = g_c_clsid
    typelib = g_c_typelib
    importing
    instid = g_f_oid
    exceptions
    communication_failure = 1 message g_f_msg
    system_failure = 2 message g_f_msg
    invalid_instance_id = 3
    others = 4.
    call function 'com_invoke' destination worker_dest
    exporting
    %instid = g_f_oid
    %method = 'UpdatePDF'
    sntemp = g_v_const_filent
    snsysid = sy-sysid
    snflag = 'N'
    tables
    rssaptable = g_t_pdfdetail1
    %return = g_t_pdfdetail1 "t_test
    exceptions
    communication_failure = 1 message g_f_msg
    system_failure = 2 message g_f_msg
    invalid_instance_id = 3
    others = 4.
    then close the com session , using
    FM delete_com_instance
    FM END_COM_SESSION
    Reward pts if help.
    regards
    Deepanker

  • Can someone point me to a small working example using wait()

    Or is wait() what I want to use?
    I need to have my app go to sleep for some period of time, say ten or fifteen minutes, and hide its window during that time. Then after that ten minutes it opens its window back up.
    I've looked all over Google and I can't find any code samples that a newbie could make sense of. Can anyone point me to a sample?
    I wrote what I thought, intuitively, was the way to do it, but I am getting some cryptic message on the "wait()" about "java.lang.IllegalMonitorStateException" which I looked up, but the "explanation" makes even less sense than the raw message. :(
      public void runLoop() {
        getPrefs();
        while (true) {
          ... do stuff ...
          try {
            wait(1000*timeOut);
          } catch ( InterruptedException ie )  {
            ... do stuff ...
      }thanks for any guidance.
    --gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Can someone PLEASE point me to a working example?
    I use Java only very rarely, and only when forced to, and I am not an expert. Frankly, in spite of being expert in a dozen other languages I am COMPLETELY INCOMPETENT in Java. I'm just trying to get this project done and out of my hair so I can safely forget all about Java for the next year or two. I'd give the project to someone else, but every other coder in the shop refuses to go anywhere near Java.
    If I can get this one thing working I can call the project done and be out of here.
    I have a working ap that just needs to close its own window when a button is clicked, for some (user specified) period of time like 10 or 15 minutes, and then reopen its window after that period of time. It is intuitively obvious that I should be able to use timer methods, or sleep() , or wait(), but I have not been able to get any of those to work, and the error messages are more cryptic than ancient Sumerian cuneiform.
    I've Googled for a working example, but haven't found anything that I can figure out. The examples I've found presuppose far more expertise than I posses, and have far too many pieces missing. Can anyone just point me to a complete example of an ap that sleeps for some period of time and then wakes up again?
    I would really, really appreciate the help, and once I've finished this project I promise I won't ever bother you again. Really.
    --gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Could anyone post examples about sendingand receiving messages with SOAP

    I am newbie, and want to learn SOAP. Anyone can tell me
    where to find many examples about communication between client and server
    based on SOAP. The example is in java code should be best.
    Many thanks in advance

    Java tutorial at http://java.sun.com/webservices/docs/ea1/tutorial/doc/JAXM.ws.html#63873
    should be a good starting point.
    I have sample code, which creates SOAP header and SOAP elements. THis code gives an idea to create SOAP messages and to parse the SOAP response. Hope this helps.
    I pass Application ID and password in SOAP header, used by the Webservices provider to verify my application. In the SOAP elments, I pass a string (called ticket) and ip address. Web services provider will verify the string and return the response along with some attributes related to the user (extended attributes).
    import javax.xml.soap.*;
    import javax.xml.messaging.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import com.sun.net.ssl.internal.ssl.*;
    public class AuthenticateTicket extends HttpServlet{
    private static ServletConfig Config;
    //always use this Name space
    private static final String AUTH_WS_NS = "http://some.url.com/ws/";
    // parameters to get the properties for AUTH
    private static final String AUTH_LOGIN_URL = "http://some.url.com/loginpage/" + "?izAppId=AUTHappl";
    private static final String AUTH_WS_URL ="http://some.url.com/loginpage/v4.asmx";
    private static final String AUTH_CLIENT_APPL_ID = "AUTHappl";
    private static final String AUTH_CLIENT_APPL_PSWD = "AUTHappl";
    * init
    * @param ServletConfig
    * @return void
    public void init(ServletConfig config) throws ServletException {
         Config = config;
    * service
    * This is where the servlet get invoked.
    * @param HttpServletRequest
    * @param HttpServletResponse
    * @return void
    * @throws ServletException
    * @throws IOException
    public void service(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException {     
    System.out.println("------- service() AuthenticateTicket -------");
         String host = request.getRemoteAddr();
         String izTicket = request.getParameter("izTicket");
         String izStatus = request.getParameter("izStatus");
    if (host == null || host.equals("localhost") || izStatus == null || izStatus.trim().equals("") ) {
    response.sendRedirect(AUTH_LOGIN_URL);
    else if (izTicket != null){
              verifyAUTHTicket(host, izTicket);
              RequestDispatcher rd = request.getRequestDispatcher("/jspPage1");
              rd.forward(request, response);
              return;
         else {
              System.out.println (" NOOOOOOOOO TICKET ");
              RequestDispatcher rd = request.getRequestDispatcher("/jspPage1");
              rd.forward(request, response);
    * <code>createSOAPMessage</code>
    * Create the standard AUTH Soap Message.
    * This is used during the verifySession process. It creates the message with
    * the returnAllAttriutes = true;
    * @param String host
    * @param String ticketStr
    * @return SOAPMessage
    * @throws Exception
    private static SOAPMessage createSOAPMessage(String host, String ticketStr) throws Exception{
    MessageFactory msgFactory = MessageFactory.newInstance( );
    SOAPMessage soapMessage = msgFactory.createMessage();
              soapMessage.saveChanges();
    // Obtain references to the various parts of the message.
    SOAPPart soapPart               = soapMessage.getSOAPPart();
    SOAPEnvelope soapEnvelope     = soapPart.getEnvelope();
    SOAPBody soapBody               = soapEnvelope.getBody();
    SOAPHeader header               = soapEnvelope.getHeader();
    //********** HEADER PART **********
    Name headerName = soapEnvelope.createName("wsConsumerCredential", "", AUTH_WS_NS);
              SOAPHeaderElement hdrElem = header.addHeaderElement(headerName);
    Name authId = soapEnvelope.createName("id");
    Name authPwd = soapEnvelope.createName("password");
    SOAPElement idElem = hdrElem.addChildElement(authId);
              idElem.addTextNode(AUTH_CLIENT_APPL_ID);
    SOAPElement pwdElem = hdrElem.addChildElement(authPwd);
              pwdElem.addTextNode(AUTH_CLIENT_APPL_PSWD);
    //********** BODY PART **********
    // Create the <VerifySession> body elements.
    Name verifySess = soapEnvelope.createName("VerifySession", "",AUTH_WS_NS);
    SOAPBodyElement verifySessBOS = soapBody.addBodyElement(verifySess);
    // Create the child elements under the <VerifySession> elements.
    Name ticket = soapEnvelope.createName("ticket");
    Name userIP = soapEnvelope.createName("userIpAddr");
    Name extendedAttr = soapEnvelope.createName("returnExtendedAttributes");
    SOAPElement ticketBOS = verifySessBOS.addChildElement(ticket);
    SOAPElement ipBOS = verifySessBOS.addChildElement(userIP);
    SOAPElement exAttrBOS = verifySessBOS.addChildElement(extendedAttr);
    //ticket string
    ticketBOS.addTextNode(ticketStr);
    ipBOS.addTextNode(host);
    //boolean, do we want extended attr?
         exAttrBOS.addTextNode("true");
              soapMessage.saveChanges();      
    soapMessage.writeTo(System.out);
    return soapMessage;
    * <code>parseSOAPResponse</code>
    * Parse the standard AUTH Soap Response
    * This is used to parse through the AUTH response to gather all the necessary user
    * information.
    * the returnAllAttriutes = true;
    * @param SOAPMessage
    * @return User
    * @throws Exception
    private static void parseSOAPResponse(SOAPMessage response) throws Exception{
    String uid, firstName, lastName, email, bolID;
    System.out.println (" ============ RESPONSE IS: ====================");
    response.writeTo(System.out);
              SOAPPart sp = response.getSOAPPart();
    SOAPEnvelope soapEnvelope = sp.getEnvelope();
    SOAPBody sb = soapEnvelope.getBody();
    Name cName = soapEnvelope.createName("VerifySessionResponse","", AUTH_WS_NS);
    Iterator it = sb.getChildElements(cName);
    SOAPBodyElement verifyResponse = (SOAPBodyElement)it.next();
    //System.out.println(" got verifyResponse");
    it = verifyResponse.getChildElements(); //iwsResponse
    SOAPElement iwsResponse = (SOAPElement)it.next();
    //System.out.println(" got iwsResponse");
    cName = soapEnvelope.createName("action");
    String actionStr = iwsResponse.getAttributeValue(cName);
    cName = soapEnvelope.createName("hasErrors");
    String hasErrorsStr = iwsResponse.getAttributeValue(cName);
              if (actionStr != null && actionStr.equals("Verify") && hasErrorsStr != null
              && hasErrorsStr.equals("false")) {
    SOAPElement info = null;
    cName = soapEnvelope.createName("sessionInfo","", AUTH_WS_NS);
    info = (SOAPElement)iwsResponse.getChildElements(cName).next();
    System.out.println (" name is: "+ info.getElementName().getLocalName() + "----" + info.toString());
    cName = soapEnvelope.createName("status");
    String status = info.getAttributeValue(cName);
    System.out.println (" status : " + status) ;
              if (status == null || status.indexOf("Active") < 0)
                   throw new Exception("Session not Active");
                   SOAPElement userData = null;
    cName = soapEnvelope.createName("userAttributes","", AUTH_WS_NS);
    userData = (SOAPElement)info.getChildElements(cName).next();
    System.out.println (" ===> got user Data ");
    cName = soapEnvelope.createName("attribute","", AUTH_WS_NS);
    it = userData.getChildElements(cName);
    SOAPElement attr = null;
    cName = soapEnvelope.createName("accounts","", AUTH_WS_NS);
    userData = (SOAPElement)info.getChildElements(cName).next();
    System.out.println (" ===> got user Account Data ");
    cName = soapEnvelope.createName("account","", AUTH_WS_NS);
    it = userData.getChildElements(cName);
    SOAPElement account = null;
    String loginIDStr=null, typeStr=null, statusStr=null;
    while (it.hasNext()){
    account = (SOAPElement) it.next();
    cName = soapEnvelope.createName("loginId");
    loginIDStr = account.getAttributeValue(cName);
    cName = soapEnvelope.createName("type");
    typeStr = account.getAttributeValue(cName);
    cName = soapEnvelope.createName("status");
    statusStr = account.getAttributeValue(cName);
         if (statusStr.equals("Authenticated")) {
              System.out.println("\n\nAuthentication successful");
         else {
              System.out.println("\n\nAuthentication failed");
    * <code>verifyAUTHTicket</code>
    * this is for verifySession call to AUTH; It controls the flow with AUTH.
    * @param String host
    * @param String ticketStr
    * @return User
    * @throws Exception
    public static void verifyAUTHTicket(String host, String izticket) {
         SOAPConnection conn =null;
         try {
    //Creat a message
              Provider provider = new Provider();
              java.security.Security.addProvider(provider);
    SOAPMessage message = createSOAPMessage(host, izticket);
    // Get a SOAP connection from the connection factory.
    SOAPConnectionFactory connFactory = SOAPConnectionFactory.newInstance( );
    // set the default security protocol (shipped with JSSE1.0.2)
              System.setProperty ("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    // add the default security provider (again, in JSSE1.0.2)
    //          java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider() );
    conn = connFactory.createConnection( );
    // Define the message destination.
    URLEndpoint destination = new URLEndpoint(AUTH_WS_URL);
    // Send the message and wait for the response.
    SOAPMessage response = conn.call( message, destination );
    parseSOAPResponse(response);
    } catch (Exception ex) {
    ex.printStackTrace();
    // Close the connection.
    finally{
    try{
    if (conn != null){
    conn.close();
    catch (SOAPException se){
    }

  • Any example about the media player in symbian using java?

    i first wanted to develop my media player program using c++,
    but i noticed that there are so many rules,
    and i had fogotten most of the c++ knoledge.
    so now i turned to java.
    can some one be my guide to let me know how to start my work?
    any example about media player on symbian series 60.
    millions of thanks.

    did you try assets library?
    http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/set-up-an-asset-library-to-store-image-audio-or-video-files-HA102785730.aspx
    also check this:
    http://blogs.office.com/2013/03/08/enhanced-video-experience-in-sharepoint-2013/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How do I backup my Helix Windows 8 install if I'm about to do some OS experimentation

    For example I have two partitions now of my own, not counting all the hidden and special and weird Lenovo partitions. One is empty, and the main one has got Windows 8. I am about to do some weird OS surgery, by trying to install Linux and other OS on the device. If things go wrong, I want to be able to restore to where I am now, not to factory. What's the best tool to do this?

    If  you are running Windows 7 this article is about as detailed & simple as it gets.
    http://www.howtogeek.com/howto/1838/using-backup-a​nd-restore-in-windows-7/
    If you prefer a more robust backup solution Cobian Backup is very good:
    http://www.cobiansoft.com/cobianbackup.htm
    Prefer cloud storage over CD/DVD or external hard drive- Mozy offers 2gb of space free.
    http://mozy.com/us/free
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Please Help:  A Problem With Oracle-Provided 'Working' Example

    A Problem With Oracle-Provided 'Working' Example Using htp.formcheckbox
    I followed the simple steps in the Oracle-provided example:
    Doc ID: Note:116534.1
    Subject: How to use checkbox in webdb for bulk update using webdb report
    However, when I select a checkbox and click on the Update button, I get a "ORA-01036: illegal variable name/number" error. Please advise. This was a very promising feature.
    Fred
    Below are step-by-step instructions provided by Oracle to create this "working" example:
    How to use a checkbox in WEBDB 2.2 report for bulk update.
    PURPOSE
    This article shows how checkbox can used placed on WEBDB report
    and how to use it.
    SCOPE & APPLICATION
    The following example to guide through the steps to create a working
    example of this.
    In this example, the checkbox is used to select the records. On clicking
    the update button, the pl/sql procedure is called which will update col1 to
    the string 'OK'.
    After the update is done, the PL/SQL procedure calls the report again.
    Since the report only select records where col1 is null, the updated
    records will not be displayed when the report is called again.
    Step 1 - Create Table
    From Sqlplus, log in as scott/tiger and execute the following:
    drop table chkbox_example;
    create table chkbox_example
    (id varchar2(10) not null,
    comments varchar2(20),
    col1 varchar2(10));
    Step 2 - Insert Test Data
    From Sqlplus, still logged in as scott/tiger , execute the following:
    declare
    l_i number;
    begin
    for l_i in 1..50 loop
    insert into chkbox_example values (l_i, 'Comments ' || l_i , NULL);
    end loop;
    commit;
    end;
    Step 3 -Create SQL Query based WEBDB report
    Logon to a WEBDB site which has access to the database the above tables are created.
    Create a SQL based Report.
    Name the report :RPT_CHKBOX
    The select statement for the report is :
    select c.id, c.comments, c.col1,
    htf.formcheckbox('p_qty',c.id) Tick
    from SCOTT.chkbox_example c
    where c.col1 is null
    In Advanced PL/SQL, (REPORT, Before displaying the form), put the following code
    htp.formOpen('scott.chkbox_process');
    htp.formsubmit('p_request','Update');
    htp.br;
    htp.br;
    Step 4 - Create a stored procedure in the database
    Log on to the database as scott/tiger and execute the following to create the
    procedure.
    Note: Replace WEBDB to the appropriate webdb user for your installation.
    In my database, I had installed webdb using WEBDB username, hence user webdb owns
    the packages.
    create or replace procedure chkbox_process
    ( p_request in varchar2 default null,
    p_qty in wwv_utl_api_types.vc_arr ,
    p_arg_names in wwv_utl_api_types.vc_arr ,
    p_arg_values in wwv_utl_api_types.vc_arr
    is
    i number;
    begin
    for i in 1..p_qty.count loop
    if p_qty(i) is not null then
    begin
    update chkbox_example
    set col1 = 'OK'
    where chkbox_example.id = p_qty(i);
    end;
    end if;
    end loop;
    commit;
    /* To Call Report again after updating */
    SCOTT.RPT_CHKBOX.show
    (p_request=>'Run Report',
    p_arg_names=>webdb.wwv_standard_util.string_to_table2(' '),
    p_arg_values=>webdb.wwv_standard_util.string_to_table2(' '));
    end;
    Summary
    There are essentially 2 main modules, The WEBDB report and the pl/sql procedure (chkbox_process)
    A button is created via the advanced pl/sql coding which shows on top of the report. (The
    button cannot be placed at the bottom of the report due to the way WEBDB creates the procedure
    internally)
    When any button is clicked on the report, it calls the pl/sql procedure chkbox_process.
    The procedure is called , WEBDB always passes the parameters p_request,p_arg_names and o_arg_values.
    p_qty is another parameter that we are passing additionally, This comes from the checkbox created
    using the htf.formcheckbox in the report select statement.
    The pl/sql procedure calls the report again after processing. This is done to
    show how to call the report.
    Restrictions:
    -The Next and Prev buttons on the report will not work.
    So it is important that the report can fit in 1 page only.
    (This may mean that you will not select(not ticked) 'Paginate' under
    'Display Option' in the WEBDB report. If you do this,
    then in Step 4, remove p_arg_names and p_arg_values as input parameters
    to the chkbox_process)

    If your not so sure you can use the instanceof
    insurance,
    Object o = evt.getSource();
    if (o instanceof Button) {
    Button source = (Button) o;
    I haven't thoroughly read the thread, but I use something like this:if (evt.getSource() == someObjRef) {
        // do that voodoo
    ]I haven't looked into why you'd be creating a new reference...

  • WORKING example of BlazeDS with Flex 3 and FlexBuilder

    Can someone point me to an actual working example with BlazeDS used with Flex 3 and Eclipse?
    The examples on livedocs are broken or imcomplete. Others work to varying degrees but fail at some point.
    What I'd like to see is the following:
    1. How to create a project using
         a. Flex 3.0
         b. BlazeDS
         c. Eclipse - FULL project creation and deployment instructions.
         d. An example where the project is NOT created within the BlazeDS webapp that comes with the BlazeDS/Tomcat combo.
         e. An example where the ENTIRE project can be compiled and deployed to Tomcat in one shot.
         f.  An example where a DB can he altered using standard CRUD methods with the display displaying updated records without and event being used to
             refresh the view of the records.
    This shouldn't be too much to ask if Flex is to be expected to be taken seriously in data-driven applications. I've looked all over the web for weeks for something likethis and have come up with nothing. I don't need Spring or Hibernate at this point. Any help would be greatly appreciated as I'm working on a proof-of-concept at this time and the pressure is mounting to come up with something.
    Thanks!

    here is some stuff I wrote while back(they both have recorded video you can watch);
    http://ledtechdesign.com/2009/02/blazeds-tutorial-part-i-simple-remoting/
    http://ledtechdesign.com/2009/02/tutorial-blazeds-simple-remoting-part-ii-flex/

Maybe you are looking for

  • Invoking XML Publisher Report from PL/SQL

    Hi, I have a PL/SQL procecedure which invokes the Concurrent Request for the XML Publisher Report. This one finishes with a warning and I get 'Unable to publish output' when I try to view the output. Exact Error: "Unable to find the published output

  • HP Photosmart Plus B210 - Driver download -

    just got new pc.  Also gOT A CABLE FOR THE ABOVE "WIRELESS" PRINTER. added the printer thru the add printer process. Tryed to download the driver from the HP website, but continually get download failure - Failed to load C:\Program Files\HP\HP Photos

  • My ebay nightmare - faulty disk upon arrival

    Just bought a 15" powerbook from an ebayer and unfortunately my experience has been, so far, less then happy. I have two PB 12" that I love and I bought this machine for a friend after convincing him, for months, of the merits of Macs. Got the machin

  • Can i charge my american ipod touch in UK?

    can i charge my american ipod touch in UK? I could try to use an adaptor, but i know there is a difference in electric current, and would hate to fry my ipod. Does anyone have any experience with this? many thanks for any suggestions you might make.

  • My 27" iMac needs to be unplugged to get it to start after sleeping

    Anyone know why I have to unplug my Mac to get it to start up after sleeping