Portlet Factory, Version 6.1.2


 

Adding a web service call to a model

After you find a web service, add a Web Service Call builder to the model.

For HTTP services (Get or Post), add the REST Service Call builder to the model.

If the service you are calling takes an XML structure as an input, the Web Service Call builder adds a schema to the model that describes that XML structure.

To add a web service call:

  1. With the URL to a service WSDL document in hand, open a model in IBM® WebSphere Portlet Factory Designer and add a Web Service Call builder.

  2. In the builder call editor for the service call, specify the URL to the WSDL document for the service.

    The builder call editor displays input fields according to the information contained in the WSDL document.

  3. Take note of the type specified for any XML inputs.

    You set the inputs variable you create to be of this type.

  4. Select a method in the service and specify the input values to that method.

    The Web Service Call builder also allows you to specify any basic authorization needed. You can also configure other aspects of the service call such as logging the inputs and outputs and profiling individual inputs on the builder call itself.

  5. Add a variable to the model.

    Set the variable to be of the type specified for the XML input to the service.

  6. When you select a complex type defined by a schema, the builder call editor of the Variable builder displays a Create Sample Data button. Click this button to pre-set your service inputs variable.

  7. Now that you have sample data in the variable, set the individual element values with methods in your model or edit the XML in the Variable builder call editor.

Now you can call the service.

Parent topic: Web service calls in a model


Library | Support |