Encode (-ENCODE)

Use the Encode adapter command (-ENCODE) to instruct the adapter to encode the SOAP message, which involves adding a SOAP envelope if none is provided.


-ENCODE

For example, to encode a SOAP message before transporting over HTTP:


PUT("SOAP","-ENCODE -TRANSPORT 'HTTP(-URL http:/myurl/)'" 
SoapRequest)

The -ENCODE option is optional since it is implied by the invocation of the SOAP Adapter in an output card or PUT function.

For more information on encoding and decoding data, see Encoding and Decoding Data in the Resource Adapters documentation.