Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in MashZone NextGen Wires | Creating Mashups in Wires | Add a Web Information Source with DirectInvoke
 
Add a Web Information Source with DirectInvoke
Use the DirectInvoke action to add information directly from web sites or web services available on the Internet.
ResourceLink
This is the URL to the web site or web service to use.
Most web sites and some web services use the HTTP method GET so the URL also defines the specific request to send to the web site or web service in one or more parameters. Some web services use the POST method instead of GET, or support the PUT or DELETE methods.
You can either:
*Enter a URL.
*Click to open the Path Selector list to use a dynamic URL. Add an input field, select an existing input field or select a path from the results of any blocks in this mashup to supply the URL. See Select Fields or Paths for Block Properties with the Path Selector for details.
Add Param
If the method is GET or POST, click this button to add a parameter to this URL. You can add any number of parameters.
Parameters
Enter the name of the parameter in the left field.
Note: Parameters are only valid when Method is GET or when web services use POST with name/value pairs. For more information, see <directinvoke> in EMML.
For the parameter value, either:
*Enter a value directly.
*Click to open the Path Selector list to make the parameter value dynamic. Add an input field, select an existing input field or select a path from the results of any blocks in this mashup to supply the parameter value. See Select Fields or Paths for Block Properties with the Path Selector for details.
Method
Choose the HTTP method to use to send this request to the web site or web services:
*GET = the default and most common method, especially for web sites. With GET, all information for the request, including parameters, is defined in the URL. Parameters have only simple values.
*POST = choose this method for web services or web sites that need larger or more complicated requests or requests in specific formats such as XML.
*If the request uses name/value pairs, add them as parameters.
*Otherwise, define the request content in Post Data. You must also define the format of the content as a content-type header. For more information, see <directinvoke>
*PUT = this method is used by some web services to add or update a specific resource. For example, a web service for airline reservations might use the PUT method with a URL to allow you to make a flight reservation.
You define the content for this request in Post Data. The content and format to send depends on the requirements for this web service. You may also need to add HTTP headers for this request. For more information, see <directinvoke>.
*DELETE = this method is used by some web services to delete a specific resource. For example, a web service for airline reservations might use the DELETE method with a URL to allow you to delete a flight reservation.
You may need to define content for this request in Post Data or add HTTP headers for this request, based on what the web service requires. For more information, see <directinvoke> in EMML
Add HTTP Request Header
Click this button to add one or more HTTP header to this request to this web site or web service:
*In the left header field, either select the standard HTTP header that you want or directly enter the name of a vendor-specific HTTP header.
*Enter the value for this header in the right field. Or click to open the Path Selector list to set this value dynamically. Add an input field, select an existing input field or select a path from the results of any blocks in this mashup to supply this value. See Select Fields or Paths for Block Properties with the Path Selector for details.
Post Data
Defines the content of the request to send when Method is POST, PUT or DELETE and the web site or web service does not expect name/value pairs. You can either:
*Enter the content directly as XML or in whatever format is required. If the content is XML, it must be well formed (completely enclosed within one root element).
*Click to open the Path Selector list to find a document that defines the content or to make the content dynamic. Add an input field, select an existing input field or select a path from the results of any blocks in this mashup to supply the content. See Select Fields or Paths for Block Properties with the Path Selector for details.
See also Define Error Handling and Use a Security Profile with DirectInvoke for information on advanced properties for DirectInvoke.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release