Salesforce

Monitoring Requests and Responses of Web Services (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Monitoring Requests and Responses of Web Services (Magic xpa 3.x)

Objective

When consuming Web services (either by using the Invoke Web S or Invoke Web S Lite operation), the engine does a lot of work for us.

There are some cases in which we need to monitor the request / response.

How can we do this using external tools?

Solution

SOAP Spy – When using the Invoke Web S. operation

The SOAP Spy utility is placed under the SSJ\bin folder. The SSJ folder is usually installed in the same location as the Magic xpa installation folder.

The best way to open the directory:

  1. Go to Start / Run and type %WASP_HOME%.

  2. Run the utility.

  3. Click Spy -> Proxy Port....

  4. Choose a port.

  5. Go to Magic xpa's Settings -> Environment -> External.

  6. In the SOAP Spy Address field give the same port number given in SOAP Spy.

The utility now monitors all requests and responses sent from Magic xpa and received by it.

Note that having a value in the SOAP Spy Address field without SOAP Spy running will result in an error.


SOAP Toolkit – When using the Invoke Web S Lite operation

  1. Install the toolkit from:

    http://www.microsoft.com/downloads/en/details.aspx?FamilyId=C943C0DD-CEEC-4088-9753-86F052EC8450&displaylang=en.

  2. Start the trace utility from Start menu -> Programs -> Microsoft SOAP Toolkit Version 3.

  3. Click File -> Formatted Trace.

  4. In Magic xpa, click Options -> Settings -> Services.

  5. Replace the first part of the Web service address with localhost:8081 (where 8081 can be any available port).

for example:

http://www.webservicex.com/CurrencyConvertor.asmx is changed to:

http://localhost:8081/CurrencyConvertor.asmx

  1. Enter the chosen local port in the local port field.

  2. Enter the first part of the Web service address in the destination host field in the Trace setup of the Trace utility.

In our example:

Destination host: www.webservicex.com.

  1. Click OK.

The tool now monitors the communication between Magic xpa and the Web service.

Reference
Attachment 
Attachment