# How Do I: Use a .NET Web Service?

You can use a .NET web service from a WebLogic Workshop web service by using a Web Service control. A Web Service control allows your web service to use another web service as though it were a regular Java class, regardless of the language in which the other web service is implemented.

In order to create a Web Service control for a non-WebLogic Workshop web service, you must first obtain the target web service's WSDL (Web Service Description Language) file. The WSDL file can typically be obtained by accessing the web service's URL with ?WSDL appended.

This topic describes how a WebLogic Workshop web service may act as the client to a .NET web service. For an example of a .NET web service acting as a client to a WebLogic Workshop web service, see .NET Client Sample.

To Build a Web Service control for a .NET Web Service

1. In a web browser, access the web service from the browser using the normal URL with ?WSDL appended to the end.
2. For instance, if the service was at the URL http://host/service.asmx, you would enter the following URL:

       http://host/service.asmx?WSDL

3. Save the WSDL you receive to a WebLogic Workshop project. Note that some browsers will save the file with HTML tags at the top and bottom that must be removed in a text editor.
4. In WebLogic Workshop, browse to the project and directory to which you saved the WSDL file.
5. Right-click the WSDL file and select Generate JCX from WSDL. The resulting JCX file is a Web Service control that you may use from any web service, page flow or Java control in the project. To learn more about Web Service controls, see Web Service Control.

To learn how to use the control, see Working with Built-In Controls.

Related Topics

Web Service Control

WSDL Files: Web Service Descriptions

JCX Files: Implementing Controls