Welcome Guest! Log in
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.


When invoking a Web Service, you may have the requirement to retrieve from its response unstructured, raw data.

Retrieving binary data (such as files), or plain text, for instance.

This can be performed quite easily with Stambia DI, as explained in this article.

Prerequisites:

  • Stambia DI Runtime S17.4.2 or higher

 

Metadata Configuration

As usual, design the Web Service operation with the WSDL Metadata.

Then, in the Output, add a 'Part' of mime:content Binding Type

metadataPart

Now you have three possibilties to retrieve the raw response of the Web Service invocation.

This can also be done in a 'Fault' node

 

Using the string Type

If you want to retrieve raw string data, plain text, for instance, use the string Type.

stringTypeMetadata

You can then map it as usual in a Mapping.

stringTypeMapping

 

Using the base64Binary Type

If you want to retrieve raw binary data, such as a file for instance, and store it in a table, use the base64Binary Type.

binary64TypeMetadata

You can then map it as usual in a Mapping.

binary64TypeMapping

 

Using the anyUri Type

If you want to store the output in a file, use the anyUri Type.

anyUriTypeMetadata

At invocation, the content of the response will be automatically stored in a file, created in the Runtime temporary directory.

To retrieve the exact file name and path, you can map this field to a target table.

The file's path will then be stored in this table.

anyUriTypeMapping

 

You have no rights to post comments

Articles

Suggest a new Article!