uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
(1) Coding format
In the action definition file, specify the keys as follows:
key-name=value
(2) Coding rules
Code the action definition file according to the following rules:
- The string up to the linefeed is a value.
- A line beginning with a hash mark (#) is a comment.
- You cannot add a comment after the value. If you add such a string, the comment is interpreted as a value.
- Use the ISO 8859-1 character encoding in compliance with Java specifications for the characters to be described. Characters such as two-byte characters are interpreted as invalid strings, so convert such characters using the native2ascii command. For the native2ascii command, see the JDK documentation.
- You can also specify a space in the value.
- If you enter a space between the key-name and = (equal sign) and between = (equal sign) and value, the space is removed to interpret the string.
- If you specify a key-name other than the key-name that can be specified, that key-name is not used (warning and error are not displayed).
- If you specify a line without a value, the default value is assumed.
- The key name is case sensitive.
The priority order for the action definition is as follows:
- Defining in the Web Service client (message context)
- Process-wise definition file
- Common definition file
The following example of specifying a definition in the Web Service client describes the code for setting up the connection timeout value in the Web Service client:
//setConnectTimeout()
int timeout = 60000;
Map<String, Object> ctxt = ((BindingProvider)port).getRequestContext();
ctxt.put("com.cosminexus.jaxws.connect.timeout", timeout);
|
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.