RPCResult Property (Windows CE 5.0)
This property returns the first child element of the first entry in the <Body> element of a SOAP message. You can use this property to retrieve the result of an RPC operation from the SOAP response.
HRESULT get_RPCResult( IXMLDOMElement** ppElement);
Parameters
- ppElement
[out] Specified parameter element.
Return Values
The following table describes the common return values.
Value | Description |
---|---|
S_OK | Success. |
E_NOTIMPL | The function contains no implementation. |
E_OUTOFMEMORY | Out of memory. |
Remarks
The RPCParameter, RPCResult, and RPCStruct, properties all relate to SOAP request or response messages that include RPC calls. When a client sends an RPC request to the server or when the client receives a response from the server to the client's RPC request, these properties allow you to access various parts of the RPC call in the message.
The Calc sample application uses some of these properties to access various parts of the RPC call request and response. For more information, see SOAP Samples.
Example
The following SOAP response message example shows how PRCResult returns the <SOAPSDK1:Answer> element.
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAPSDK1:AddResponse xmlns:SOAPSDK1="uri:Calc">
<SOAPSDK1:Answer>15</SOAPSDK1:Answer>
</SOAPSDK1:AddResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Mssoap.h.
Link Library: Uuid.lib.
See Also
Send Feedback on this topic to the authors