on 07-09-2015 9:26 AM
Hi Guys,
I am making a scenario which can starts and stops the communication channels depending on some cases.
Referenced these documents;
Controlling a Communication Channel Externally - Process Integration Monitoring - SAP Library
Now, I'm able to get action=status, but when trying to stop or start any channel, getting following error response;
com.sap.aii.af.service.administration.impl.WrongAutomationModeException: The channel is configured to use an automation mode not compatible with the type of the current principal (WSUSER). The channel was not stopped. Change the channels automation mode and repeat the administrative action.
I couldn't find any solutions neither on scn nor sap notes.
Kindly ask for your help.
Ridvan Polat
Hi Ridvan,
Are you sure the WSUSER has the roles that are pointing in your first link?
If you assure that you have checked the External Control activated, may be could be your PI version.
Have you tried to use this service (directly from wsnavigator)?:
You can find its URL in the Service Registry:
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Iñaki,
Maybe you're right, it may be because of PI version, it is 7.11.
I've also checked services you mentioned, but there is no IChannelAdmin service.
I found these two services and I'm able to consume them, but I can only get channel status with these.
I need to change channel status (stop/start).
Regards,
Ridvan Polat
HI Ridvan,
However, your exception is clear and it is no throwing nothing relative that the service doesn't exist or it can't be reached. Have you tried to call you first attempt from WSNavigator?,.
And in the first link that you have shared, in the prerequisites said that you have to assign the roles in NWA, not only in the ABAP side, are you sure the roles has been assigned in your user or the WSUSER pointed in the exception?.
Regards.
Hi Iñaki,
Yes, I've consumed with the wsnavigator tool.
I also noticed that there is no wsuser on java/abap stacks.
I was using my own user with giving 'xi_af_channel_admin_modify' role.
I've created wsuser on java stack and gave the action in a role. Now it works fine.
Thank you for your help.
Regards,
Ridvan Polat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.