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
![http rest legacy.sendraw.metadataPart](../../../_images/base/wsdl/http-rest-legacy.sendraw.metadataPart.webp)
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.
![http rest legacy.sendraw.stringTypeMetadata](../../../_images/base/wsdl/http-rest-legacy.sendraw.stringTypeMetadata.webp)
You can then map it as usual in a Mapping.
![http rest legacy.sendraw.stringTypeMapping](../../../_images/base/wsdl/http-rest-legacy.sendraw.stringTypeMapping.webp)