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

Similar Messages

  • How can I find an example about acquiring waveform data by software trigger using PXI 4070 DMM?

    Anybody could proivde an example or simliar about acquiring waveform data by software trigger using PXI 4070 DMM?
    Thanks!

    hi there
    from the NI main page go to the developer zone http://www.ni.com/devzone/dev_exchange/ex_search.h​tm. select "LabVIEW" and "Digital Multimeter (DMM)" and search for "4070". then you'll find some examples.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Where can I find some information about color atttributes

    Dear friends.
    I want use color attributes with <HTMLB:chart>. There are some examples about that. But I don't know what code is matched with color.
    regards.

    Current color selection for the charts is controlled by the attribute <b>colorOrder</b>. Sample example
    <htmlb:chart id                  = "gph2"
                        chartType           = "COLS"
                        titleCategories     = "SALES ORDERS"
                        titleValues         = "Number"
                        legendPosition      = "NORTH"
                        data                = "<%= data %>"
                        height              = "300"
                        colorOrder          = "SNAKE"
                        width               = "300"
                        displayObjectValues = "X"
                        title               = "SALES ORDER ANALYTICS" />
    Regards,
    Ravikiran.

  • Anybody can give some example about XA programming?

     

    Yu Li,
    This is not the correct forum for XA questions, however, search on 'XA' across the otn site and you will find some examples.
    regards,
    David

  • How to find the bapi about Activities business object...

    Hi All
    can you tell me about information about Activities business object
    iam using SAP CRM..

    Hi KP,
       can you tell us the name of the transaction in which you saw this field?
    If it is in PO Creation or Change you can probably look at the bapis
    BAPI_PO_CREATE or BAPI_PO_CHANGE
    Regards,
    Ravi

  • Give me some examples of syntax of object oriented concept in abap

    pls let me know

    Go to ABAPDOCU transaction.
    On the left hand side, you should open the node ABAP Objects .
    YOu can find lots of examples.
    for concepts go thru this link:
    http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

  • Some questions about the carousel object

    Hello,
    I think it is not possible to configure a non circular carousel, isn't it?, i.e., I want a carousel with 13 cells, but when the user is viewing the cell 13 I don't want the cell 1, cell 2, and so on to be viewed as the next ones.
    If this is not possible, I am thinking this:
    The user can see 5 cells (I am using an horizontal carousel) and the focus is in the 3rd cell. What I want to do is when the focus is in the 3rd cell, the user can't move to the cell in its left. Is this possible? The user only can move to the cells in the right until he reaches the third from last.
    Is this possible?
    Thanks in advance!!

    Hi jkhan!
    Thanks a lot for your reply!
    I'm trying the carousel view as a kind of timeline and the curved effect it provides I can't get it with the gallery view.
    If I could disable the carousel movement in a direction when I reached a cell it would be perfect...

  • EAI SQL Adapter BusinessService some examples?

    Hi guys,
    I am trying to find some examples or detail documentation of using EAI SQL Adapter BusinessService.
    If somebody knows something, please help!
    Regards,
    Slavi

    Hi,
    There is an Enhancement Request 12-I2PVIT asking for documentation on the "EAI SQL Adapter" Business Service (BS). However the enhancement was declined because this BS must not be called directly as it was developed and designed to be only used internally by the Oracle and Peoplesoft connectors.
    That is why there is no details on the “EAI SQL Adapter” BS on the Bookshelf.
    To access an external database, Siebel's External Business Component feature can be used. References to the the EBC feature are on the Bookshelf entry below:
    * Integration Platform Technologies: Siebel Enterprise Application Integration > External Business Components.
    Other options consist in developing custom integrations using COM Interfaces or Java Business Service so that you are able to get the data from Siebel and send that data to the database using a custom solution on the COM Interfaces or Java Business Service .
    Details can be found on the Bookshelves below:
    * Transports and Interfaces: Siebel eBusiness Application Integration Volume III > Java Business Service
    * Siebel Object Interfaces Reference > Programming > Siebel Object Interfaces
    The advantage of using EBCs is that inside Siebel it will work as any other Business Component, except for the special cases explained on the Bookshelf.
    In summary, calling the “EAI SQL Adapter” BS directly is not supported and some possible options are EBC, COM Interfaces and Java Business Services.
    Regards,
    Joseph Arul Dass

  • Example programs on abap object events?

    Hi Experts,
    I need some example programs on abap object events.
    regards,
    vijay

    Hi,
    go thru the below program. hope it could help you.
       REPORT sapmz_hf_alv_grid .
    Type pool for icons - used in the toolbar
       TYPE-POOLS: icon.
       TABLES: zsflight.
    To allow the declaration of o_event_receiver before the
    lcl_event_receiver class is defined, decale it as deferred in the
    start of the program
       CLASS lcl_event_receiver DEFINITION DEFERRED.
    G L O B A L   I N T E R N  A L   T A B L E S
       *DATA: gi_sflight TYPE STANDARD TABLE OF sflight.
    To include a traffic light and/or color a line the structure of the
    table must include fields for the traffic light and/or the color
       TYPES: BEGIN OF st_sflight.
               INCLUDE STRUCTURE zsflight.
          Field for traffic light
       TYPES:  traffic_light TYPE c.
          Field for line color
       types:  line_color(4) type c.
       TYPES: END OF st_sflight.
       TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.
       DATA: gi_sflight TYPE tt_sflight.
    G L O B A L   D A T A
       DATA: ok_code         LIKE sy-ucomm,
        Work area for internal table
             g_wa_sflight    TYPE st_sflight,
        ALV control: Layout structure
             gs_layout       TYPE lvc_s_layo.
    Declare reference variables to the ALV grid and the container
       DATA:
         go_grid             TYPE REF TO cl_gui_alv_grid,
         go_custom_container TYPE REF TO cl_gui_custom_container,
         o_event_receiver    TYPE REF TO lcl_event_receiver.
       DATA:
    Work area for screen 200
         g_screen200 LIKE zsflight.
    Data for storing information about selected rows in the grid
       DATA:
    Internal table
         gi_index_rows TYPE lvc_t_row,
    Information about 1 row
         g_selected_row LIKE lvc_s_row.
    C L A S S E S
       CLASS lcl_event_receiver DEFINITION.
         PUBLIC SECTION.
           METHODS:
            handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
              IMPORTING
                e_object e_interactive,
            handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
              IMPORTING e_ucomm.
       ENDCLASS.
          CLASS lcl_event_receiver IMPLEMENTATION
       CLASS lcl_event_receiver IMPLEMENTATION.
         METHOD handle_toolbar.
    Event handler method for event toolbar.
           CONSTANTS:
    Constants for button type
             c_button_normal           TYPE i VALUE 0,
             c_menu_and_default_button TYPE i VALUE 1,
             c_menu                    TYPE i VALUE 2,
             c_separator               TYPE i VALUE 3,
             c_radio_button            TYPE i VALUE 4,
             c_checkbox                TYPE i VALUE 5,
             c_menu_entry              TYPE i VALUE 6.
           DATA:
               ls_toolbar  TYPE stb_button.
      Append seperator to the normal toolbar
           CLEAR ls_toolbar.
           MOVE c_separator TO ls_toolbar-butn_type..
           APPEND ls_toolbar TO e_object->mt_toolbar.
      Append a new button that to the toolbar. Use E_OBJECT of
      event toolbar. E_OBJECT is of type CL_ALV_EVENT_TOOLBAR_SET.
      This class has one attribute MT_TOOLBAR which is of table type
      TTB_BUTTON. The structure is STB_BUTTON
           CLEAR ls_toolbar.
           MOVE 'CHANGE'        TO ls_toolbar-function.
           MOVE  icon_change    TO ls_toolbar-icon.
           MOVE 'Change flight' TO ls_toolbar-quickinfo.
           MOVE 'Change'        TO ls_toolbar-text.
           MOVE ' '             TO ls_toolbar-disabled.
           APPEND ls_toolbar    TO e_object->mt_toolbar.
         ENDMETHOD.
         METHOD handle_user_command.
      Handle own functions defined in the toolbar
           CASE e_ucomm.
             WHEN 'CHANGE'.
               PERFORM change_flight.
           LEAVE TO SCREEN 0.
           ENDCASE.
         ENDMETHOD.
       ENDCLASS.
    S T A R T - O F - S E L E C T I O N.
       START-OF-SELECTION.
         SET SCREEN '100'.
       *&      Module  USER_COMMAND_0100  INPUT
       MODULE user_command_0100 INPUT.
         CASE ok_code.
           WHEN 'EXIT'.
             LEAVE TO SCREEN 0.
         ENDCASE.
       ENDMODULE.                 " USER_COMMAND_0100  INPUT
       *&      Module  STATUS_0100  OUTPUT
       MODULE status_0100 OUTPUT.
         DATA:
      For parameter IS_VARIANT that is sued to set up options for storing
      the grid layout as a variant in method set_table_for_first_display
           l_layout TYPE disvariant,
      Utillity field
           l_lines TYPE i.
    After returning from screen 200 the line that was selected before
    going to screen 200, should be selected again. The table gi_index_rows
    was the output table from the GET_SELECTED_ROWS method in form
    CHANGE_FLIGHT
         DESCRIBE TABLE gi_index_rows LINES l_lines.
         IF l_lines > 0.
           CALL METHOD go_grid->set_selected_rows
               EXPORTING
                 it_index_rows = gi_index_rows.
           CALL METHOD cl_gui_cfw=>flush.
           REFRESH gi_index_rows.
         ENDIF.
    Read data and create objects
         IF go_custom_container IS INITIAL.
      Read data from datbase table
           PERFORM get_data.
      Create objects for container and ALV grid
           CREATE OBJECT go_custom_container
             EXPORTING container_name = 'ALV_CONTAINER'.
           CREATE OBJECT go_grid
             EXPORTING
               i_parent = go_custom_container.
      Create object for event_receiver class
      and set handlers
           CREATE OBJECT o_event_receiver.
           SET HANDLER o_event_receiver->handle_user_command FOR go_grid.
           SET HANDLER o_event_receiver->handle_toolbar FOR go_grid.
      Layout (Variant) for ALV grid
           l_layout-report = sy-repid. "Layout fo report
    Setup the grid layout using a variable of structure lvc_s_layo
      Set grid title
           gs_layout-grid_title = 'Flights'.
      Selection mode - Single row without buttons
      (This is the default  mode
           gs_layout-sel_mode = 'B'.
      Name of the exception field (Traffic light field) and the color
      field + set the exception and color field of the table
           gs_layout-excp_fname = 'TRAFFIC_LIGHT'.
           gs_layout-info_fname = 'LINE_COLOR'.
           LOOP AT gi_sflight INTO g_wa_sflight.
             IF g_wa_sflight-paymentsum < 100000.
          Value of traffic light field
               g_wa_sflight-traffic_light = '1'.
          Value of color field:
          C = Color, 6=Color 1=Intesified on, 0: Inverse display off
               g_wa_sflight-line_color    = 'C610'.
             ELSEIF g_wa_sflight-paymentsum => 100000 AND
                    g_wa_sflight-paymentsum < 1000000.
               g_wa_sflight-traffic_light = '2'.
             ELSE.
               g_wa_sflight-traffic_light = '3'.
             ENDIF.
             MODIFY gi_sflight FROM g_wa_sflight.
           ENDLOOP.
      Grid setup for first display
           CALL METHOD go_grid->set_table_for_first_display
             EXPORTING i_structure_name = 'SFLIGHT'
                       is_variant       = l_layout
                       i_save           = 'A'
                       is_layout        = gs_layout
             CHANGING  it_outtab        = gi_sflight.
       *-- End of grid setup -
      Raise event toolbar to show the modified toolbar
           CALL METHOD go_grid->set_toolbar_interactive.
      Set focus to the grid. This is not necessary in this
      example as there is only one control on the screen
           CALL METHOD cl_gui_control=>set_focus EXPORTING control = go_grid.
         ENDIF.
       ENDMODULE.                 " STATUS_0100  OUTPUT
       *&      Module  USER_COMMAND_0200  INPUT
       MODULE user_command_0200 INPUT.
         CASE ok_code.
           WHEN 'EXIT200'.
             LEAVE TO SCREEN 100.
             WHEN'SAVE'.
             PERFORM save_changes.
         ENDCASE.
       ENDMODULE.                 " USER_COMMAND_0200  INPUT
       *&      Form  get_data
       FORM get_data.
    Read data from table SFLIGHT
         SELECT *
           FROM zsflight
           INTO TABLE gi_sflight.
       ENDFORM.                    " load_data_into_grid
       *&      Form  change_flight
    Reads the contents of the selected row in the grid, ans transfers
    the data to screen 200, where it can be changed and saved.
       FORM change_flight.
         DATA:l_lines TYPE i.
         REFRESH gi_index_rows.
         CLEAR   g_selected_row.
    Read index of selected rows
         CALL METHOD go_grid->get_selected_rows
           IMPORTING
             et_index_rows = gi_index_rows.
    Check if any row are selected at all. If not
    table  gi_index_rows will be empty
         DESCRIBE TABLE gi_index_rows LINES l_lines.
         IF l_lines = 0.
           CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
                EXPORTING
                     textline1 = 'You must choose a line'.
           EXIT.
         ENDIF.
    Read indexes of selected rows. In this example only one
    row can be selected as we are using gs_layout-sel_mode = 'B',
    so it is only ncessary to read the first entry in
    table gi_index_rows
         LOOP AT gi_index_rows INTO g_selected_row.
           IF sy-tabix = 1.
            READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
           ENDIF.
         ENDLOOP.
    Transfer data from the selected row to screenm 200 and show
    screen 200
         CLEAR g_screen200.
         MOVE-CORRESPONDING g_wa_sflight TO g_screen200.
         LEAVE TO SCREEN '200'.
       ENDFORM.                    " change_flight
       *&      Form  save_changes
    Changes made in screen 200 are written to the datbase table
    zsflight, and to the grid table gi_sflight, and the grid is
    updated with method refresh_table_display to display the changes
       FORM save_changes.
         DATA: l_traffic_light TYPE c.
    Update traffic light field
    Update database table
         MODIFY zsflight FROM g_screen200.
    Update grid table , traffic light field and color field.
    Note that it is necessary to use structure g_wa_sflight
    for the update, as the screen structure does not have a
    traffic light field
         MOVE-CORRESPONDING g_screen200 TO g_wa_sflight.
         IF g_wa_sflight-paymentsum < 100000.
           g_wa_sflight-traffic_light = '1'.
      C = Color, 6=Color 1=Intesified on, 0: Inverse display off
           g_wa_sflight-line_color    = 'C610'.
         ELSEIF g_wa_sflight-paymentsum => 100000 AND
                g_wa_sflight-paymentsum < 1000000.
           g_wa_sflight-traffic_light = '2'.
           clear g_wa_sflight-line_color.
         ELSE.
           g_wa_sflight-traffic_light = '3'.
           clear g_wa_sflight-line_color.
         ENDIF.
         MODIFY gi_sflight INDEX g_selected_row-index FROM g_wa_sflight.
    Refresh grid
         CALL METHOD go_grid->refresh_table_display.
         CALL METHOD cl_gui_cfw=>flush.
         LEAVE TO SCREEN '100'.
       ENDFORM.                    " save_changes
    regards
    -Rakesh

  • 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){
    }

  • Some Example tutorials of simple apps using taskflows

    Hi,
    I am learning taskflows, Could somebody provide any links where I can find some examples of creating bounded and unbounded taskflows.
    Any link will be helpfull...
    Message was edited by:
    Sreekanth

    Please post Jdev 11 questions on the JDev 11 forum
    JDeveloper and OC4J 11g Technology Preview
    If you go to help->cue cards and follow the Fusion Web Application cards, you'll see that it also covers a bit of task-flows

  • I can't find some objects in BC

    Hello all,
    I am activating bc objects for Production Planning & and Controlling, but I can't find some objects. There are some infosources that haven't got any 'data flow before' . How can I map these objects?
    For example, how does 2LIS_04_S280 infosource work? why can't I find its transfer rules nor its datasource in bc?
    I need some light about this issue. Thank you very much. Points will be assigned
    C.

    hi
    2LIS_04_S280 & S281 are obsolete since R/3 Release 4.0B .
    Use 2LIS_04_P_MATNR & 2LIS_04_ARBPL respectively .
    S280 = 2LIS_04_P_MATNR
    S282 = 2LIS_04_P_COMP
    S284 = 2LIS_04_P_PEMATNR
    S285 = 2LIS_04_P_PECOMP.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/6c/6111846c3911d3b6df0000e8359890/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/6c/61117e6c3911d3b6df0000e8359890/frameset.htm
    For more help.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c1/37544e449a11d188fe0000e8322f96/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/28/500b3c56488e6be10000000a114084/frameset.htm
    regards
    zubair

  • Where can i find some study resources about Workers?

    Where can i find some study resources about Workers?
    Thanks!

    Thibault Imbert has packed some demos. You can get them using one of these links:
    http://labsdownload.adobe.com/pub/labs/flashplatformruntimes/flashplayer11-4/flashplayer11 -4_p1_ex_concurrency.zip
    https://dl.dropbox.com/u/7009356/ConcurrencyExamples.zip (mirror)
    For more information read these blog posts:
    http://www.bytearray.org/?p=4516 Introducing Flash Player 11.4/AIR 3.4 beta!
    http://www.bytearray.org/?p=4423 A sneak peek: Concurrency with ActionScript Workers

  • Where could I find some good free E-Book or paper about JAVA ?

    Dear All,
    I am searching some java websites , and find some free E-Book or paper about java,Could anyone tell me where those treasure are?
    I will deeply appreciate you .
    Thanks a lot !
    Caton

    You can try this one, tons of java resources:
    http://www.cl.cam.ac.uk/users/asa28/useful_java_research_links.htm
    Hope it helps.

  • 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.

