Try OpenEdge Now
skip to main content
Web Services
Creating OpenEdge SOAP Web Services : Building Clients for OpenEdge SOAP Web services : Retrieving and sending object IDs: handling SOAP headers : Using object IDs in a SOAP message
Using object IDs in a SOAP message
This is a sample header of a SOAP message containing an object ID for the object specified in the sample WSDL, using the WSDL-defined <OrderInfoID> SOAP element:

SOAP header containing an object ID

  <OrderInfoID xmlns ="urn:OrderSvc:OrderInfo">    
The value of the object ID appears in bold, contained by the <UUID> element.
The same basic <OrderInfoID> element contains the object ID in the SOAP response header that initially returns the OrderInfoID object ID, when the object is created, and is required in any subsequent SOAP request header sent by methods invoked on the OrderInfo object.
Thus, for all Web service objects that require object IDs, your client application must parse out the object ID value in the <UUID> element contained by the object ID element (<OrderInfoID> in the example) and returned in the SOAP response header at object creation, whether it happens automatically or you must program it explicitly. Similarly, for every SOAP request sent by a method invoked on this same object, your client application must create an object ID element containing a <UUID> element that holds this identical object ID value in the SOAP header of the request message.
For examples of SOAP headers that contain object IDs and sample code that handles object IDs, see the following chapters:
*Sample Code with SOAP Messages for OpenEdge Web Services
*Developing a .NET Client to Consume OpenEdge SOAP Web Services
*Developing a Java Client to Consume OpenEdge SOAP Web Services
For examples of client applications that handle object IDs, see the sample OpenEdge Web service applications available on the Documentation and Samples (doc_samples) directory of the OpenEdge product DVD. For information on how to access these applications, see Sample SOAP Web service applications.