IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

query Windows machien to fetch Wbem classes

  • 1.  query Windows machien to fetch Wbem classes

    Posted Mon March 09, 2009 02:01 PM

    Hi
    How can you use entireX SDK to write an application on Linux which could fetch Wbem classes from windows machine?


    #Mainframe-Integration
    #webMethods
    #EntireX-DCOM


  • 2.  RE: query Windows machien to fetch Wbem classes

    Posted Mon March 09, 2009 06:55 PM

    You would need to use the Java or .Net RPC Server on the Windows machine. That server’s methods would fetch the information you need from that Windows machine.

    You would use any EntireX Wrapper - Java or XML, for example, to make the client call from the Linux application.


    #Mainframe-Integration
    #EntireX-DCOM
    #webMethods


  • 3.  RE: query Windows machien to fetch Wbem classes

    Posted Tue March 10, 2009 05:52 AM

    Hi Douglas
    Thanks for the response.
    Is it not possible to query windows machine for Wbem classes without having to install any server there. We already have WMI server running on the windows box which can return the classes.


    #webMethods
    #EntireX-DCOM
    #Mainframe-Integration


  • 4.  RE: query Windows machien to fetch Wbem classes

    Posted Tue March 10, 2009 12:53 PM

    I think there is a remote management capability using SOAP.


    #webMethods
    #EntireX-DCOM
    #Mainframe-Integration


  • 5.  RE: query Windows machien to fetch Wbem classes

    Posted Tue March 10, 2009 01:53 PM

    Any idea on how do we do it using SOAP ?


    #webMethods
    #EntireX-DCOM
    #Mainframe-Integration


  • 6.  RE: query Windows machien to fetch Wbem classes

    Posted Tue March 10, 2009 05:53 PM


  • 7.  RE: query Windows machien to fetch Wbem classes

    Posted Wed March 11, 2009 01:32 PM

    Hi
    i’ve wriiten a sample client application which simply tries to connect to remote windows machine. But the CoCreateInstanceEx function is returning an error (80040154). Can you tell me what might be going wrong?


    #webMethods
    #EntireX-DCOM
    #Mainframe-Integration


  • 8.  RE: query Windows machien to fetch Wbem classes

    Posted Wed March 11, 2009 01:45 PM

    here is the snippet of the code

    MULTI_QI mq;
    COSERVERINFO csi, pcsi=NULL;
    CHAR
    sz = “10.10.1.1”;
    CHAR nm[100];
    WCHAR pwszHostName [MAX_PATH];
    memset(&csi, 0, sizeof(COSERVERINFO));
    pcsi = &csi;
    HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED);
    hr = CoInitializeSecurity(
    NULL,
    -1, // COM authentication
    NULL, // Authentication services
    NULL, // Reserved
    RPC_C_AUTHN_LEVEL_CONNECT, // Default authentication
    RPC_C_IMP_LEVEL_IMPERSONATE, // Default Impersonation
    NULL, // Authentication info
    0, // Additional capabilities
    NULL // Reserved
    );

    mq.pIID = &IID_IWbemLocator;
    mq.pItf = NULL;
    mq.hr = S_OK;
    csi.pwszName = 0;

    hr = CoCreateInstanceEx(CLSID_WbemLocator, NULL, CLSCTX_REMOTE_SERVER, pcsi, 1, &mq);


    #webMethods
    #Mainframe-Integration
    #EntireX-DCOM


  • 9.  RE: query Windows machien to fetch Wbem classes

    Posted Wed March 11, 2009 03:50 PM

    you might try a Microsoft or Linux forum for information on DCOM generally. This forum is focused on the DCOM sub-component of the EntireX package and does not really address general DCOM questions.


    #webMethods
    #Mainframe-Integration
    #EntireX-DCOM