WSDLURL Property

Microsoft Office InfoPath

A read-only property that returns a string value containing the Uniform Resource Locator (URL) of the Web Services Description Language (WSDL) file for the Web service associated with the WebServiceAdapter object.

expression.WSDLURL

expression    Required. An expression that returns a reference to the WebServiceAdapter object.

Security Level

2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Remarks

The WSDL file is an XML document that defines the format of messages an XML Web service understands. The service description serves as an agreement that defines the behavior of an XML Web service and instructs potential clients in how to interact with it. The behavior of an XML Web service is determined by messaging patterns that the service defines and supports. These patterns conceptually dictate what the service consumer can expect to happen when a properly formatted message is submitted to the XML Web service.

Example

In the following example, the WSDLURL property of the WebServiceAdapter object is used to display the URL of the WSDL file that is used for the Web service:

var objWSAdapter;

objWSAdapter = XDocument.DataObjects("WebCityList").QueryAdapter;
XDocument.UI.Alert("WSDL file URL: " + objWSAdapter.WSDLURL);