Getting the payload

Hi, :slight_smile:

I think it is a simple matter, but I would like to know how can I add a property into SagHttpGateway (e.g. xbd.http.query.xml) and set the payload on it.

Thanx in advance, Ito

The payload is already there, its the XML payload that is passed from step to step. If you want to do something like a HTTP POST of the XML to store it into Tamino with _process= then you can’t do it, because prepending the body with _process invalidates the XML payload because it is no longer valid XML.

The way I store XML into Tamino is to use the SagTaminoLogger. This checks the response from Tamino and if an error occurs, the on_error sequence is invoked.

Another alternative which I have simply not explored is to use the Tamino SOAP API; I have no idea if this is possible or not.

Hope this helps.

Stuart Fyffe-Collins
Software AG (UK) Ltd.

Another idea is to write an asp page that stores the payload. You can then use the http gateway to access it. You can then add extra coding to ensure there are no duplicates etc.

But if you wan’t to try using your suggested method do the following.
Use the emerger to create the new property xbd.http.query. Copy the whole document as it’s value, but remember to add _process to it. I’m not sure if your document will still be valid xml though.

If you do try it, let us know if it works.

Hi Jean,

As well as ASP you could write a simple servlet to do the job if you are more Java inclined, which again can include customized processing of the XML payload before it is inserted into Tamino.

With regards to the second suggestion of using the emerger, I have tried this in the past without any success.

Kind regards,

Stuart Fyffe-Collins
Software AG (UK) Ltd.