A Web service is part of an InterChange Component Library Project in System Manager just like business objects and maps. After the Web service is registered, tested, and verified, its services and methods can be exported as function blocks into Activity Editor for use within maps, like other function blocks.
For information on registering, testing, verifying and exporting a Web service from System Manager into Activity Editor, see the System Implementation Guide.
After exporting a Web service from System Manager, you need to restart Activity Editor. When Activity Editor opens, the exported Web service is added as a category under My Library. It has the same functionality as other categories in My Library.
Figure 79 shows the Web services category and function blocks in
Activity Editor after exporting from System Manager.
Figure 79. Web services category in Activity Editor
Similar to using other function blocks in Activity Editor, using any of the Web services function blocks is a matter of dragging and dropping the function blocks and connecting the inputs and outputs. For information on using Activity Editor, see "Working with activity definitions".
The following example illustrates how to invoke a Web service using Activity Editor to change a source attribute's zip code to the temperature for the city and assign the change to the destination attribute.
Perform the following steps:
Figure 80 shows the custom transformation.
Figure 81 shows the connected inputs and outputs of the getTemp
function block.
Result: After the test run is finished, you will see the current temperature for the zip code in the destination business object.
Figure 82 shows how the zip code 94010 of the source business object
attribute has been transformed to 57 degrees for the destination business
object attribute.