Execute PATCH

Operation name

Execute PATCH

Function overview

Executes HTTP PATCH method request.

Data model

The data model of this component is XML type.

= Remarks =

For more details on input/output schema, refer to Schemas.

Properties

= Remarks =

For details on use of variables, refer to Variables.

Basic settings

Item name

Required/Optional

Use of variables

Description

Remarks

Name

Required

Not available

Enter a name that is used on the script canvas.

 

Input data

Optional

Not available

Select a component on the script canvas.

  • When File is specified in Input source, you don't need to specify Input data. Ignored if it's specified.

Required settings

Item name

Required/Optional

Use of variables

Description

Remarks

Destination

Required

Not available

Select a connection resource.

Add

A new connection resource can be added.

Edit list

Connection resource settings can be edited in > HULFT INTEGRATE > Connections.

 

Path

Optional

Available

Specify a relative path from the URL entered in URL of Destination.

  • It will be URL encoded using the encoding entered or selected in Encoding.

Encoding

Optional

Available

Select or enter an encoding used for URL encoding.

When you enter encoding, specify one of the encodings supported in Java SE Runtime Environment 8.

= Remarks =

For details, refer to "Supported Encodings" (http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html).

  • The default value is "UTF-8". If omitted, "UTF-8" will be set.

Query parameter

Optional

-

Specify names and values for query parameters to be concatenated to the URL.

Each query parameter can be operated with the following buttons:

Up

Move the selected query parameter upwards by one row.

Down

Move the selected query parameter downwards by one row.

Add

Add a query parameter.

Delete

Delete the query parameter.

  • It will be URL encoded using the encoding entered or selected in Encoding.

Query parameter/Name

Optional

Available

Enter the name of query parameter.

  • When omitted, the query parameter won't be concatenated to the URL.

Query parameter/Value

Optional

Available

Enter the value of query parameter.

 

Request settings

Item name

Required/Optional

Use of variables

Description

Remarks

Input source

Required

Not available

Select an input source for a request body.

Data

(Default)

The input data will be input source.

File

The file specified in File path will be input source.

 

Data format

Required

Not available

Select a data format of a request body.

XML

(Default)

Process as XML format.

MIME type of Content-Type header is "application/xml".

JSON

Process as JSON format.

MIME type of Content-Type header is "application/json".

Form

Process as form format.

MIME type of Content-Type header is "application/x-www-form-urlencoded".

Multipart form

Process as multipart form format.

MIME type of Content-Type header is "multipart/form-data".

  • Displayed when Data is selected in Input source.

  • The input schema varies depending on the selected data format.

  • For more details on input schema, refer to Input schema.

File path

Required

Available

Select or enter a file path of input source for a request body.

The Browse button launches a file chooser that allows you to select a file.

  • Displayed when File is selected in Input source.

  • The MIME type of a Content-Type header is automatically determined and set based on the extension of the file name. When unable to determine, it's set as "application/octet-stream".

Note

Form settings

Optional

-

Specify parameters of form for a request body.

Each parameter can be operated with the following buttons:

Up

Move the selected parameter upwards by one row.

Down

Move the selected parameter downwards by one row.

Add

Add a parameter.

Delete

Delete the parameter.

  • Displayed when Data format is Form.

Form settings/Name

Optional

Only environment variables are available

Enter the form name.

 

Multipart form settings

Optional

-

Specify multipart for a request body.

Each part can be operated with the following buttons:

Up

Move the selected part upwards by one row.

Down

Move the selected part downwards by one row.

Add

Add a part.

Delete

Delete the part.

  • Displayed when Data format is Multipart form.

Multipart form settings/Name

Optional

Only environment variables are available

Enter the part name of the multipart.

 

Multipart form settings/Type

Optional

Not available

Select the part type of the multipart.

String

(Default)

The string specified in input data will be the body of the part.

File

The data read from the file specified in input data will be the body of the part.

 

Put Content-Length header to part header for file type

Optional

Not available

Select whether or not to add a Content-Length header to the part header, with the file size specified in the input data as the value, when Multipart form settings/Type is File.

Selected

Content-Length header will be added.

