on 04-13-2010 2:17 PM
Hello,
I am looking at an efficient way of changing the content-type of a received message (e.g. from application/xml to text/xml) by using the module MessageTransformBean.
I know it would be possible with Java Mapping, but if possible I want to avoid that and use a standard module.
I was thinking of using the parameter Transform.ContentType, however the problem is that the parameter xml.conversionType
has to be set too. I do not want to change the message format from flat to XML but just want to change the content type.
Is there any way to achieve with this standard module (maybe by using a dummy value for the xml.conversionType parameter)?
Thank you for your input!
cant you ignore the parameter - xml.conversionType ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you are using the SOAP receiver adapter, you can change the content type by these configuration parameters:
Module Configuration Parameter HTTP Header Entry Example
XMBWS.XMLEncoding Content-Type charset iso-8859-1
XMBWS.TransferEncoding Content-Transfer-Encoding base64
without the need for an additional module in the chain.
Hope this helps.
Regards,
S. Gokhan Topcu
This is totally new to me.
Which PI version do you use?
Hi Stefan,
I use version 7.11. I tried it again by just setting the following paramters:
1 Transform.Class com.sap.aii.messaging.adapter.Conversion
1 Transfort.ContentType text/xml;charset=utf-8
However I still get the following error:
Fehler: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Error initializing conversion routine: 'conversionType' not set
Yes, sorry this was a typing error. Still the error is the same.....
Another question from my side:
Maybe it is possible to set a "dummy value" for paramter xml.conversionType.
Is there any documentation or complete list of allowed paramter values available for this parameter? I have only found some examples but not an exhaustive list.
Edited by: Florian Guppenberger on Apr 14, 2010 4:47 PM
Sorry, got the first answer wrong. I have removed all other parameters and now it works. Thank you all.
Edited by: Florian Guppenberger on Apr 14, 2010 5:14 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.