Salesforce

Managed Requesters (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Managed Requesters (Magic xpa 4.x)

This topic is only relevant while using the Broker as a middleware.

.NET Requesters

If you want your .NET application, such as ASP.NET or a .NET web service, to interact with Magic xpa, you should call Magic xpa via the MgRequester.dll. The MgRequester.dll library and a sample test project can be found in the MgRequester.ZIP file under the support folder.

To run the sample test project, you need to:

  1. Uncomment the application GSTest in the Mgrb.ini file.

  1. Copy the requester libraries to the application folder as follows:

    1. For 64-bit requesters: Copy the MgRequester.dll and MGRQGNRC.dll libraries from the Requester\64bit\ folder into the Tester\ folder.

    2. For 32-bit requesters: Copy the MgRequester.dll library from the Requester\32bit\ folder and the MGRQGNRC.dll library from the root folder of the installation into the Tester\ folder.

  2. Optionally, copy the requester configuration file (mgreq.ini) into the Tester\ folder (This is an optional step).

  3. Execute the tester program:

    1. Direct execution: Execute the MgRequesterTester.exe file.

    2. Execution from Visual Studio: Open the Tester\Project\MgRequesterTester.sln solution, build, and execute.

  4. You can also change the broker’s address by using the overloaded RequestsFactory.GetInstance("[host/]port"). For example, RequestsFactory.GetInstance("10.9.9.17/5119") or RequestsFactory.GetInstance("5119").

Since version: 2.5

Java Requesters

If you want your Java application to interact with Magic xpa, you should call Magic xpa via the MgRequester.jar. The MgRequester.jar can be found in the support folder.

64-bit Execution

Copy into an existing folder or set the CLASSPATH to locate the MgRequester.jar from the support folder and the MGRQGNRC.dll library from the Requester\64bit\ folder of MgRequester.ZIP (refer to the .NET requesters section above).

32-bit Execution

32-bit execution is similar to 64-bit execution, but you take the 32-bit MGRQGNRC.dll library from the root folder of the installation.

Reference
Attachment 
Attachment