cancel
Showing results for 
Search instead for 
Did you mean: 

Access the URL Parameter from a Adaptermodule

Former Member
0 Kudos

Hi,

I need to implement an adaptermodule to create a SOAP-Header element. I use the SOAP Adapter (receiver) in this case with the flag "Not use SOAP env.) One element within this header element will be the URL of the Webservice with I declare in the Adapterconfig.

How can I access this config within a Adaptermodule or must I implement a modul parameter ?

Regards,

Gerald

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can access the comm. channel parameters in the module.

here is the sample code:

cid = moduleContext.getChannelID();	
				ch =(Channel) LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL,cid);
				String dir = ch.getValueAsString("file.targetDir");

this is to get the value of target directory in file adapter module.

try something similarly.

hope this helps.

regards,

P.Venkat

former_member189324
Contributor
0 Kudos

Hi Gerald,

Yes you have to implement the Adapter Module.

Thanks

Prasad

Former Member
0 Kudos

Hi Prasad,

my question is not Adapter Module or not. My question is: can I access the Comm.channel attributes within the adaptermodul ?

But I think I found the answer -> Yes it's possible

If you have a sample code, I will be happy.

Regards,

Gerald