Not selected

(Default)

Content-Length header won't be added.

  • Displayed when Data format is Multipart form.

Property actions

Item name

Description

Remarks

Set input schema with JSON file

Specify a JSON file and set the input schema.

Displayed when JSON is selected in Data format.

Response settings

Item name

Required/Optional

Use of variables

Description

Remarks

Output destination

Required

Not available

Select output destination of a response body.

Data

(Default)

Output it to the result data. Output it in the format selected in Data format.

File

Output it to the file specified in File path.

 

Data format

Required

Not available

Select a data format of response body.

XML

(Default)

Process as XML format.

JSON

Process as JSON format.

Other

Process as text or binary format.

  • Displayed when Data is selected in Output destination.

  • The output schema varies depending on the selected data format.

  • For more details on output schema, refer to Output schema.

File path

Required

Available

Select or enter a file path of output destination of a response body.

The Browse button launches a file chooser that allows you to select a file.

  • Displayed when File is selected in Output destination.

Note

Remove invalid XML characters

Optional

Not available

Select whether or not to remove invalid characters for XML automatically if they're found while parsing JSON format data.

Selected

Invalid characters for XML will be removed.

Not selected

(Default)

Invalid characters for XML won't be removed.

  • Displayed when JSON is selected in Data format.

Redirect automatically

Optional

Not available

Select whether or not to redirect automatically when a redirect destination is included in the response.

Selected

Redirect automatically.

Not selected

(Default)

Don't redirect automatically.

Error when response status code is 4xx or 5xx

Optional

Not available

Select whether or not to make the processing an error when the response status code is "4xx" or "5xx".

Selected

Processing will end as an error.

Not selected

(Default)

Processing won't end as an error.

 

Property actions

Item name

Description

Remarks

Set output schema with JSON file

Specify a JSON file and set the output schema.

Displayed when JSON is selected in Data format.

Header settings

Item name

Required/Optional

Use of variables

Description

Remarks

Request header

Optional

-

Specify HTTP headers to be included in a request.

Each request header can be operated with the following buttons:

Up

Move the selected request header upwards by one row.

Down

Move the selected request header downwards by one row.

Add

Add a request header.

Delete

Delete the request header.

 

Request header/Name

Optional

Available

Enter the request header name.

  • When omitted, the request header isn't included in request.

Request header/Value

Optional

Available

Enter the request header value.

 

Response header

Optional

-

Specify header names to get from HTTP headers included in a response.

Each response header can be operated with the following buttons:

Up

Move the selected response header upwards by one row.

Down

Move the selected response header downwards by one row.

Add

Add a response header.

Delete

Delete the response header.

  • A response header is defined as a component variable with the name entered in Name.

Response header/Name

Optional

Only environment variables are available

Enter the response header name.

  • Case-insensitive.

  • When omitted, it's not defined as a component variable.

  • When there's a space/tab/line feed before or after the name, it will be trimmed and defined as a component variable.

Authentication settings

Item name

Required/Optional

Use of variables

Description

Remarks

Authentication

Required

Not available

Select an authentication method on sending a request.

None

(Default)

Authentication won't be performed.

Basic authentication

Basic authentication will be performed.

Digest authentication

Digest authentication will be performed.

NTLM authentication

NTLM authentication will be performed.

Using Auth Connections

Authentication will be performed using connection resources.

 

User

Optional

Available

Enter the user name used for authentication.

  • This field is displayed when Basic authentication, Digest authentication, or NTLM authentication is selected in Authentication.

Password

Optional

Available

Enter the password used for authentication.

  • This field is displayed when Basic authentication, Digest authentication, or NTLM authentication is selected in Authentication.

Connection Setting

Optional

Not available

Select a connection resource to use for authentication.

  • This field is displayed when Using Auth Connections is selected in Authentication.

Data processing method

Item name

Required/Optional

Use of variables

Description

Remarks

Data processing method

Optional

Not available

Select a data processing method.

Apply script settings

(Default)

The setting for mass data processing in the script properties is applied to the connector.

Do not perform mass data processing

Mass data processing isn't performed.

Perform mass data processing

