Sending raw, unstructured data to a web service
This page is legacy documentation. For the current HTTP REST connector, see its dedicated section. |
When invoking a Web Service, you may have the requirement to send unstructured, raw data.
Sending a file, binary data, or plain text, for instance.
This can be performed quite easily with Semarchy xDI, as explained in this article.
Metadata Configuration
As usual, design the Web Service operation with the WSDL Metadata.
Then, in the Input, add a 'Part' of mime:content Binding Type
Now you have three possibilties to send raw / unstructured data.
Using the string Type
If you want to send raw string data, plain text, for instance, use the string Type.
You can then map it as usual in a Mapping.