You can create a web service by exposing a method in a model as a web service.
Add a Web Service Enable builder call to a model and choose a method to expose as a web service. To expose more than one method in a model as a service, simply add additional Web Service Enable builders to the model.
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.
Adding a Web Service Enable builder to a model makes sense only for publishing in a development Web application tesenvironmentnt, not for portlet WARs that run in the context of a portal.
Parent topic: Creating composite web services: wpf7