Log Messages: Sender Identifier
Deployment Time Messages
If the Sender Identifier Expression specified for the SOAP Service Binding and/or Operation is invalid, the application deployment will fail with the following ERROR log message in the TIBCO ActiveMatrix Runtime Node log:
For SOAP Service Binding:
10 Jul 2015 16:33:32,814 [ComponentFrameworkTask] [ERROR] [] com.tibco.amx.bt.soap - Error in compiling the Sender Identifier Expression "/*[local-name()='Envelope']///*[local-name()='Body']/*[local-name()='AddUser']/name/text()" for the Binding: BindingName=SOAPService_Binding1, PromotedServiceName=Sample/Sample. Please make sure the Sender Identifier Expression is a valid XPath expression.
For SOAP Operation:
10 Jul 2015 16:35:36,328 [ComponentFrameworkTask] [ERROR] [] com.tibco.amx.bt.soap - Error in compiling the Sender Identifier Expression "/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='AddUser']/lastname/text()//" for the Operation: OperationName=AddUser, BindingName=SOAPService_Binding1, PromotedServiceName=Sample/Sample. Please make sure the Sender Identifier Expression is a valid XPath expression.
Runtime Messages
At Runtime, when a SOAP Service Endpoint receives a SOAP Request, the Sender Identifier Expression for the given Operation is evaluated.
The evaluated value can be inspected by enabling com.tibco.amx.bt.soap logger on the TIBCO ActiveMatrix Runtime Node at DEBUG level. The following DEBUG log message is printed for each SOAP request:
10 Jul 2015 16:28:00,782 [httpConnectoradduser_21] [DEBUG] [] com.tibco.amx.bt.soap - Sender Identifier value in the SOAP request message: "James". PromotedServiceName=Sample/Sample, BindingName=SOAPService_Binding1, OperationName=AddUser, SenderIdentifierEpression=/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='AddUser']/name/text()
If a Sender Identifier is not found in the SOAP Request after the Sender Identifier Expression evaluation, the following WARN log message is printed in the TIBCO ActiveMatrix Runtime Node log. The TIBCO ActiveMatrix SPM Dashboard will not be updated for the given SOAP Request.
10 Jul 2015 16:29:48,943 [httpConnectoradduser_21] [WARN ] [] com.tibco.amx.bt.soap - No Sender Identifier found for this SOAP request message: PromotedServiceName=Sample/Sample, BindingName=SOAPService_Binding1, OperationName=AddUser, SenderIdentifierEpression=/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='AddUser']/lastname/text()
If the Sender Identifier Expression evaluation results in more than one match in the SOAP Request, the following WARN log message is printed in the TIBCO ActiveMatrix Runtime Node log. The first match is considered to be the "Sender Identifier" and is sent to the SPM Dashboard.
14 Jul 2015 11:50:09,199 [httpConnectorzAddPerson_2] [WARN ] [] com.tibco.amx.bt.soap - SenderIdentifierExpression evaluates to more than one element in the SOAP request message. The first occurrence will be used as the Sender Identifier for this request. SenderIndetifier values=Heli, Sandy, James Jr., Mia, PromotedServiceName=AddPersons/AddPersons, BindingName=SOAPService_Binding_AddPerson, OperationName=AddPersons, SenderIdentifierEpression=//childname/text()