Integration Server 10.11 | Built-In Services Reference Guide | SOAP Folder | Summary of Elements in this Folder | pub.soap.utils:getXOPObjectContent
 
pub.soap.utils:getXOPObjectContent
WmPublic. Retrieves the contents of a com.wm.util.XOPObject instance as a base64Binary string, a byte array, or an InputStream.
Input Parameters
xopObject
Object Optional. The object of type com.wm.util.XOPObject.
getAs
String Optional. The object type in which you want to retrieve the contents in the com.wm.util.XOPObject instance.
Select...
To...
base64String
Default. Retrieve the contents of the com.wm.util.XOPObject instance as a base64-encoded string.
bytes
Retrieve the contents of the com.wm.util.XOPObject instance as a byte array.
stream
Retrieve the contents of the com.wm.util.XOPObject instance as an InputStream.
Output Parameters
contentType
String Conditional. MIME type of the contents in the input com.wm.util.XOPObject instance. The contentType parameter is returned only if you have specified a value for the xopObject input parameter.
data
Document Contents of the input com.wm.util.XOPObject instance.
If the xopObject input parameter is null, this parameter has a null value.
Value
Description
base64String
String Conditional. Returns the contents of the com.wm.util.XOPObject instance as a base64-encoded string if the getAs input parameter is set to base64String.
bytes
byte [] Conditional. Returns the contents of the com.wm.util.XOPObject instance as a byte array if the getAs input parameter is set to bytes.
stream
Object Conditional. Returns the contents of the com.wm.util.XOPObject instance as an InputStream if the getAs input parameter is set to stream.
Usage Notes
You use the object of type com.wm.util.XOPObject to send or receive data as an MTOM stream. For more information about MTOM streaming, see the section Configuring MTOM Streaming for a Web Service Descriptor in the Web Services Developer’s Guide. Configuring MTOM Streaming for a Web Service Descriptor.
The content of the XOPObject can only be read one time. After you use the pub.soap.utils:getXOPObjectContent service to read the XOPObject content one time, subsequent attempts to re-read the XOPObject content will fail. It is recommended that after the XOPObject content is read that you drop it from the pipeline to make it clear to programming logic downstream that it is no longer available to be read.
When you set the getAs input parameter to stream so that the service returns the contents of the com.wm.util.XOPObject instance as a stream, the pub.soap.utils:getXOPObjectContent service does not automatically close the stream object. You can close the stream using the pub.io:close service.