WebServiceAdapter.WSDLURL Property

InfoPath Developer Reference

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. Read-only

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.WSDLURL

expression   An expression that returns a WebServiceAdapter object.

Return Value
String

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.

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.

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:

JScript
  var objWSAdapter;

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

See Also