Maybe you are looking for

  • Data Maintenance view exist - but unable to modify data in SM30.

    Dear all, Had created a customized table, with "Display/Maintenance Allowed". Table maintenance is also generated. So data in the customized table can now be maintained via SM30 in the Development server. However, when the customized table is transpo

  • Link to OBIEE 11g Dashboard Page from a 10g Dashboard Page

    Hi all, Is it possible to place a Link object on a dashboard page (within OBIEE 10g) and have that navigate to an OBIEE 11g dashboard page? If so, how is that implemented? Our 11g and 10g environments are on different servers. For business reasons (a

  • Ipad 2 wifi connection with Samsung Galaxy Y phone.

    Hi All, I have a Samsung Galaxy Y GT-S5360 model phone. I'm planning to have 3G internet through vodafone in my phone. Is it possible to connect internet from my samsung phone to ipad 2(without micro-sim) by enabiling hot spot feature in my samsung p

  • Can't Save Application State in Acrobat X Pro

    There once was a time that I could close Acrobat X Pro with various and sundry pdfs open and upon reopening the application, those selfsame documents would reappear. This is no longer the case, and I have no idea what has changed. I am using Acrobat

  • Can I copy or export endnotes?

    I have been sent a .docx which I have opened in Pages 5.5.1. I need to insert all the text into an Indesign file. Aside from not being able to copy the text and paste it into InDesign without losing all the paras (I have worked around that by pasting