Skip to Content
avatar image
Former Member

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, build a new object of type 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,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 10, 2015 at 05:14 PM


    Read operation will return list of CommunicationChannel objects. Take those objects and set file.adapterStatus as inactive, then use same CC object in Change operation. This way, there is no need to read all properties.

    Please check these blogs for more info

    How to consume web services hosted by SAP PI / PO

    How to use Integration Directory API

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Raghu Vamseedhar Reddy KadipiReddy

      Thanks again for your reply !

      I am trying to hook the wsdl of the CommunicationChannelIn service in order to force the use of the CommunicationChannel class instead of the RestrictedCommunicationChannel in the change operation and the regenerate the java proxy and data types classes. I will tell if that works.

  • Jun 11, 2015 at 03:03 PM

    Hi Nadir,

    Use the get property of to get the return as JAXBElement<String> and input this list to the set property of CommunicationChannelRestricted as shown below.

    Hope this helps.



    Add comment
    10|10000 characters needed characters exceeded