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
ReadOnly Property WSDLURL As String
    Get
'Usage
Dim instance As WebServiceAdapter2
Dim value As String

value = instance.WSDLURL
string WSDLURL { get; }

Property value

Type: System.String

Implements

WebServiceAdapter.WSDLURL

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.

Examples

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

WSDLURL overload

Microsoft.Office.Interop.InfoPath namespace