You can create a web service by exposing a method in a model as a web service.
Use the Service Definition and Service Operation builders in your model. The Service Definition builder can create a service with one or more operations. In the builder, you can make the service available to other applications by WSDL and SOAP. A data service created by the Service Definition builder can be invoked in another model if that model contains a Service Consumer builder.
Use the Service Operation builder to add specific services to the service that you create with the Service Definition builder.
If your method takes XML inputs (inputs of a complex type), you need to create a schema that defines the structure that your method expects to receive as an input. This schema gets included into the generated WSDL document and is used by other developers calling your service to structure the XML input to your service.
You can expose the web service to either incoming SOAP requests to the server hosting the application or to service calls in local models.
Creating schemas for complex argument and return types
If the method you want to expose as a Web service takes one or more XML arguments or returns an XML structure, you need to create a schema that describes the structure for the argument and return types and then add a Schema builder call to your model to add the schema to the model.
About finding WSDL documents for services
You can find the WSDL documents for a web service to call either on a public web site or in a public or private registry.
Parent topic: Creating composite web services