edmiRemoteExecuteWebServiceEx
EdmiError edmiRemoteExecuteWebServiceEx (SdaiServerContext serverContextId, SdaiString serverAddress, SdaiString url, SdaiInputStream inputSoapMsg, SdaiString inputStringOrFileName, SdaiOptions options, SdaiLogDescription logDescription, SdaiOutputStream outputSoapMsg, SdaiString *outputStringOrFileName, SdaiUnsignedInt *stringOrFileFlag, SdaiInvocationId *edmiInvocationId);
Executes a web service operation. edmiRemoteExecuteWebServiceEx is similar to edmiRemoteExecuteWebService except for that the input soap message can be supplied, in addition to input stream, as either a string or in a file. Likewise can the returned output soap message be returned as output stream, string or file content.
Arguments
1 | Type | Name | Comment |
2 | SdaiServerContext | serverContextId | Context identification, from edmiDefineServerContext |
3 | SdaiString | serverAddress | The same server address as used in the WSDL document for the current web service. This is because that the server address is used name spaces which is controlled by client programs that receives the soap message reply. |
4 | SdaiString | url | The last part of the url, from "/earlybinding/" to the end, used by the web service client. The rest of the string is used as input parameters. An optional field after "/earlybinding/" is a field for options. It consists of the string "options_" + the numeric value for the options. This field is ignord by this function. Options need to be supplied by the option parameter. The url field after "/earlybinding/" or "options_" must be repository name of the EDMdatabase model opened by the web service operation. The next field is the model name. After model name, method type must be specified. The implemented method types are "QEX" and XPX. The last element of the URL string is method (query) schema name. |
5 | SdaiInputStream | inputSoapMsg | Input stream from where the EDMserver will read the soap message from the client program. inputSoapMsg is a struct of type SdaiInputStream where the first element is the address of the actual stream reader routine and the second element is a context parameter which is used as the first parameter when the above mentioned stream reader routine is called. See the example below. |
6 | SdaiString | inputStringOrFileName | If the INPUT_IN_STRING option is set, the input soap message is supplied as a string in this parameter. If the INPUT_IN_FILE option is set, the input soap message is supplied as the content of a file. The file name is supplied in this parameter. |
7 | SdaiOptions | options | see below |
8 | SdaiLogDescription | logDescription | |
9 | SdaiOutputStream | outputSoapMsg | Output stream to which the EDMserver will write the soap message reply. outputSoapMsg is a struct of type SdaiOutputStream where the first element is the address of the actual stream write routine and the second element is a context parameter which is used as the first parameter when the above mentioned stream writer routine is called. See the example below. |
10 | SdaiString | outputStringOrFileName | If the RESULT_IN_STRING option is set, the resulting soap message is returned as a string in this parameter. If the RESULT_IN_FILE option is set, the resulting soap message is returned as the content of a file. The file name is returned in this parameter. |
11 | SdaiUnsignedInt | stringOrFileFlag | |
12 | SdaiInvocationId | edmiInvocationId | Currently not used. |
Return Value
Options
Option | Comment |
LITERAL_ENCODING | Use this option if the input soap message is encoded in document/literal style. The returned soap message will be encoded in document/literal style. |
INPUT_IN_STRING | The input soap message is supplied as a string in the inputStringOrFileName parameter. |
RESULT_IN_STRING | The resulting soap message is returned as a string in the outputStringOrFileName parameter. |
INPUT_IN_FILE | The input soap message is supplied as the content of a file. The file name is supplied in the inputStringOrFileName parameter. |
RESULT_IN_FILE | The resulting soap message is returned as the content of a file. The file name is returned in the outputStringOrFileName parameter. |
Example
See also
Filter by label
There are no items with the selected labels at this time.