Retrieving and sending object IDs: handling SOAP headers
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Session Models and object IDs explains that object IDs must be retrieved from and sent in SOAP headers for methods on the following Open Client objects:
- Session-managed AppObjects
- ProcObjects
- SubAppObjects
Each client toolkit provides different means to access SOAP headers. In some environments, such as Microsoft .NET, the interface automatically moves information from the response header to subsequent request headers within the same object. You do have to do a little work to move the information between objects (for example, copying a ProcObject ID from the AppObject that creates a ProcObject to the ProcObject itself). In other environments, you are responsible for extracting the information from the response header and sending it in the SOAP headers for subsequent requests.
The WSDL defines the SOAP elements that hold the object ID using a
<complexType> declaration in the types section for
each Web service object schema that requires it. The headers in the SOAP messages that are
sent and received for a given object then contain the required object ID values.