Share via


WebServiceAdapter2.WSDLURL Property

Gets the Uniform Resource Locator (URL) of the Web Services Description Language (WSDL) file for the Web service associated with the WebServiceAdapterObject object.

Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Syntax

'Declaration
'Usage

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.

Note

The WSDLURL property corresponds to the WSDL file location when using the Data Connection Wizard. The serviceUrl of the Operation property contains the URL that is used to invoke the 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:

WebServiceAdapter2 wsAdapter2;

wsAdapter2 = (WebServiceAdapter2) thisXDocument.DataObjects["WebCityList"].QueryAdapter;
thisXDocument.UI.Alert("WSDL file URL: " + wsAdapter2.WSDLURL);

See Also

Reference

WebServiceAdapter2 Interface
WebServiceAdapter2 Members
Microsoft.Office.Interop.InfoPath Namespace