IBM® WebSphere® Portlet Factory Designer allows you to call a web service.
You can access a web service by adding a Web Service Call builder to your model and use other builder calls to display or interact with the data returned by the service. The following are the general steps to accessing a web service.
- Find the URL to the web service.
- Add a Web Service Call builder call to a model.
- Invoke the service call.
- Access the outputs of the service.
You can expose one or more methods in a model as SOAP services described by a WSDL document. In the Service Definition builder, enable the Generate WSDL
input. To obtain the URL of the WSDL document, enable the testing support and run the model. The test index page has a link to the WSDL URL.
You can create a web service from a model. Use the Web Service Enable builder for each method in your model that you want to expose as a web service.
The following web service technologies are supported.
Web Services Description Language (WSDL) 1.1
Simple Object Access Protocol (SOAP) 1.1
Web Services Interoperability Organization (WS-I) Basic Profile recommendation
Adding a web service call to a model
After you find a web service, add a Web Service Call builder to the model.
Calling a web service
After you use the Web Service Call builder to add a web service to a model, you can initiate a call to the web service.
Creating composite web services
You can create composite web services in multiple ways.
Finding a web service
You can find a web service through public or private resources.
Parent topic: Developing Web applications with IBM WebSphere Portlet Factory
Consuming a doc-literal type service
Using the Web Service Call builder
Disabling the getWSDL action on published applications