Mendix FileDocument WS request transformer
Creates web service request messages for passing the payload to Mendix as a System.FileDocument object.
Transformer that converts the incoming message payload into a Mendix web service request that contains this payload as a Base64 encoded string. Such web service requests are compatible with a Mendix published web service operation that has the Contents
member of a System.FileDocument
entity as its only parameter.
This is useful in two situations:
- Passing the contents of any file to Mendix, so it can be stored as a
System.FileDocument
. - Passing an XML document to a Mendix web service, so it can be used in an XML-to-domain mapping (a workaround for creating "contract first" web services in Mendix).
The output of this transformation is an XML document that looks like the following:
<?xml version="1.0"?> <ns:OperationName xmlns:ns="http://www.example.org/"> <ParameterName> <MemberName>PD94bWwgdmVyc2lvbj0iMS4wIj8+PHRlc3QvPg==</MemberName> </ParameterName> </ns:OperationName>
Namespace
The Target namespace of the Mendix Published Web Service these web service requests are intended for.
Operation name
The WSDL Name of the Mendix Published Operation these web service requests are intended for.
Parameter name
The WSDL Name of the (single) Mendix Parameter (of type System.FileDocument
) these web service requests are intended for.
Member name
The WSDL name of the (single) Mendix Member (of type Binary
) these web service requests are intended for.
Warning:
Due to a bug in Mendix, using any other WSDL name than the default (Contents
) will cause the web service to skip mapping the actual FileDocument contents.
Charset
The name of the charset to be used to encode the string representation of the incoming XML document or string payload into a sequence of bytes, which is then encoded as a Base64 string value to be passed to the Mendix web service.
If the payload of the incoming message is already in byte form (i.e. a byte[]
), this property is not used.
Default is UTF-8
.
Result type
Sets the result type (XomDocument
, DomDocument
or String
) for the transformation.
Default is String
.
Output channel
Channel where output messages should be sent after (successfully) processing the input message.
You can select the nullChannel
here to silently drop the output messages.
Required
Input channel
Channel to consume the input messages from.
Required
Id
Name that uniquely identifies this flow component.
Required