Mass data processing is performed.

 

Comment

Item name

Required/Optional

Use of variables

Description

Remarks

Comment

Optional

Not available

You can write a short description of this connector.

 

Schemas

Input schema

The schema varies depending on Data format settings of Request settings.

In the case of XML

The schema varies depending on the XML data of the request body.

In the case of JSON

When a request body is JSON data, the input data is converted from XML to JSON and processed.

The schema of XML format for converting to JSON format data is as follows:

<-- When the root attribute indicates object-type JSON -->
<?xml version="1.0"?>
<root type="object">
  <JSON member name type="attribute value that represents JSON type">value</JSON member name>
    :
</root>

<-- When the root attribute indicates array-type JSON -->
<?xml version="1.0"?>
<root type="array">
  <element type="attribute value that represents JSON type">value</element>
    :
</root>

<-- When the JSON member name is invalid for XML element name -->
<?xml version="1.0"?>
<root type="object">
  <member type="attribute value that represents JSON type" name="JSON member name">value</member>
    :
</root>

Element name

Attribute name

Description

Remarks

root

-

Root element wrapping JSON object.

 

type

Specify an attribute value that represents JSON type.

Attribute value

Description

object

Represents JSON object type.

Example: XML data whose root element has a type attribute value of "object"

<root type="object">
  <name type="string">Suzuki</name>
</root>

The above XML data is converted to the following JSON object:

{"name":"Suzuki"}

array

Represents JSON array type.

 

Example: XML data whose root element has a type attribute value of "array"

<root type="array">
  <element type="string">apple</element>
  <element type="string">grape</element>
  <element type="string">orange</element>
</root>

The above XML data is converted to an array type JSON object as follows:

["apple","grape","orange"]

  • When there's no type attribute or the attribute value is empty, it's considered as object type.

JSON member name

-

Element that represents JSON member.

 

type

Specify an attribute value that represents JSON type.

Attribute value

Description

string

Represents JSON string type.

Example: XML data whose type attribute value is "string"

<name type="string">Suzuki</name>

The above XML data is converted to a JSON member with a string type value as follows:

{"name":"Suzuki"}

number

Represents JSON numeric type.

 

Example: XML data whose type attribute value is "number"

<age type="number">37</age>

The above XML data is converted to a JSON member with a numeric type value as follows:

{"age":37}

boolean

Represents JSON boolean type.

 

Example: XML data whose type attribute value is "boolean"

<success type="boolean">true</success>

The above XML data is converted to a JSON member with a boolean type value as follows:

{"success":true}

object

Represents JSON object type.

 

Example: XML data whose type attribute value is "object"

<name type="object">
  <first type="string">Ichiro</first>
  <last type="string">Suzuki</last>
</name>

The above XML data is converted to a JSON member with an object type value as follows:

