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 |
|
- List: JavaScript global methods
- JavaScript global method: base64Decode
- JavaScript global method: base64Encode
- JavaScript global method: compile
- JavaScript global method: doHTTPRequest
- JavaScript global method: doSOAPRequest
- JavaScript global method: execute
- JavaScript global method: getLog
- JavaScript global method: help
- JavaScript global method: insertDatum
- JavaScript global method: makeSCWebURL
- JavaScript global method: print
- JavaScript global method: Quit
- JavaScript global method: RCtoString
- JavaScript global method: readFile
- JavaScript global method: setAppMessage
- JavaScript global method: stripHtml
- JavaScript global method: uncompressFile
- JavaScript global method: writeAttachmentToFile
- JavaScript global method: writeFile
- JavaScript global method: xmlstring
JavaScript global method: doSOAPRequest
Issues a SOAP request to a specified URL.
Syntax
doSOAPRequest( URL, SOAPAction, XML, SOAP user ID, SOAP password, Connect Timeout, Read Timeout, Obsolete, Attachment object
);
Parameters
The following arguments are valid for this function:
Argument | Data type | Required | Description |
---|---|---|---|
URL
|
String | Yes | This argument specifies the URL to which the script should send an HTTP request. If the HTTP request requires SSL then the URL must start with https. |
SOAPAction
|
String | Yes | This argument specifies the SOAPAction value. |
XML
|
String | Yes | This argument contains the XML for an entire SOAP request including the SOAP envelope. Refer to the Web Service's WSDL to determine the proper format of the SOAP request. |
SOAP user ID
|
String | No | This argument contains the user ID to be used for the Basic Authorization HTTP header. |
SOAP password
|
String | No | This argument contains the password value to be used for the Basic Authorization HTTP header. |
Connect Timeout
|
Number | No | This argument specifies the number of seconds a SOAP request has to establish a connection before it times out. |
Read Timeout
|
Number | No | This argument specifies the number of seconds a SOAP request has to read data before it times out. |
Receive timeout (Obsolete)
|
Number | No | This argument is obsolete. |
Attachment object
|
Array | No | This argument contains a JavaScript array of Service Management-defined Attachment objects or an empty array. See JavaScript object: Attachment for more information. |
AcceptFastInfoset
|
Number | No | To set the SOAP Message flag "acceptfastinfoset". Default value is 1. To turn "acceptfastinfoset" off: 0. |
Return values
A string containing a SOAP response or an error message.
Description
This method sends a SOAP request to a remote server and returns the SOAP response.
Examples
Example 1 :
- Sends a SOAP request to a delayed stock quote Web service and indicates SM accept the "fastinfoset" formatted SOAP message
- Prints the SOAP response to the screen
This example requires the following sample data:
- The URL to a delayed stock quote Web service
- Stock symbol for company
var url = "http://ws.cdyne.com/delayedstockquote/delayedstockquote.asmx"; var action = "http://ws.cdyne.com/GetQuote"; var xml = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
xmlns:s0=\"http://ws.cdyne.com/\">
<soap:Body>
<GetQuote xmlns=\"http://ws.cdyne.com/\">
<StockSymbol xsi:type=\"s:string\">GOOG</StockSymbol>
<LicenseKey xsi:type=\"s:string\">0</LicenseKey>
</GetQuote>
</soap:Body></soap:Envelope>"; var uid = null; var pass = null; var attachments = new Array(); var quote = doSOAPRequest( url, action, xml, uid, pass, 60, 60, null, attachments ); print( "The return value is: " + quote );
Example 2:
- Sends a SOAP request to a delayed stock quote Web service and indicates SM does not accept the "fastinfoset" formatted SOAP message.
- Prints the SOAP response to the screen
This example requires the following sample data:
- The URL to a delayed stock quote Web service
- Stock symbol for company
var url = "http://ws.cdyne.com/delayedstockquote/delayedstockquote.asmx"; var action = "http://ws.cdyne.com/GetQuote"; var xml = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
xmlns:s0=\"http://ws.cdyne.com/\">
<soap:Body>
<GetQuote xmlns=\"http://ws.cdyne.com/\">
<StockSymbol xsi:type=\"s:string\">GOOG</StockSymbol>
<LicenseKey xsi:type=\"s:string\">0</LicenseKey>
</GetQuote>
</soap:Body></soap:Envelope>"; var uid = null; var pass = null; var attachments = new Array(); var quote = doSOAPRequest( url, action, xml, uid, pass, 60, 60, null, attachments, 0 ); print( "The return value is: " + quote );
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: