NISE Configuration API for C++

Hi,
is it possible to use NISE Configuration API in C++
I think all need is just a Wrapper-Class
or .tbl
greetings form
the Lake Of Contstance
Juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

Greetings, Juergen!
Bodensee is a beautiful place indeed!
In MSVC++ you can use the #import directive to include the type library of the COM component you'd like to use. The type library for NISE is embedded in the nise.dll, so you can point to the install location of nise.dll to get it. I think that you can also use the ProgID, for more location-independent application. See #import documentation on MSDN for more information.
Here is the code that uses NISE COM API in C++; you can plug it in as is, in a console app, and it works. The vdName ends up being “SwitchExecutiveExample” after clean installation.
A couple of important points:
tlbid(2)  attribute is important, because the COM type library is the second resource in a DLL; the first typelib resource is the NISE C API type library for VisualBasic.
no_namespace means that you can use the smart pointers without specifying namespace.
#include "stdafx.h"
#include "comdef.h"
#import "C:\windows\system32\nise.dll" tlbid(2) no_namespace
int _tmain(int argc, _TCHAR* argv[])
   HRESULT hr = CoInitialize(NULL);
   if (SUCCEEDED(hr))
      VirtualDevicesPtr nise(__uuidof(NiseVirtualDevices)); // creates a smart pointer, no need to destroy this one
      VirtualDevice*  vd; // this will hold a pointer to VirtualDevice interface.
      long numDevices;
      BSTR vdName;
      numDevices = nise->GetCount(); // get the number of virtual devices. You should have one (the example one) after default installation
      vd = nise->GetItem(1); // get the first element in the collection of virtual devices. You can loop from 1 to numDevices if you want to examine the whole system
      vdName = vd->GetName(); //get the name of the first configuration in a collection
      vd->Release(); // vd is not a smart pointer, you should release it. Smart pointers end in "Ptr"
      CoUninitialize();
    return 0;
-Serge
Srdan Zirojevic

Similar Messages

  • Using Dynamic Configuration api for SOAP adapter

    I want to use Dynamic Configuration api to send a SOAP request to a webservice.
    tha value in my adapter is
    my Target URL  is
    http://xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet? channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true
    which is the corresponding field i have to set in Dynamic Configuration?
    I have written the following code is this right?
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    String temp = "http:/"+"/sap.com/xi/XI/System/SOAP";
    DynamicConfigurationKey key = DynamicConfigurationKey.create(temp, "TServerLocation");
    String varURL =
    "http:/"+"/xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet?channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true";
    conf.put(key,varURL);
    return "";

    Hi,
    Yes, your code looks fine. Can you let me know what is the error you are getting. Have you checked the Flag in your communication channel.
    Use Adapter-Specific Message Attributes
    Variable Transport Binding 
    Once you test your scenario you can see the Dynamic URL in your message Header by going to tcode sxmb_moni. See if you are able to find something called DynamicConfiguration in your message haeader. If yes what is the value set there.
    PS: From the target URL you posted It looks like your webservice is hosted on the XI box itself. Is it the same XI box or different box? Just curious to know.
    Reward point if answer is helpful
    Thanks
    Amit

  • System Configuation API for Configuration Management

    Hi all,
    I've been toying around with the system configuration API for a little bit now and I see it as a great way for companies to use it as part of an overall configuration management utility. For example, if a customer wants to build up a new test rack with the same hardware aliases, configuration, and installed NI software then the system configuration API helps with most of this. I've already created a simple utility that can be used to query the currently installed hardware (of a local or remote system) and then programmatically rename the aliases based on a loaded configuration file or manual input. Likewise, the MAX export/import functionality can also be used. My application of this would primarily be non-RT and mostly PXI products but a good design could enable it to work for both.
    So, my question to the community is actually on the side where I haven't used the System Configuration API yet which is querying the installed software on a system. The software querying functionality of the System Configuration API is really only geared towards RT targets and not Windows based controllers. I'd like to be able to export a list of installed software/drivers on an older system and then compare it with what is installed on a newer system to make it easier for customers to determine whether they have everything required. I know that the MAX export or report has a list of installed software but is parsing this the best way of retrieving installed software (It's a beast of a file)? Does anyone have a better method?
    Regards,
    Tim Sileo
    RF Field Account Specialist
    National Instruments
    You don’t stop running because you get old. You get old because you stop running. -Jack Kirk, From "Born to Run" by Christopher McDougall.
    Solved!
    Go to Solution.

    Not sure if the attached VI will work across various Windows OS's since it uses a powershell command and I also don't know how well the command used will work across 32/64 bit applications...But, so far this little VI I came up with is returning the software that I want to query. Hope this is usefull for others and, as always, suggestions for improvement are welcomed!
    Tim Sileo
    RF Field Account Specialist
    National Instruments
    You don’t stop running because you get old. You get old because you stop running. -Jack Kirk, From "Born to Run" by Christopher McDougall.
    Attachments:
    NI_Software_Query(CMD).vi ‏12 KB

  • REST API: Create Deployment throwing error BadRequest (The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.)

    Hi All,
    We are trying to access the Create Deployment method stated below
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460813
    We have uploaded the Package in the blob and browsing the configuration file. We have checked trying to upload manually the package and config file in Azure portal and its working
    fine.
    Below is the code we have written for creating deployment where "AzureEcoystemCloudService" is our cloud service name where we want to deploy our package. I have also highlighted the XML creation
    part.
    byte[] bytes =
    new byte[fupldConfig.PostedFile.ContentLength + 1];
                fupldConfig.PostedFile.InputStream.Read(bytes, 0, bytes.Length);
    string a = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
    string base64ConfigurationFile = a.ToBase64();
    X509Certificate2 certificate =
    CertificateUtility.GetStoreCertificate(ConfigurationManager.AppSettings["thumbprint"].ToString());
    HostedService.CreateNewDeployment(certificate,
    ConfigurationManager.AppSettings["SubscriptionId"].ToString(),
    "2012-03-01", "AzureEcoystemCloudService", Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot.staging,
    "AzureEcoystemDeployment",
    "http://shubhendustorage.blob.core.windows.net/shubhendustorage/Infosys.AzureEcoystem.Web.cspkg",
    "AzureEcoystemDeployment", base64ConfigurationFile,
    true, false);   
    <summary>
    /// </summary>
    /// <param name="certificate"></param>
    /// <param name="subscriptionId"></param>
    /// <param name="version"></param>
    /// <param name="serviceName"></param>
    /// <param name="deploymentSlot"></param>
    /// <param name="name"></param>
    /// <param name="packageUrl"></param>
    /// <param name="label"></param>
    /// <param name="base64Configuration"></param>
    /// <param name="startDeployment"></param>
    /// <param name="treatWarningsAsError"></param>
    public static
    void CreateNewDeployment(X509Certificate2 certificate,
    string subscriptionId,
    string version, string serviceName, Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot deploymentSlot,
    string name, string packageUrl,
    string label, string base64Configuration,
    bool startDeployment, bool treatWarningsAsError)
    Uri uri = new
    Uri(String.Format(Constants.CreateDeploymentUrlTemplate, subscriptionId, serviceName, deploymentSlot.ToString()));
    XNamespace wa = Constants.xmlNamespace;
    XDocument requestBody =
    new XDocument();
    String base64ConfigurationFile = base64Configuration;
    String base64Label = label.ToBase64();
    XElement xName = new
    XElement(wa + "Name", name);
    XElement xPackageUrl =
    new XElement(wa +
    "PackageUrl", packageUrl);
    XElement xLabel = new
    XElement(wa + "Label", base64Label);
    XElement xConfiguration =
    new XElement(wa +
    "Configuration", base64ConfigurationFile);
    XElement xStartDeployment =
    new XElement(wa +
    "StartDeployment", startDeployment.ToString().ToLower());
    XElement xTreatWarningsAsError =
    new XElement(wa +
    "TreatWarningsAsError", treatWarningsAsError.ToString().ToLower());
    XElement createDeployment =
    new XElement(wa +
    "CreateDeployment");
                createDeployment.Add(xName);
                createDeployment.Add(xPackageUrl);
                createDeployment.Add(xLabel);
                createDeployment.Add(xConfiguration);
                createDeployment.Add(xStartDeployment);
                createDeployment.Add(xTreatWarningsAsError);
                requestBody.Add(createDeployment);
                requestBody.Declaration =
    new XDeclaration("1.0",
    "UTF-8", "no");
    XDocument responseBody;
    RestApiUtility.InvokeRequest(
                    uri, Infosys.AzureEcosystem.Entities.Enums.RequestMethod.POST.ToString(),
    HttpStatusCode.Accepted, requestBody, certificate, version,
    out responseBody);
    <summary>
    /// A helper function to invoke a Service Management REST API operation.
    /// Throws an ApplicationException on unexpected status code results.
    /// </summary>
    /// <param name="uri">The URI of the operation to invoke using a web request.</param>
    /// <param name="method">The method of the web request, GET, PUT, POST, or DELETE.</param>
    /// <param name="expectedCode">The expected status code.</param>
    /// <param name="requestBody">The XML body to send with the web request. Use null to send no request body.</param>
    /// <param name="responseBody">The XML body returned by the request, if any.</param>
    /// <returns>The requestId returned by the operation.</returns>
    public static
    string InvokeRequest(
    Uri uri,
    string method,
    HttpStatusCode expectedCode,
    XDocument requestBody,
    X509Certificate2 certificate,
    string version,
    out XDocument responseBody)
                responseBody =
    null;
    string requestId = String.Empty;
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = method;
                request.Headers.Add("x-ms-Version", version);
                request.ClientCertificates.Add(certificate);
                request.ContentType =
    "application/xml";
    if (requestBody != null)
    using (Stream requestStream = request.GetRequestStream())
    using (StreamWriter streamWriter =
    new StreamWriter(
                            requestStream, System.Text.UTF8Encoding.UTF8))
                            requestBody.Save(streamWriter,
    SaveOptions.DisableFormatting);
    HttpWebResponse response;
    HttpStatusCode statusCode =
    HttpStatusCode.Unused;
    try
    response = (HttpWebResponse)request.GetResponse();
    catch (WebException ex)
    // GetResponse throws a WebException for 4XX and 5XX status codes
                    response = (HttpWebResponse)ex.Response;
    try
                    statusCode = response.StatusCode;
    if (response.ContentLength > 0)
    using (XmlReader reader =
    XmlReader.Create(response.GetResponseStream()))
                            responseBody =
    XDocument.Load(reader);
    if (response.Headers !=
    null)
                        requestId = response.Headers["x-ms-request-id"];
    finally
                    response.Close();
    if (!statusCode.Equals(expectedCode))
    throw new
    ApplicationException(string.Format(
    "Call to {0} returned an error:{1}Status Code: {2} ({3}):{1}{4}",
                        uri.ToString(),
    Environment.NewLine,
                        (int)statusCode,
                        statusCode,
                        responseBody.ToString(SaveOptions.OmitDuplicateNamespaces)));
    return requestId;
    But every time we are getting the below error from the line
     response = (HttpWebResponse)request.GetResponse();
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Code>BadRequest</Code>
      <Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message>
    </Error>
     Any help is appreciated.
    Thanks,
    Shubhendu

    Please find the request XML I have found it in debug mode
    <CreateDeployment xmlns="http://schemas.microsoft.com/windowsazure">
      <Name>742d0a5e-2a5d-4bd0-b4ac-dc9fa0d69610</Name>
      <PackageUrl>http://shubhendustorage.blob.core.windows.net/shubhendustorage/WindowsAzure1.cspkg</PackageUrl>
      <Label>QXp1cmVFY295c3RlbURlcGxveW1lbnQ=</Label>
      <Configuration>77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0NCiAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KDQogIFRoaXMgZmlsZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgdG9vbCBmcm9tIHRoZSBwcm9qZWN0IGZpbGU6IFNlcnZpY2VDb25maWd1cmF0aW9uLkNsb3VkLmNzY2ZnDQoNCiAgQ2hhbmdlcyB0byB0aGlzIGZpbGUgbWF5IGNhdXNlIGluY29ycmVjdCBiZWhhdmlvciBhbmQgd2lsbCBiZSBsb3N0IGlmIHRoZSBmaWxlIGlzIHJlZ2VuZXJhdGVkLg0KDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCi0tPg0KPFNlcnZpY2VDb25maWd1cmF0aW9uIHNlcnZpY2VOYW1lPSJXaW5kb3dzQXp1cmUxIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iMSIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDEyLTA1LjEuNyI+DQogIDxSb2xlIG5hbWU9IldlYlJvbGUxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIyIiAvPg0KICAgIDxDb25maWd1cmF0aW9uU2V0dGluZ3M+DQogICAgICA8U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IkRlZmF1bHRFbmRwb2ludHNQcm90b2NvbD1odHRwcztBY2NvdW50TmFtZT1zaHViaGVuZHVzdG9yYWdlO0FjY291bnRLZXk9WHIzZ3o2aUxFSkdMRHJBd1dTV3VIaUt3UklXbkFrYWo0MkFEcU5saGRKTTJwUnhnSzl4TWZEcTQ1ZHI3aDJXWUYvYUxObENnZ0FiZnhONWVBZ2lTWGc9PSIgLz4NCiAgICA8L0NvbmZpZ3VyYXRpb25TZXR0aW5ncz4NCiAgPC9Sb2xlPg0KPC9TZXJ2aWNlQ29uZmlndXJhdGlvbj4=</Configuration>
      <StartDeployment>true</StartDeployment>
      <TreatWarningsAsError>false</TreatWarningsAsError>
    </CreateDeployment>
    Shubhendu G

  • Configure SSO for ITS to R/3 using SNC/Kerberos

    Our R/3 systems had been configured for SSO using SNC and Kerberos for awhile now.  We now have a requirement to configure SSO between ITS and R/3.  Since our R/3 env. has been using kerberos library, we won't be able to use SAP Cryptographic library.  I had modified the registry, environment and services in itsadmin to point to the kerberos library and principal names for agate and r/3 servers as described in SNC User Guide; also, I updated table SNCSYSACL with the Agate SNC name.  That seems to work fine.  From the trace file, it recognized GSS-API library for Kerberos and the SNC name for Agate.  However, when I tried to logon to R/3 from ITS, I still am being prompted with the logon screen to enter my SAP account/password.
    I found several whitepapers and documentations stating that ITS does support Kerberos for SSO but I couldn't find any procedure on how to implement it.  Following is the error I'm getting from the sapbasis.trc file but I can't find any document on this error:
    =====================================================
    [Thr 5284] SncInit(): Initializing Secure Network Communication (SNC)
    [Thr 5284]       PC with Windows NT (mt,ascii,SAP_UC/size_t/void* = 8/32/32)
    [Thr 5284] SncInit(): Trying environment variable SNC_LIB as a
          gssapi library name: "C:\WINNT\system32\gsskrb5.dll".
    [Thr 5284]   File "C:\WINNT\system32\gsskrb5.dll" dynamically loaded as GSS-API v2 library.
    [Thr 5284]   The internal Adapter for the loaded GSS-API mechanism identifies as:
      Internal SNC-Adapter (Rev 1.0) to Kerberos 5/GSS-API v2
    [Thr 2888] Sun Jan 15 22:44:59 2006
    [Thr 2888] <<- ERROR: SncSetParam()==SNCERR_PARAM_DENIED
    [Thr 2888] *** WARNING => NO Domain! domain==NULL means: No domain at all within the cookie. [sapss1_loctr 333]
    [Thr 2888] Sun Jan 15 22:45:29 2006
    [Thr 2888] *** WARNING => NO Domain! domain==NULL means: No domain at all within the cookie. [sapss1_loctr 333]
    =====================================================
    Does anyone know what am I missing?  Any help is greatly appreciated.
    Thank you!
    Diem

    Hi Markus,
    I also just installed/configured PAS for LDAP authentication using the "PAS for External Authentication Mechanisms" documentation.  I think the domain problem probably due to not having the external authentication mechanism install (in this case - PAS).  Does that sound right to you?
    I tried both options for ~extid_type parameter = "LD" and "UN".  I added the DN information to table USREXTID when ~extid_type="LD" but both options gave me error of "LDAP authentication failed".  I increased the trace level for sapextaut.trc but I don't see enough detail information.  Following are the errors/data from the trace file.  Can you please let me know how I can tell what string is being passed for authentication? 
    I'm quite sure the LDAP host and port data is correct since we've been using the same information for the SAP LDAP connector and we've been using our LDAP connector between MS AD and R/3 for a long time without any problem. 
    To logon to R/3 through ITS, I entered the AD account (CN attribute in AD) when I got the errors.
    Thank you very much for all your help.
    Diem Tran
    Trace:
    =====================================================
    2006-01-18T01:39:30.734 p001688 t4992 s0158B4E8 [sapextauth,  437]: W sapextauth: PAS session begins...
    2006-01-18T01:39:30.734 p001688 t4992 s0158B4E8 [sapextauth,  456]:     sapextauth: SncNameR3 is:    "p:na1adm/[email protected]"
    2006-01-18T01:39:30.734 p001688 t4992 s0158B4E8 [sapextauth,  462]:     sapextauth: SncNameAGate is: "p:[email protected]"
    2006-01-18T01:39:30.750 p001688 t4992 s0158B4E8 [sapextauth,  468]:     sapextauth: SNC_LIB is:      "C:\WINNT\system32\gsskrb5.dll"
    2006-01-18T01:39:30.750 p001688 t4992 s0158B4E8 [sapextauth,  568]:     sapextauth: XGatConnectSession leaving....
    2006-01-18T01:39:30.750 p001688 t4992 s0158B4E8 [sapextauth,  616]:     sapextauth: XGatHandleLogin called....
    2006-01-18T01:39:30.750 p001688 t4992 s0158B4E8 [sapextauth,  976]:     sapextauth: Entering XGatHandleLogin with LDAP...
    2006-01-18T01:39:30.750 p001688 t4992 s0158B4E8 [sapextauth,  993]: W Either ~login or ~password missing, returning XGDKRCloginrequired.
    2006-01-18T01:39:50.281 p001688 t4992 s00000000 [sapextauth,  398]:     sapextauth: XGatEventOpenSession called...
    2006-01-18T01:39:50.281 p001688 t4992 s0158B4E8 [sapextauth,  616]:     sapextauth: XGatHandleLogin called....
    2006-01-18T01:39:50.281 p001688 t4992 s0158B4E8 [sapextauth,  976]:     sapextauth: Entering XGatHandleLogin with LDAP...
    2006-01-18T01:39:50.296 p001688 t4992 s0158B4E8 [sapextauth, 1059]:     sapextauth: LDAP port ist 389
    2006-01-18T01:39:50.296 p001688 t4992 s0158B4E8 [sapextauth, 1261]: E sapextauth: LDAP authentication failed.
    2006-01-18T01:39:50.296 p001688 t4992 s0158B4E8 [sapextauth, 1277]: E sapextauth: Wrong try for user Tran_Diem
    2006-01-18T01:39:59.140 p001688 t4992 s00000000 [sapextauth,  398]:     sapextauth: XGatEventOpenSession called...
    2006-01-18T01:39:59.156 p001688 t4992 s0158B4E8 [sapextauth,  616]:     sapextauth: XGatHandleLogin called....
    2006-01-18T01:39:59.156 p001688 t4992 s0158B4E8 [sapextauth,  976]:     sapextauth: Entering XGatHandleLogin with LDAP...
    2006-01-18T01:39:59.156 p001688 t4992 s0158B4E8 [sapextauth, 1059]:     sapextauth: LDAP port ist 389
    2006-01-18T01:39:59.156 p001688 t4992 s0158B4E8 [sapextauth, 1261]: E sapextauth: LDAP authentication failed.
    2006-01-18T01:39:59.156 p001688 t4992 s0158B4E8 [sapextauth, 1277]: E sapextauth: Wrong try for user Tran_Diem
    =======================================================

  • ABAP API for MDM work flow

    Hi SDN,
    I need some information related to ABAP API for MDM workflow. I did search in SDN and I found one solution in a thered posted on Jul-2008.
    ABAP API - MDM Workflow execute
    My dought is: Do we have any ABAP API for call MDM work flow. Please provide me the solution ASAP. Apprciate for your immediate response.
    Regards,
    Kumar.

    Hi LAKSHMAN ,
    To answer your question specifically
    Using ABAP api you cannot call MDM workflows as of mdm 5.5 there are no functions specific to calling MDM workflows in ABAP.If you want to implement workflows on ABAP side you need to go for SAP ECC workflows which is a different topic than MDM>
    To call MDM workflows over the Java stack ie WAS (SAP portal),You have 2 ways
    - UWL
    - Guided Procedures.
    - UWL is a way of calling MDM workflows on EP.Wherein the workflow design will be done in MDM and it will only be called in portal using appropiate connections and configurations.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/771f1a61-0e01-0010-daa9-93a52905da09 (uwl)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45 (UWL config)
    - GP is a way where by you need to design the entire workflow on SAP portal the logic can be pertaining to MDM but the design is completely on portal using webdynpros and api.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92811997-0d01-0010-9584-f7d535177831  (Guided procedures)
    Enterprise Master Data Management   (EP Guided)
    To know more on ABAP api and its provider classes you can refer the below:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51fca44  (abap api webinar)
    Re: Abap api error (Abap api provider classes Forum)
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • RFC Look Up APIs for a IDOC Receiver Communication Channel

    Hi,
    Can we use RFC Look Up APIs in UDF for a IDOC Receiver Communication Channel. (File to IDOC Scenario). Requirement is to send a notificaiton when IDOC got posted with IDOC number.
    Best Regards,
    Madan Agrawal

    As the name suggests, RFC lookup uses RFC receiver channel only. In mapping of your File to Idoc scenario, you may perform this lookup.
    Requirement is to send a notificaiton when IDOC got posted with IDOC number.
    Configure ALEAudit for this requirement. How were you planning to use RFC lookup for such a requirement?
    Regards,
    Prateek

  • ChangeConfigurationByName fails with "The specified configuration settings for Settings are invalid."

    Hello,
    I am tryint to update deployment and always have following error
    "The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers."
    Have found similar
    thread  and
    stack overflow - without any success. I am not chaning anyting. Just reading deployment configuration and tryint to update with the same settings. I use .net azure sdk  wrappers to generate requests. Code looks like:
    var deployment = client.Deployments.GetByName(location.DataCenter, location.Cluster);var result = client.Deployments.ChangeConfigurationByName(location.DataCenter, location.Cluster, new DeploymentChangeConfigurationParameters{  Configuration = deployment.Configuration});
    Catched request response from fiddler:
    POST https://management.core.windows.net/[subscription-id]/services/hostedservices/[service-name]/deployments/[deployment-name]/?comp=config HTTP/1.1
    x-ms-version: 2013-11-01
    User-Agent: Microsoft.WindowsAzure.Management.Compute.ComputeManagementClient/0.9.0.0
    client-tracking-id: 2
    Content-Type: application/xml
    Host: management.core.windows.net
    Content-Length: 544
    Expect: 100-continue
    Connection: Keep-Alive
    <ChangeConfiguration xmlns="http://schemas.microsoft.com/windowsazure">
    <Configuration>PFNlcnZpY2VDb25maWd1cmF0aW9uIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL1NlcnZpY2VIb3N0aW5nLzIwMDgvMTAvU2VydmljZUNvbmZpZ3VyYXRpb24iPiAgPFJvbGUgbmFtZT0ieWF1aGVuLWNjaXMyIj4gICAgPEluc3RhbmNlcyBjb3VudD0iMSIgLz4gIDwvUm9sZT48L1NlcnZpY2VDb25maWd1cmF0aW9uPg==</Configuration>
    <ExtendedProperties />
    </ChangeConfiguration>
    Response
    HTTP/1.1 400 Bad Request
    Cache-Control: no-cache
    Content-Length: 351
    Content-Type: application/xml; charset=utf-8
    Server: 1.0.6198.51 (rd_rdfe_stable.140226-1543) Microsoft-HTTPAPI/2.0
    x-ms-servedbyregion: ussouth
    x-ms-request-id: dcb1c5aedb5872d4aaf90acfede2de0b
    Date: Tue, 04 Mar 2014 13:38:10 GMT
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The specified configuration settings for Settings are invalid. Verify
    that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message></Error>
    the same data returned by operation status. Decoded base-64 encoded string looks like
    <ServiceConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration">
    <Role name="yauhen-ccis2">
    <Instances count="1" />
    </Role>
    </ServiceConfiguration>
    Have tried without new line symbols, without xmlns, updating by production. without any success

    Hi,
    The configuration file is a file with extension .cscfg. If you have Visual Studio, the file is automatically generated when you create the project, and automatically updated when you modify the project's properties.
      >> Not sure were could I get content of this file from api?
    It's needed to encode this file's content use base64, and put the result in the body of your request. (Please refer to
    http://msdn.microsoft.com/en-us/library/windowsazure/ee758710.aspx for more information.) 
      >> <ChangeConfiguration xmlns="http://schemas.microsoft.com/windowsazure">
    <Configuration>PFNlcnZpY2VDb25maWd1cmF0aW9uIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL1NlcnZpY2VIb3N0aW5nLzIwMDgvMTAvU2VydmljZUNvbmZpZ3VyYXRpb24iPiAgPFJvbGUgbmFtZT0ieWF1aGVuLWNjaXMyIj4gICAgPEluc3RhbmNlcyBjb3VudD0iMSIgLz4gIDwvUm9sZT48L1NlcnZpY2VDb25maWd1cmF0aW9uPg==</Configuration>
    However, may I know how you find the body for your request? (It seems you do a base64 decoding, you find it is a valid configuration file, but it doesn't have any configuration settings.) Actually, the settings defined in csdef needed to
    be contained in the configuration file.
    Best Regards,
    Ming Xu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • API for modifyting config.xml (or reading it)

    In 5.1 there used to be T3ServicesDef.config() to get the weblogic.properties
    file.
    Since this file has been changed to XML format, is there any API
    to read it or modify it.
    In the Admin Guide it says:
    "WebLogic Server includes a configuration Application Programmatic
    Interface (API) which can be used by programs to modify configuration
    attributes of resources in the domain. "
    but I don't find any documentation on API and T3Services.config()
    has disappeared in 6.0.
    Can someone help me.
    Sushil

    There are Config MBeans to get information about the server configuration. Have
    a look at the Javadocs for the weblogic.management.configuration package for more
    info...
    Sushil Goel wrote:
    In 5.1 there used to be T3ServicesDef.config() to get the weblogic.properties
    file.
    Since this file has been changed to XML format, is there any API
    to read it or modify it.
    In the Admin Guide it says:
    "WebLogic Server includes a configuration Application Programmatic
    Interface (API) which can be used by programs to modify configuration
    attributes of resources in the domain. "
    but I don't find any documentation on API and T3Services.config()
    has disappeared in 6.0.
    Can someone help me.
    Sushil

  • ABAP APIs for MDM Workflow Modification

    Hello All
    I require a help from all of you. Currently I have a particular business case where I need to configure the MDM workflow & do changes & modifications in it via ABAP APIs. Currently we are having Java APIs in plcae.
    Can you please tell me whether we have some ABAP APIS for this MDM Workflows, if yes what are their EXact names & functionalitites.
    Also can we download them from Service Marketplace.
    Please reply ASAP.
    Regards
    Madhurim Basu

    Hi Madhurim Basu
    ABAP API(SAP MDM 5.5.-7.1) are'nt support workflow management
    SAP MDM(5.5-7.1) JAVA API  are support workflow
    More about JAVA API you can read from:
    http://help.sap.com/javadocs/MDM/current/
    Regards
    Kanstantsin

  • How to configure WSDP for use in IDE like Netbeans

    Hello,
    I have two questions about WSDP integration in IDE like Netbeans:
    1)
    I have a problem compiling the WSDP tutorial examples inside Netbeans.
    I believe the problem is that Netbeans doesn't know about the ${jwsdp.home} attribute in the build files.
    It's the same when trying to compile it with the Jakarta ANT release and not the one coming with WSDP.
    I'd prefer to add some kind of property to Netbean's ANT executor, but how?
    Second option would be to use the WSDP ANT in Netbeans instead, but I don't know how to, either.
    I can't believe that Sun only made it working with the included ANT but I can't find the {jwsdp.home} declaration anywhere although I think it's part of the classpath argument of the WSDP ant script.
    2)
    Is it possible to integrate the WSDP Tomcat into Netbeans? I tried "Server Registry->Installed Servers->Tomcat 4.0->Add Server" but had problems starting it. Maybe because the version is different?
    Anyway, the included one might do.
    But how to install a different Server type? I'm thinking about Sun ONE App Server 7 in order to configure it for J2EE Applications.
    I think it will utilize the "New Module" wizard. Can someone please describe in short how to? Or even point me to a document?
    Many thanks
    Carsten

    Ok, I solved it.
    Problem was about custom task definitions in ANT.
    As I understand it, it's necessary to provide a <classpath> for each unknown custom taskdef class in order to refer the class. This was not correct in the WSDP tutorial build.xml files.
    The ANT documentation provides at "IDE integration" helpful links to that issue.
    BTW, my second question about integrating App Servers into Netbeans is still open.
    I think it utilizes the Netbeans Server Plugin API but how do I recognize a valid module file?
    Carsten

  • Making API for a fingerprint reader

    Hi i having a fingerprint reader and i want to make and API for this? I am using Microsoft fingerprint reader. But i have no knoweldge about making the API.
    Can you please tell me how to make an normal API for a device and for the fingerpring reader?

    Hi G.,
    It comes with it's own software: Authentec Truesuite. Since Apple killed the company when they took over the technology, you have to find alternative sources to download the software, authentec.com doesn't exist anymore. The hardware itself is still for sale on amazon I think.
    The fingerprint scanner works perfectly when you stay on Mac OS X Mountain Lion. When you upgrade it is even advised to remove the Authentec Truesuite software first, since this could lock you out of the system after the upgrade.
    In answer to your questions:
    1. Yes, you can login the Mac with the fingerprint scanner, that is my main purpose; it makes it easier for my wife to use it and I can still configure a good password.
    2. Yes, you can use the fingerprint scanner when installing software; you don't have to enter a password anymore. This is my second reason to use it.
    3. This should work, but I never tried it; I use lastpass for this in combination with a Yubikey.
    4. No, it uses Apple's keychain.
    5. Yes, it uses Apple's keychain.
    As I understand it, a checksum of your fingerprint is stored in the fingerprint scanner hardware, not the whole fingerprint.
    Regards,
    Remco

  • Is there any available API for BOE Translator?

    Hi,
          Is there any available API SDK for BOE Translator?
          Since the client has 2000+ measures to be translated, simply configuring the translation manually cannot meet the needs. The client would like to build the translation in batch through code.
          So does the Translator have any API to call?
          Any suggestion is appreciated.
    Best Regards,
    Vincent Li

    There currently is no public API for the Translation Manager.
    Sincerely,
    Ted Ueda

  • API for modifying rep:Policy nodes

    The JCR API does not work when we are trying to modify/create rep:policy nodes.
    I tried to have a look at the CqActionsServlet and CQActions class but could not make much progress on understanding the implementation.
    Is there any API documentation on how  to do this.
    Basically the idea is to have a package of permission nodes (rep:policy) in the svn. As part of build process, we want to read the rep_policy.xmls and configure the corresponding permissions in CQ using RMI.

    Could you explain what you mean by the JCR API? While JCR 1.0 didn't have any API for managing access control policies, JCR 2.0 does.
    I don't know think AccessControlManager works over RMI. The JIRA issue is still open: https://issues.apache.org/jira/browse/JCR-2113
    There is a Sling bundle which you can install to manage ACLs via HTTP: http://sling.apache.org/site/managing-permissions-jackrabbitaccessmanager.html. Search this forum for prior discussions.
    For the use case you describe, you should be able to do that with content packages.

  • Server API for Looking up Web Applications

    Is there a public server API for obtaining a list of deployed web applications and configuration information for those deployed applications?
    Thanks.

    We strongly discourage to use the tomcat APIs. We may support those API's this version and may not support in next version. You can find the deployed app's from server.xml or admin interface. There is a work around to find the deployed applications programatically by using the command
    asadmin> ist-components --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure | -s] [--passwordfile file_name] [--type application|ejb|web|connector] instancename

Maybe you are looking for

  • Field Heading in F4IF_INT_TABLE_VALUE_REQUEST

    Dear all, I am calling function F4IF_INT_TABLE_VALUE_REQUEST on F4 help request. Values are fetched and shown as desired, but how should I name the fields? Suppose the output field is MATNR, then the fieldname should read 'Material' but as of now its

  • MRP Exception 20

    Hi there In the Stock Requirements List, some of my parts have more than one PO and an additional Requisition. The POs have the exception message '20 - Cancel Process'. Seemingly MRP creates more Reqs despite the fact that a PO exists already. No cha

  • Can ship to party be changed while creating delivery?

    Hi All,   I've created a delivery for a sales order using the fm "RV_DELIVERY_CREATE",while creating the delivery using this fm can i change the 'ship_to_party'?

  • Opening files from BR in PS CC-2014

    I want to open files in Br in PS CC-2014 automatically.  I don't know how to access preferences and make the change.  I need step by step directions. Currently the files open in Acrobat.      Thanks.

  • Unable to open an AIR file

    I created an .AIR file from the last lesson in Day 3, however I'm unable to open the file to install the application. Is there something I'm missing?