Generated Proxy Classes path Property

Gets or sets the Web service path. This property exists at run time after the proxy class has been generated by the server.


To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel methods.

// Syntax for the generated proxy class.
var path = MyNameSpace.MyServiceProxy.get_path(); 

// Syntax for a proxy class instance.
var path = myServiceProxy.get_path(); 





A string that contains the Web service path.

Return Value

The string that represents the Web service path.


The path value can be an absolute virtual path, a relative virtual path, or a fully qualified domain name and path.


You can set the path on either the generated proxy class or on instances of the class. When you invoke a method of an instance, if the path has not been explicitly set for the instance, the path property returns the current value of the path set for the class.


The following example shows how to get a proxy class path.

// This function gets the Web service path.
function GetPath() 
    // Get the Web service path.
    var path = 

    // Display the path.
    DisplayMessage("The service path is: " + path);

See Also


Sys.Net.WebServiceProxy Class