Portlet Factory, Version 6.1.2


 

About creating web services

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.

Note: Adding a Web Service Enable builder to a model makes sense only for standalone Web application deployments, not for portlet WARs that run in the context of a portal.

  • 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.

  • Creating composite web services

    You can create composite web services by setting the inputs of one service to be the output from another service, by configuring the appropriate service call to use the output from the first service as its input and creating a method that invokes the two services.

  • Web Service Enable builder

    Use the Web Service Enable builder to create a Web service from a model.

Parent topic: Overview: web services


Library | Support |