WSAction parameters

Hi,

I need some help for a problem that should be simple to solve but the current level of information on webMethods documentation is preventing me to move forward.

The issue is as follows:

I need to have an Optimize WSAction calling an Integration Server service to restart a JDBC connection when the connection goes off line.
I’m using the default rule “ART Connection Failure Status” to trigger the configured action.
Everything is working fine (configuration is ok and the service is invoked in the destination IS) but I do not have the necessary information to restart the connection.
I realy just need to have the connection alias but there is no information on the manual on how to achieve this.
I’ve been doing trial-and-error, using parameter names that “could” have this information, but so far no luck.
My configuration for the WSAction is passing the fllowing elemnt list:

RuleName
RuleDefinition
RuleEvaluation
RuleSla
RuleCustomer
RuleSeverity
RuleStatus
Attributes
Time

From the list, the only ones that retutn values are:
-RuleName
-RuleDefinition
-RuleEvaluation
-RuleSla
-RuleStatus
-Time
None of this has information that can be usefull for my case.

I’m using Optimize For Infrastructure 7.1.2 whit fix 4.

Thanks for your help,
Gonçalo Santos

Hi ,

You have to add whatever parameters you want to the wsaction settings at Define Environments–>Configure Servers–>WSAction Settings in my webmethods server.

example:

<?xml version="1.0" encoding="UTF-8"?> RESTART ART Connections http://myhost:5555/ws/folder.Provider:myWSActionRestartAdapterConnection?WSDL wsActionRestartARTConnection RuleName RuleStatus RuleDefinition RuleEvaluation RuleSla RuleCustomer RuleSeverity Attributes Time Object Status Contains Resource Message Message Severity Error Message Busy Connections ART Connection Completion Count Free Connections Total Connections Adapter Type Display Name Failure Count Connection Type Product Patch Level Last Status Change you will get all the information about attributes below given at Analytics-->KPIs-->systemdata-->artConnection in my webMethods Server UI.

Attributes need to include in ws action settings:
Object Status, Contains Resource Message,Message SeverityError ,Busy Connections,ART Connection,Completion Count,Free Connections,Total Connections,Adapter Type,Display Name,Failure Count etc…

Thanks,
-Vikram S Pachica

Hi,
Invoking the WS action from the default rule: IS HTTP Port Failure Status

I have the same signature in the webService and in the WS Action Settings, webService is getting invoked but with null values and getting the below error in AE logs,

(OPTIMIZE) [Analytic Engine v7.1.2.0.WebServiceAction.wsActionInvokeAction] 2010-05-04 15:53:54.585 GMT+08:00 ERROR: Error sending context com.dante.analysis.action.template.context.ActionContextImpl@3b873b87
(OPTIMIZE) [Analytic Engine v7.1.2.0.WebServiceAction.wsActionInvokeAction] 2010-05-04 15:53:54.585 GMT+08:00 ERROR: java.rmi.UnmarshalException: java.io.IOException: no argument constructor is missing. java.lang.NullPointerException

    <list>

RuleName
RuleDefinition
RuleEvaluation
RuleSla
RuleCustomer
RuleSeverity
RuleStatus
Attributes
Time

Any thoughts about the issue.

Thanks,
Sathish.

Hello Sathish,

I’m also getting the same ‘Unmarshal Exception’ while calling the webservice actions.

Did you find the solution for this issue?

Thanks
Ram

To overcome the ‘Unmarshal Exception’, I had to create new the WSDL file and the web service connector should be of type RPC-Literal.

Regards
RamGopal