Skip to Content
author's profile photo Former Member
Former Member

Programmatically detect a PI channel stopped in RWB

Hello,

Does anybody know a way to programmatically detect a PI channel stopped in RWB?

Thanks,

Shawn

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 21, 2011 at 02:36 PM

    One possible way is ..

    Write a java program and using http command to control the channel. if the channel is already stopped based on the http response we can decide whether the channel is stopped or working. we can achieve this using script too.

    Controlling the communication channels using http command as follows...

    /people/william.li/blog/2007/05/04/control-communication-channels-externally-without-using-rwb

    Example: send stop command and see whether the response is 200 OK. If the response is not good then we can decide the channel is already in sleep state.

    http(s)://nspad271.pal.sap.corp:50000/AdapterFramework/ChannelAdminServlet?party=&service=BLService&channel=File1_sender&action=stop

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2011 at 03:39 PM

    Thanks guys.

    I do not want to control the communication channel externally. It is controlled by a availability time planning. I am looking for a way to detect if the channel is stopped then send out an alert.

    Thanks,

    Shawn

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2011 at 03:22 PM

    Hi,

    To control communication channels externally, you use an HTTP GET or POST request to the following URL:

    http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=action

    See this wiki,

    http://wiki.sdn.sap.com/wiki/display/XI/ExternallyControllingtheCommunicationChannel

    http://help.sap.com/saphelp_nwpi711/helpdata/en/45/0c86aab4d14dece10000000a11466f/content.htm

    You can easily control comm channel through external control.

    Please refer the HELP.SAP material on this.

    In RWB you need to enable external control on communication channel.

    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/0c86aab4d14dece10000000a11466f/content.htm

    To control communication channels externally, you use an HTTP GET or POST request to the following URL:

    http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=action

    The XML structure of the HTTP response is documented in a document type definition (DTD) and an XML schema definition (XSD). You can call this information using HTTP at the following addresses:

    ● http(s)://host:port/AdapterFramework/channelAdmin/ChannelAdmin.dtd

    ● http(s)://host:port/AdapterFramework/channelAdmin/ChannelAdmin.xsd

    You can try this through internet explorer also 😊

    http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=action

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.