url | String The URL of the document you want to load. This string must begin with http: or https:. For example: http://www.rubicon.com/orders/orders.html —OR— https://localhost:5555/WmPublic/index.html You can include a query string (for example, a collection of "name=value" pairs) with the string that you specify. However, you might want to use the data variable for this type of information instead. It is usually a more practical place for "name=value" data, because it allows you to link individual variables in the query string. | |||
method | String Optional. Set this value to specify the HTTP method (GET or POST) that you want the target server to execute on the resource specified in url. This value determines the way in which pub.xml:loadXMLNode submits data values (if any) to the resource identified in url. The default is get. ![]() ![]() | |||
auth | Document Optional. Authentication and authorization information that pub.xml:loadXMLNode will use if the requested resource is protected.
| |||
Key | Description | |||
type | String Type of authentication pub.xml:loadXMLNode will use to submit this request. Leave this field blank, as the only option currently available is basic HTTP authentication. | |||
user | String User name that pub.xml:loadXMLNode will submit if the requested resource is protected. The user name must have authority to access the resource specified in url. This value defaults to the value of watt.net.httpUser in the server's configuration file (server.cnf). | |||
pass | String Password associated with the user name specified in user. If the user does not require a password, leave pass empty. This value defaults to the value of watt.net.httpPass in the server's configuration file (server.cf). | |||
data | Document Optional. The data that you want pub.xml:loadXMLNode to submit with the request. Specify data using one or more of the following elements.
| |||
Key | Description | |||
args | Document Optional. Specifies name=value pairs that pub.xml:loadXMLNode is to submit to the resource in url. You can use args to submit data via either the POST or GET method. To specify data using args, create one element for each name=value pair that you want to submit, where the key represents the name portion of the pair and the value represents the value portion of the pair. Note that when you use args, pub.xml:loadXMLNode will automatically: ![]() ![]() ![]() When you submit data using the args variable, the Integration Server automatically sets the value of the Content-Type header to application/x-www-form-urlencoded. If you want to explicitly specify a different Content-Type, you must submit your data using the string or bytes variable. | |||
table | String Table Optional. Specifies data that pub.xml:loadXMLNode will use to construct a query string to submit to the resource specified in url. table is similar to args, but it allows you to submit unnamed values in a query string, not just name=value pairs. To specify data using table, create one row for each value that you want to submit, where: ![]() ![]() When you submit data using the table variable, the Integration Server automatically sets the value of the Content-Type header to application/x-www-form-urlencoded. If you want to explicitly specify a different Content-Type, you must submit your data using the string or bytes variable. Note that when you use table, pub.xml:loadXMLNode will automatically: ![]() ![]() ![]() | |||
string | String Optional. Text that you want pub.xml:loadXMLNode to submit to the resource in url. You can use string to submit data via either the POST or GET method. If you use string to specify your data, make sure that you specify the string exactly as you want it presented in the HTTP request. (If you are using the GET method, make sure you URL-encode the contents of string). When performing a POST the string is submitted to the resource as the body of the document. | |||
bytes | byte[ ] Optional. Data that pub.xml:loadXMLNode is to submit to the resource in url. You can use bytes only to submit data via the POST method.
| |||
stream | java.io.InputStream Optional. Data that pub.xml:loadXMLNode is to submit to the resource in url. You can use stream only to submit data via the POST method.
| |||
encoding | String Optional. Name of a registered IANA character set. | |||
headers | Document Optional. Fields that you want to explicitly override in the HTTP request header issued by pub.xml:loadXMLNode. Specify one element for each header field that you want to set, where the element's name represents the name of the header field, and the element's value represents the value of that header field. If headers is not set, pub.xml:loadXMLNode will use its default header values.
If you want to assign specific values to header fields used by pub.xml:loadXMLNode, keep the following points in mind: ![]() ![]() ![]() ![]() | |||
![]() ![]() ![]() ![]() | ||||
encoding | String Optional. Character set in which the returned document is encoded. The parser requires this value in order to interpret a document correctly. Set to: ![]() ![]() ![]() ![]() If you do not specify an encoding value, pub.xml:loadXMLNode decodes the returned document using the following defaults: | |||
If the document is... | It is decoded using... | |||
HTML | ISO-8859-1 | |||
XML | UTF-8 | |||
expandDTD | String Optional. Flag indicating whether or not pub.xml:loadXMLNode is to process references to parameter entities in the returned document's DTD. Set to: ![]() ![]()
| |||
isXML | String Optional. Flag indicating whether the returned document is XML or HTML. pub.xml:loadXMLNode must know this in order to parse a document correctly. Set to: ![]() ![]() ![]()
| |||
loadAs | String Optional. Flag that specifies the form in which you want pub.xml:loadXMLNode to make the parsed document available to subsequent services. Set to: ![]() Use this option if the document will be used as input to a service that operates on whole documents (for example, pub.xml:queryXMLNode). ![]() Use this option if the document will be used as input to a service that can process a document incrementally (for example, pub.xml:getXMLNodeIterator). | |||
failOnHTTPError | String Optional. Determines whether pub.xml:loadXMLNode will fail (throw an exception) if the requested URL is not loaded correctly based on an HTTP status code. This parameter allows for customized error handling of the load failure. Set to: ![]() ![]() | |||
expandGeneralEntities | String Optional. Flag indicating whether pub.xml:pub.xml:loadXMLNode should expand references to general entities in the returned document’s DTD. Set to: ![]() ![]() |
node | com.wm.lang.xml.Node XML node representing the returned HTML or XML document. |