cancel
Showing results for 
Search instead for 
Did you mean: 

Read communication channel using dir api.

Former Member
0 Kudos

All,

I have created a new project in NWDS.
Downloaded and imported the CommunicationChannelService wsdl in NWDS.
Generated Client web proxy (Web Services >> Generate Client)
Created a new package and a class called readchannel.

Now please let me know which method I need to call to read the channel information?
Do I need to use communication channel restricted class?

Accepted Solutions (0)

Answers (2)

Answers (2)

anandvithal
Active Participant
0 Kudos

Hi,

To read all communication channels from intigration directory you can use two operations from the channel webservice. First you use query service to read all communication channel names along with its component name and its party name.

Then after you get all the channel names from query service, use the read operation and provide the output of the query operation as input to read serivce to get complete details of each channel.

CommunicationChannelRestricted class is used for updating a communication channel in Integration directory. Since you are only intrested to read the channels, you dont need to use this class.

Thanks,

Anand

Former Member
0 Kudos

Hi Anand,

Could you please explain in detail as to how to read the Communication Channel names. If possible could you give me the code. I'm successfully able to get the number of Communication Channels but was unable to read the names of the channels.

Here is the code:

public CommunicationChannels() {


serverPort);


try {


port = getPort();



catch (Exception e) {






public List query() {


new CommunicationChannelQueryIn();


new CommunicationChannelID();    



port.query(queryIn);




return lMsgHdr;

}

Please provide me teh code to read the channel names.

Thanks,

Soundarya

former_member190624
Active Contributor
0 Kudos

Hi Vicky,

Go through below William Li's blog

http://scn.sap.com/community/pi-and-soa-middleware/blog/2008/10/20/directory-api-development--part-3...

Follow steps specified in blog , if you stuck some where ?let us know.

Regards

Hari.

Former Member
0 Kudos

Thanks Hari, I have gone thorugh this link. However this link talks about creating or updating the channels.

I would like to know about how to read channel details preferable in an excel.