Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- Consume an external Web Service
- Use the WSDL2JS utility
- Best practices for writing a JavaScript to consume a Web Service
- Date/Time handling
- Example: Interface to another system
- Web Services with a proxy server
- Connecting to a secure Web Service
- Use SSL connections to connect to an external Web Service
- Web Services connections through a firewall
Date/Time handling
The self-written JavaScript is responsible for correct formatting of xml schema dateTime fields. The WSDL2JS-generated functions do not reformat the values assigned to them to convert them into the correct format. If a field in an outgoing SOAP message is defined as a dateTime, and the script writer assigns a value to the field, it needs to be a valid XML Schema dateTime, duration or other date/time string value. It cannot be a Service Manager datetime string nor should it be a JavaScript dateTime string. To get the valid XML Schema date/time, the script writer should use the XMLDate global object. For example:
// get today’s date/time from Javascript Date() object and store in a new XMLDate object var xmlDt = new XMLDate( new Date() ); // coerce the datetime value stored in the XMLDate object to ISO/XML schema format print( xmlDt.getISODateTimeString() );
There are a variety of methods for the XMLDate object that you can look up in the white paper with the title of JavaScript Programmers Guide.pdf.
The constructor for XMLDate can handle several different formats. You can pass it a string, a number of milliseconds, or a JS Date object (as in the example above).
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to docs.feedback@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: