Skip to main content

Creating Proxy Classes using the Wizard: Part 2

Complete the following steps to finish creating the proxy classes using the Web Services Client Wizard:

  1. After you click Next on the screen displaying the packages and XML Namespaces to be generated, the wizard generates the proxy classes. In this case it generates 3 classes:

    1. ContactApplication.SOAPServiceSoap — The SOAP Client Class.

    2. ContactApplication.s0.Contact — A SOAP Type class.

    3. ContactApplication.s0.PhoneNumber — A SOAP Type class.

    generated description: soapclientwizard5 20142

  2. Click Finish. The wizard installs the proxy classes in the namespace that Studio has open. In this case, the wizard installs the classes in the ContactApplication package.

  3. Client applications use ContactApplication.SOAPServiceSoap as a proxy for the producer application. Open ContactApplication.SOAPServiceSoap in Studio. Notice that it contains proxies for each of the methods in SOAPTutorial.SOAPService. Each proxy method has the same name, parameter list, and return type as the original in SOAPTutorial.SOAPService. Note that the proxy methods are instance methods. In order to use them, you must create an instance of ContactApplication.SOAPServiceSoap.

    generated description: soapclientwizard4 20101

FeedbackOpens in a new tab