wsdl_wsi_validation

Web Services Functions (SOAP, WEB_SERVICE, Silverlight)

Validates the WSDL file of a web service and reports on compliance.

int wsdl_wsi_validation( const char *ServiceName );
ServiceName The name of the service. The location of the WSDL file is the path of the imported service.

The wsdl_wsi_validation function checks whether the WSDL file of an imported service is compliant with WS-I (Web Services Interoperability) standards.

Before this function is called in a script:

  • The external WS-I testing tool used for performing the validation must be installed (for example, the tool distributed by the WS-I organization). For more information on installing this tool and integrating this tool with OpenText Functional Testing, see the OpenText Functional Testing documentation.

  • The service for which the WSDL is being checked must be imported. VuGen locates the WSDL file in the folder of the imported service.

Return Values

This function returns LR_PASS (0) on a successful validation. The WSDL file is compliant with WS-I standards.

This function returns LR_FAIL (1) on failure or if the WSDL file is not compliant with WS-I standards.

Parameterization

The parameter ServiceName can be parameterized.

Example

This example shows the use of wsdl_wsi_validation to validate a WSDL for the Calc service which was imported by adding a service call.

web_service_call( "StepName=CalcCheck",
    "SOAPMethod=Calc|CalcSoapPort|Add",
    "ResponseParam=response",
    "Service=Calc",

"URL=http://16.59.60.46/MSSoapSamples30/Calc/Service/Rpc/IsapiCpp/Calc.WSDL",
    "ExpectedResponse=SoapResult",
    "Snapshot=t1221482536.inf",
    BEGIN_ARGUMENTS,
            "A=",
            "B=",
    END_ARGUMENTS,
    BEGIN_RESULT,
    END_RESULT,
    LAST );

wsdl_wsi_validation("ServiceName=Calc");
    return 0;