Logging

If SOAP schema validations are enabled or disabled through TRA properties, it can be observed in the Node log for each SOAP Binding deployed on that Node by enabling the com.tibco.amx.bt.soap logger at DEBUG level.

If com.tibco.amf.bindingtype.soap.enable.validation TRA property is set to true on DevNode, the following message appears when the SOAP Service Binding SOAPService_Binding1 is deployed on the Node:

29 Jan 2016 10:09:05,079 [ComponentFrameworkTask][DEBUG] [] com.tibco.amx.bt.soap - SOAP
Request/Response Message Validations are enabled for SOAP Service
Binding: 'SOAPService_Binding1'
(PromotedServiceName=sample_new/Sample_new,
ApplicationName=soap_java_soap, BindingType=SOAP/HTTP) since the
TRA property "com.tibco.amf.bindingtype.soap.enable.validation" is
set to "true" on Node: 'DevNode'.

For SOAP Reference Binding SOAPReference_Binding1 on DevNode:

29 Jan 2016 10:09:05,656 [ComponentFrameworkTask][DEBUG] [] com.tibco.amx.bt.soap - SOAP
Request/Response Message Validations are enabled for SOAP Reference
Binding: 'SOAPReference_Binding1'
(PromotedReferenceName=Reference1, ApplicationName=soap_java_soap,
BindingType=SOAP/HTTP) since the TRA property
"com.tibco.amf.bindingtype.soap.enable.validation" is set to "true"
on Node: 'DevNode'.

If com.tibco.amf.bindingtype.soap.disable.validation TRA property is set to true on DevNode, the following message appears when the SOAP Binding SOAPService_Binding1 is deployed on the Node:

29 Jan 2016 10:13:00,317 [ComponentFrameworkTask][DEBUG] [] com.tibco.amx.bt.soap - SOAP
Request/Response Message Validations are disabled for SOAP Service
Binding: 'SOAPService_Binding1'
(PromotedServiceName=sample_new/Sample_new,
ApplicationName=soap_java_soap, BindingType=SOAP/HTTP) since the
TRA property "com.tibco.amf.bindingtype.soap.disable.validation" is
set to "true" on Node: 'DevNode'.

For SOAP Reference Binding SOAPReference_Binding1 on DevNode:

29 Jan 2016 10:13:00,598 [ComponentFrameworkTask][DEBUG] [] com.tibco.amx.bt.soap - SOAP
Request/Response Message Validations are disabled for SOAP
Reference Binding: 'SOAPReference_Binding1'
(PromotedReferenceName=Reference1, ApplicationName=soap_java_soap,
BindingType=SOAP/HTTP) since the TRA property
"com.tibco.amf.bindingtype.soap.disable.validation" is set to
"true" on Node: 'DevNode'.

If Request Message validations are enabled for SOAP Service Binding SOAPService_Binding1 at Binding level:

29 Jan 2016 09:56:30,062 [ComponentFrameworkTask][DEBUG] [] com.tibco.amx.bt.soap - SOAP
Request Message Validations are enabled for SOAP Service Binding:
'SOAPService_Binding1' (PromotedServiceName=sample_new/Sample_new,
ApplicationName=soap_java_soap, BindingType=SOAP/HTTP)

If Response Message validations are enabled for SOAP Service Binding SOAPService_Binding1 at Binding level:

29 Jan 2016 10:02:03,466 [ComponentFrameworkTask][DEBUG] [] com.tibco.amx.bt.soap - SOAP
Response Message Validations are enabled for SOAP Service Binding:
'SOAPService_Binding1' (PromotedServiceName=sample_new/Sample_new,
ApplicationName=soap_java_soap, BindingType=SOAP/HTTP)

If Request Message validations are enabled for SOAP Reference Binding SOAPReference_Binding1 at Binding level:

29 Jan 2016 09:56:29,422 [ComponentFrameworkTask][DEBUG] [] com.tibco.amx.bt.soap - SOAP
Request Message Validations are enabled for SOAP Reference Binding:
'SOAPReference_Binding1' (PromotedReferenceName=Reference1,
ApplicationName=soap_java_soap, BindingType=SOAP/HTTP)

If Response Message validations are enabled for SOAP Reference Binding SOAPReference_Binding1 at Binding level:

29 Jan 2016 09:56:29,422 [ComponentFrameworkTask][DEBUG] [] com.tibco.amx.bt.soap - SOAP
Response Message Validations are enabled for SOAP Reference
Binding: 'SOAPReference_Binding1'
(PromotedReferenceName=Reference1, ApplicationName=soap_java_soap,
BindingType=SOAP/HTTP)

Failed schema validations are logged at ERROR level in Node logs for the corresponding SOAP Request/SOAP Response:

21 Dec 2015 12:56:36,320 [httpConnector_9] [ERROR] [sample_java] com.tibco.amx.bt.soap - TIBCO-AMX-BT-SOAP-600005: SOAP Schema Validation Error. Error messages: cvc-simple-type.?:The initial value '-1' is not valid with respect to the simple type definition '{anonymous}'.. PromotedServiceName=Sample/Sample, BindingName=SOAPService_Binding1, BindingType=SOAP/HTTP, EndpointURL=urn:amx:DevEnvironment/sample_java#service-binding(Sample/SOAPService_Binding1)___1.0.0.v2015-12-10-1355, ApplicationName=sample_java, OperationName=NewOperation, MessageName=NewOperationRequest

The entire SOAP Message can be observed by enabling com.tibco.amx.bt.soap logger at DEBUG level. The following DEBUG message is printed for SOAP Request/SOAP Response which has failed the schema validations:

21 Dec 2015 12:56:36,336 [httpConnector_9] [DEBUG] [sample_java] com.tibco.amx.bt.soap - XML Validation failed for the SOAP Message <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:sam="http://sample_java_mediation/Sample/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
     <soapenv:Header/>
     <soapenv:Body>
          <sam:NewOperation xmlns:sam="http://sample_java_mediation/Sample/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
                <in>-1</in>
          </sam:NewOperation>
     </soapenv:Body>
</soapenv:Envelope>