Support > Repository > Function > External cooperation
ja | en

We introduce four functions on cooperation with external system.

HTTPSEND (character string indicating url)

We will access the (external) site shown in url and get page information.


By specifying the REST API server that returns JSON to the url part, it can be used to acquire external values.It is assumed to be combined with the JSONPATH function described later.

This method supports HTTP GET only.You can not use it for applications such as POST and PUT.Also, you can not specify the request header etc.


If the current interaction is via the REST APItrue.Otherwise (operation from the screen or upload update, download etc.)false.

JSONPATH (String containing JSON object, JSON Path string)

It parses the string in JSON format and gets the value specified by JSON Path.


In the above example, JSON data set in the jsondata item is analyzed and the title is acquired.

JSON Path is "Java JsonPathI'm using a library called. you can try JSON Path's behavior.


REQUEST ("name")

This function is assumed to be used in the case of POSTing to Wagby from a Web form prepared on a system different from Wagby (eg a form prepared by PHP, Perl, etc.).

Gets a value from the request object managed by Java with the specified name. When transitioning from pages other than Wagby, you can receive HTTP GET/POST parameters directly.The return type is a string type.


If the name sent from the Web form matches the name (English) of the target item, the argument of the REQUEST function can be omitted.

The return type of the REQUEST function is a string type.When setting this value to numeric type or date type item,TEXT functionPlease convert from character string to numeric value and date using etc.


SESSION ("name")

This function is provided for those who develop customized Java.

Gets a value from the session object managed by Java with the specified name.Since the return type is arbitrary, be sure to specify the type explicitly.


If the key name of the session object matches the name of the target item (English), the argument of the SESSION function can be omitted.

The SESSION function can be used by developers to "customize" Java code and "receive" values ​​stored in session objects.When you receive a value, be sure to cast it with the type of object stored in the session object.(If you do not specify a type or specify an incorrect type, an error will occur at compile time.)