Structured web services
can be invoked using XML, JSON, and SOAP messages. Certain features
and functionality are available only when using a particular message
format. Here are the main differences between the three message formats:
-
Input and output types. XML
and SOAP messages support all stored process input and output types
including prompts, XML data sources and targets, generic data sources
and targets, data tables, output parameters, streams, and packages.
JSON messages only support simple prompt types (ones that can be represented
with a string) and output parameters.
-
Endpoint addresses. The
plain XML, JSON, and SOAP versions of a structured web service are
available at three different endpoint URLs.
-
Description files. Only
SOAP web services expose a WSDL file that strictly defines the inputs
and outputs and the endpoints for the web service. You can use this
description file to create plain XML message requests for use with
the XML endpoint. JSON services donʼt have a file that describes
their input messages, but an input message can be formed by specifying
prompt name/value pairs in JSON.
-
Message format. SOAP
and plain XML services both use XML to convey invocation and result
information. However, namespaces might be omitted from plain XML invocations.
JSON services use the Javascript Simple Object Notation format for
messages.