on 02-08-2010 3:06 PM
Hello Expert,
I have a HTTP to HTTP scnario. We are not doing any message mapping as we have developed a generic solution for 6 messages to flow via one interface.
Now we are facing an issue and needs to truncate the length of one field in the target message from 12 to 8. This would have been very simple if we had mesage mapping step but this is not the case here.
The other option we though of is to write an adapter module which will read the payload and do the changes. Even this is simple adapter module but the problem is HTTP adapter does not support modules. The MODULE tab for HTTP adapter is greyed out.
Is there any way where i can change the payload of the message for HTTP to HTTP scenario without adding the message mapping step?
It is haulting a lot of test scripts hence your help will be hight appreciated.
REgards,
Yash
Hi,
>>>Is there any way where i can change the payload of the message for HTTP to HTTP scenario without adding the message mapping step?
yes this is pretty easy
/people/william.li/blog/2009/03/19/adapter-user-module-for-http-adapter
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>The confusion i have here is will this change effect all my HTTP adapter configuration? If i want this addtional class for only one scenario, how can i restrict that?
it will not - you will have a new url for this new requirement and only if you use this new url it will work with the "module"
if you use the old one it will not be affected
>>>For Java adapters we call the adapter module only in that communication channel. How will this work?
you call a different url which is linked to a different http handler (copy of the original with your changes inside)
Regards,
Michal Krawczyk
>
>we can pass parameters from the communication channel configuration. Can we do something similar here?
>
What parameters are you looking for....is it the dynamic configuration? May be this blog will provide you some link:
/people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
Use SOAP adapter and check "No SOAP envelope". So you have a Java based HTTP adapter where you can add adapter modules.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.