Share via


Web Service Registration

The Visual FoxPro Web Service extensions make it possible for you to access Web Services anywhere on the Web. These extensions provide Web Service access using the Toolkit's SoapClient object. This is a high-level late-binding access architecture, which makes it possible for you to call a Web Service method directly with just a few lines of simple object code.

To register a Web Service

  1. From the Tools menu, select the IntelliSense Manager menu item.

  2. Select the Types tab, and click the Web Services button.

  3. In the displayed dialog box, provide Web Service information needed to register it for use, and then click the Register button to add it to your IntelliSense typing list.

    Note   You also can launch the Web Services Registration dialog box programmatically:

       DO (_wizard) WITH "project",,"Web","IntelliSense"
    
    

Web Services Registration Dialog Box

The Registration dialog box makes it possible for you to specify information to subscribe to a Web Service. The following settings are available and required:

Name Description
Web Service Name combo box Specifies the friendly name for the Web Service. This name will appear in the strong typing list when you declare a variable reference for it (for example, LOCAL oWS AS). The combo box includes all prior registered Web Services. If you select a prior registered Web Service, the associated WSDL URL location is selected also.
WSDL URL Location combo box Specifies the WSDL location. The location is typically a URL, but it can be an actual file location if it is stored locally. This must be a valid WSDL location and file; otherwise, an error will be generated when you attempt to register it. The combo box displays prior WSDL locations. If you specify a WSDL file, which contains multiple ports (classes), you will be prompted to pick a particular one.

Note   The first time you access this dialog box, sample data may be displayed to offer guidance in entering Web Service information.

Preferences for each registered Web service are retained so that you can easily refresh a service later, if, for example, the content of the WSDL changes. Settings for registered Web services are stored in a Foxws.dbf table in the same directory as your Foxcode table (_FOXCODE).

The Toolkit also provides objects that make it possible for you to call Web Services at low levels dealing directly with the actual SOAP messages. These are not directly supported by the Visual FoxPro extensions.

See Also

Web Services Overview | Calling Web Services | Specifying a Web Service Default Location | Web Service Publishing | Web Service Deployment | Using the Web Services Project Hook