Skip to main content

Creating a Web Service Client

Using the WSDL for a Web Service, you can also create a Caché client for that service using the Studio SOAP client wizard. The basic steps are:

  1. Create Caché proxy classes for the Web Service.

  2. Use the proxy classes to invoke the Web Service.

The following example demonstrates how to use the Studio SOAP Client Wizard to generate proxy classes for the MVFILE.Services Web Service created in the previous example.

  1. Open Studio and connect to any namespace. Note that you do not need to connect to the namespace containing the Web Service and the multivalue account.

  2. Click Tools—>Add-Ins—>Add-Ins on the Studio menu bar.

  3. On the Add-Ins screen, click SOAP Client Wizard and then click OK.

    generated description: soapclientwiz2 20112

  4. Click URL for the source of the WSDL (URL or File) and Enter the URL for the MVFILE.Services WSDL document into the WSDL URL box. Click Next.

    generated description: soapclientwiz3 20142

  5. On the next screen, do the follwing:

    1. Verify that Create Client for Web Service is selected.

    2. Verify that Compile generated classes is selected.

    3. Verify that Registered is selected for the Class Type.

    4. Enter MVTutorial in the Proxy Class Package box.

    5. Verify that the screen displays the WSDL for the Web Service.

    6. Click Next.

    generated description: soapclientwiz4 20142

  6. Notice the package name for the generated classes is MVTutorial. Click the Add NAMESPACE Class Parameter box. Click Next.

    generated description: soapclientwiz5 20152

  7. The SOAP Client Wizard generates proxy classes for the Web Service. Click Finish.

    generated description: soapclientwiz6 20142

    Note that the name of the generated proxy class is MVTutorial.ServicesSoap.

Note:

For more information on using the SOAP Client Wizard, read Using the SOAP Client Wizard in the Creating Web Clients section of Creating Web Services and Web Clients in Caché.

FeedbackOpens in a new tab