{"name":{"first":"Ichiro","last":Suzuki"}}

array

Represents JSON array type.

 

For a JSON array type element, specify "element" element of XML.

When the type of JSON array type element is object type, specify XML data with the schema that represents JSON object to the child element of the "element" element, and the types is other than that, specify the value to the content of the "element" element.

 

Array type schema of JSON is as follows:

<JSON member name type="array">
  <element type="attribute value that represents JSON type">value</element>
    :
</JSON member name>

Example: XML data whose type attribute value is "array"

<fruits type="array">
  <element type="string">apple</element>
  <element type="string">grape</element>
  <element type="string">orange</element>
</fruits>

The above XML data is converted to a JSON member with an array type value as follows:

{"fruits":["apple","grape","orange"]}

null

Represents JSON null type.

 

Example: XML data whose type attribute value is "null"

<name type="null"/>

The above XML data is converted to a JSON member with a null type value as follows:

{"name":null}

  • When there's no type attribute or the attribute value is empty, it's considered as string type.

  • When the type attribute is "null", the element content is ignored.

element

-

Element that represents array element.

 

type

Specify a string that represents JSON type.

Specify the same attribute value as the type attribute of the JSON member name.

  • When there's no type attribute or the attribute value is empty, it's considered as string type.

member

-

Element to specify instead when the JSON member name is invalid for XML element name.

 

type

A string that represents JSON type is output.

Specify the same attribute value as the type attribute of the JSON member name.

  • When there's no type attribute or the attribute value is empty, it's considered as string type.

name

Specify the JSON member name.

 

Example: XML data in which a member element is specified and the JSON member name is specified for the name attribute

<member type="string" name="1name">Suzuki</member>

The above XML data is converted to the following JSON member:

{"1name":"Suzuki"}

  • When there's no type attribute or the attribute value is empty, it's considered as string type.

In the case of Form

<?xml version="1.0"?>
<request>
  <body>
    <form>
      <form parameter name>
        <value>form parameter value</value>
      </form parameter name>
        :
      <-- When parameter name of the form is invalid for XML element name -->
      <parameter name="form parameter name">
        <value>form parameter value</value>
      </parameter>
        :
        </form>
  </body>
</request>

Element name

Attribute name

Description

Remarks

request

-

 

 

body

-

 

 

form

-

 

 

form parameter name

-

Element that shows the form parameter name.

  • It will be URL encoded using the encoding specified in Encoding.

parameter

-

Element when a form parameter name is invalid for XML element name.

  • When a form parameter name is invalid for XML element name, set the form parameter name in parameter element.

name

Input the form parameter name.

  • It will be URL encoded using the encoding specified in Encoding.

value

-

Input the form parameter value.

  • It will be URL encoded using the encoding specified in Encoding.

Example: When the input data is the following

<?xml version="1.0"?>
<request>
  <body>
    <form>
      <firstname>
        <value>Ichiro</value>
      </firstname>
      <lastname>
        <value>Suzuki</value>
      </lastname>
    </form>
  </body>
</request>

In the above XML data, the form data stored in the request body is as follows:

Content-Type: application/x-www-form-urlencoded; charset="UTF-8" 

firstname=Ichiro&lastname=Suzuki

In the case of Multipart form

<?xml version="1.0"?>
<request>
  <body>
    <multipart>
      <-- When the type is "String" -->
      <part name>
        <value>form value</value>
        <mimeType>MIME type of the part's Content-Type header</mimeType>
      </part name>
        :
      <-- When the type is "File" -->
      <part name>
        <file>
          <path>file path</path>
        </file>
        <mimeType>MIME type of the part's Content-Type header</mimeType>
      </part name>
        :
      <-- When the part name is invalid for XML element name -->
      <part name="part name">
        <value>part value</value>
        <mimeType>MIME type of the part's Content-Type header</mimeType>
      </part>
        :
        </multipart>
  </body>
</request>

Element name

Attribute name

Description

Remarks

request

-

 

 

body

-

 

 

multipart

-

 

 

part name

-

Element that shows part name.

  • It will be encoded using the encoding specified in Encoding.

part

-

Element when a part name is invalid for XML element name.

  • When the part name is invalid for XML element name, set the part in part element.

name

Input the part name.

  • It will be encoded using the encoding specified in Encoding.

mimeType

-

Input the MIME type of the part's Content-Type header.

  • When Multipart form settings/Type is String, remarks are as follows:

    • When there's no mimeType element or the element content is empty, a Content-Type header isn't added.

    • The value specified in Encoding is set to charset parameter of a Content-Type header.

  • When Multipart form settings/Type is File, remarks are as follows:

    • When there's no mimeType element or the element content is empty, it will be automatically determined and set based on the extension of the file name included in the path entered in path.

    • When it's not possible to be determined based on the extension of the file name, it will be "application/octet-stream".

value

-

Input a string for the body of the part.

  • It will be encoded using the encoding specified in Encoding.

file

-

 

 

path

-

Input the file path for the body of the part.

  • The file name included in the path is encoded using the encoding specified in Encoding.

Note

Example: When the input data is the following

<?xml version="1.0"?>
<request>
  <body>
    <multipart>
      <firstname>
        <value>Ichiro</value>
      </firstname>
      <lastname>
        <value>Suzuki</value>
      </lastname>
      <attachment>
        <file>
          <path>/data/profile.jpg</path>
        </file>
      </attachment>
    </multipart>
  </body>
</request>

In the above XML data, the multipart form data that is stored in the request body is as follows:

Content-Type: multipart/form-data; boundary=<boundary>

--<boundary>
Content-Disposition: form-data; name="firstname" 

Ichiro 

--<boundary>
Content-Disposition: form-data; name="lastname" 

Suzuki 

--<boundary>
Content-Disposition: form-data; name="attachment"; filename="profile.jpg" 
Content-Type: image/jpeg 

<data of /data/profile.jpg>

--<boundary>--

Output schema

The schema varies depending on Data format settings of Response settings.

In the case of XML

The schema varies depending on the XML data of the response body.

In the case of JSON

When the response body is JSON type data, the data is converted to XML and output to the result data.

The schema converted from JSON to XML is as follows:

<-- When the root attribute indicates object-type JSON -->
<?xml version="1.0"?>
<root type="object">
  <JSON member name type="attribute value that represents JSON type">value</JSON member name>
    :
</root>

<-- When the root attribute indicates array-type JSON -->
<?xml version="1.0"?>
<root type="array">
  <element type="attribute value that represents JSON type">value</element>
    :
</root>

<-- When the JSON member name is invalid for XML element name -->
<?xml version="1.0"?>
<root type="object">
  <member type="attribute value that represents JSON type" name="JSON member name">value</member>
    :
</root>

Element name

Attribute name

Description

Remarks

root

-

Root element wrapping JSON object.

 

type

Attribute value that represents JSON type is set.

Attribute value

Description

object

Represents JSON object type.

 

Example: JSON object consisting of object type

{"name":"Suzuki"}

The above JSON object is converted to XML data as follows and output:

<root type="object">
  <name type="string">Suzuki</name>
</root>

array

Represents JSON array type.

 

Example: JSON object consisting of array type

["apple","grape","orange"]

The above JSON object is converted to XML data as follows and output:

<root type="array">
  <element type="string">apple</element>
  <element type="string">grape</element>
  <element type="string">orange</element>
</root>

 

JSON member name

-

Element that represents JSON member.

 

type

Attribute value that represents JSON type is set.

Attribute value

Description

string

Represents JSON string type.

 

Example: A JSON member with string type value

{"name":"Suzuki"}

The above JSON member is converted to the following XML data and output:

<name type="string">Suzuki</name>

number

Represents JSON numeric type.

 

Example: A JSON member with numeric type value

{"age":37}

The above JSON member is converted to the following XML data and output:

<age type="number">37</age>

boolean

Represents JSON boolean type.

 

Example: A JSON member with boolean type value

{"success":true}

The above JSON member is converted to the following XML data and output:

<success type="boolean">true</success>

object

Represents JSON object type.

 

Example: A JSON member with object type value

{"name":{"first":"Ichiro","last":Suzuki"}}

The above JSON member is converted to the following XML data and output:

<name type="object">
  <first type="string">Ichiro</first>
  <last type="string">Suzuki</last>
</name>

array

Represents JSON array type.

 

A JSON array type element is shown in "element" element.

When a JSON array type element is object type, XML data with the schema that represents the JSON object is output to the child element of "element" element. When the type is other than that, the value is output to the "element" element.

 

The schema is as follows:

<JSON member name type="array">
  <element type="attribute value that represents JSON type">value</element>
    :
</JSON member name>

 

Example: A JSON member with array type value

{"fruits":["apple","grape","orange"]}

The above JSON member is converted to the following XML data and output:

<fruits type="array">
  <element type="string">apple</element>
  <element type="string">grape</element>
  <element type="string">orange</element>
</fruits>

null

Represents JSON null type.

 

Example: A JSON member with null type value

{"name":null}

The above JSON member is converted to the following XML data and output:

<name type="null"/>

 

element

-

Element name that represents array element.

 

type

A string that represents JSON type is output.

The same attribute value as the type attribute of the JSON member name is set.

 

member

-

Element name used when the JSON member name is invalid for XML element name.

 

type

A string that represents JSON type is output.

The same attribute value as the type attribute of the JSON member name is set.

 

name

A JSON member name is output.

 

Example: A JSON member with an invalid name for XML element name.

{"1name":"Suzuki"}

The above JSON member is converted to the following XML data and output:

<member type="string" name="1name">Suzuki</member>

 

In the case of Other

<?xml version="1.0"?>
<response>
  <body>
    <content>response body data</content>
  </body>
</response>

Element name

Attribute name

Description

Remarks

response

-

 

 

body

-

 

 

content

-

Data of the response body.

The data varies depending on the value of Content-Type header of the response.

  • When any of the following conditions are satisfied, the response body is considered as text data and the string output is encoded with the charset parameter value in the Content-Type header.

    • The type of the Content-Type header is "text".

    • The subtype of the Content-Type header ends with "xml" or "json".

  • When none of the above conditions is satisfied, the response body is considered as binary data. From that, byte array data will be generated based on the charset parameter value of the Content-Type header, then it will be converted into Base64 format, and output as string.

  • When there's no Content-Type header or charset parameter, "ISO-8859-1" is used by default.

Loading input schema in Mapper

The method to load input schema varies depending on Data format of Request settings.

In the case of XML

The schema needs to be loaded manually.

Specify the schema of the data to be loaded.

In the case of JSON

When using Set input schema with JSON file, the schema is loaded automatically.

In the case of Form

The schema is loaded automatically.

In the case of Multipart form

The schema is loaded automatically.

= Remarks =

You can edit the automatically loaded schema.

For details, refer to Edit Schema.

Loading output schema in Mapper

The method to load output schema varies depending on Data format of Response settings.

In the case of XML

The schema needs to be loaded manually.

Specify the schema of the data to be loaded.

In the case of JSON

When using Set output schema with JSON file, the schema is loaded automatically.

In the case of Other

The schema is loaded automatically.

= Remarks =

You can edit the automatically loaded schema.

For details, refer to Edit Schema.

Mass data processing

Mass data processing is supported.

Transaction

Transaction isn't supported.

Parallel Stream Processing

PSP isn't supported.

Available component variables

Component variable name

Description

Remarks

status_code

HTTP status code of the response is stored.

  • The default value is null.

reason_phrase

Text phrase related to the HTTP status code of the response is stored.

  • The default value is null.

error_response_body

The response body with a response status code "4xx" or "5xx" is stored.

  • The default value is null.

message_category

When an error occurs, the category of the message code corresponding to the error is stored.

  • The default value is null.

message_code

When an error occurs, the code of the message code corresponding to the error is stored.

  • The default value is null.

message_level

When an error occurs, the severity of the message code corresponding to the error is stored.

  • The default value is null.

error_type

When an error occurs, the error type is stored.

  • The default value is null.

  • The format of the error type is as follows.

    Example: java.io.FileNotFoundException

error_message

When an error occurs, the error message is stored.

  • The default value is null.

error_trace

When an error occurs, the trace information for the error is stored.

  • The default value is null.

Auto redirection

When Redirect automatically is selected, the behavior will be as follows.

When the status code of response is any of the following, the request will be resent to the URI indicated in the "Location" header in the response. When upper case is included in the host name of the redirection destination, it's converted to lower case for redirection.

301

(Moved Permanently)

302

(Found)

303

(See Other)

307

(Temporary Redirect)

The result data when the response status code is 400 or higher

When the response status code is 400 or higher, the response body is output to the result data.

At that time, the schema of result data varies depending on the value of Content-Type header of the response.

  • When the subtype of the Content-Type header ends with "xml"

    The schema varies depending on the XML data of the response body.

  • When the subtype of the Content-Type header ends with "json"

    As described in "In the case of JSON".

  • When other than any of the above

    As described in "In the case of Other".

    = Remarks =

    To content element, the response body encoded according to the following rules is output.

    • When there's a Content-Type header in the response header, the response body is encoded with the charset parameter value of the Content-Type header.

    • When there's no Content-Type header in the response header, or no charset parameter in the Content-Type header, the response body is encoded with "ISO-8859-1".

Message codes, exception messages, and limitations

Connector

Message code

Exception message

Limitations

Messages and limitations of the REST connector

check

check

check