version 2003
Get Web Service error info (infoType) String
Parameter | Type | Description | |
infoType | Longint | Information to be retrieved | |
Function result | String | Information about the last SOAP error |
Description
The Get Web Service error info command returns information about the last error encountered during the execution of a SOAP request sent to a remote Web Service.
The infoType parameter allows you to indicate the type of information that you want to obtain. You must pass one of the constants listed below, located in the Web Services (Client) theme:
Constant | Type | Value |
Web Service Error Code | Longint | 0 |
Web Service Detailed Message | Longint | 1 |
Web Service HTTP Error code | Longint | 2 |
Web Service Fault Actor | Longint | 3 |
These constants are used to retrieve the following values:
Web Service Error Code: Main error code (defined by 4D). This code is also returned in the Error system variable.
List of codes that may be returned:
9910: Soap fault (see also Web Service Fault Actor) | |
9911: Parser fault | |
9912: HTTP fault (see also Web Service HTTP Error code) | |
9913: Network fault | |
9914: Internal fault. |
Web Service Detailed Message: Detailed message describing the error. The type of message differs according to the main error type.
- If the main error = 9910 (Soap fault): the cause of the SOAP fault is returned (e.g.: "the remote method does not exist").
- If the main error = 9911 (Parser fault): the location of the error in the XML document is returned.
- If the main error = 9912 (HTTP fault):
- if the HTTP error is located in the interval [300-400] (problems linked to the location of the | |
requested document), the new location of the requested URL is returned.. | |
- for any other HTTP error code, the <body> is returned. |
- If the main error = 9913 (Network fault): the cause of the network fault is returned (e.g.: "ServerAddress: DNS lookup failure")
- If the main error = 9914 (Internal fault): the cause of the internal fault is returned.
Web Service HTTP Error code: HTTP error code (to be used in case of main error 9912).
Web Service Fault Actor: Cause of the error (returned by the SOAP protocol to be used in the case of main error 9910).
- Version Mismatch | |
- Must Understand (the server was unable to interpret a parameter defined as mandatory) | |
- Client Fault | |
- Server Fault | |
- Encoding Unknown . |
An empty string is returned when no information is available.