Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

PI 7.11 Directory API to mass change communication channels

Hi all,

I am using PI Directory for mass updating communication channels. The update consists of mass deactivate active channels in the Directory.

I am using the web service CommunicationChannelIn to udpate.

The problem is that this web service, do not give the possibility of updating individual properties of a communication channel.

In order to change one property, let say AdapterStatus, we need to read the whole adapter settings by using the read operation of the web service, getting the result of class com.sap.xi.basis.CommunicationChannel, build a new object of type com.sap.xi.basis.RestrictedCommunicationChannel by using setters and getters methods, with changing the wanted channel property, and then call the change operation to update.

Here is the code snippet i have used in order to copy all the channel properties before calling the update method :

The problem with this approach is that i am not sure to have copied all the wanted properties (thanks SAP for having used a different java class types form read operation and the change one ...)  and that i am not loosing some information in the copy process ...

Any comment or idea to ensure that the channels are copied exactly as they are ?

Thanks alots,

Nadir

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question