We tried to publish using Elektron-SDK1.1.0.java API. We ran the example given in the API, changing some configuration and we are able to connect to the service but it is not able to publish the price, came back with Service Name not set & DeniedBySource error.
The following lines are updated when we ran the example
line no 263:
consumer = EmaFactory.createOmmConsumer(EmaFactory.createOmmConsumerConfig().host("wupra00a0186.wellsfargo.com:14002").username("sami_dev_contribute"));
line no 269:
longhandle = consumer.registerClient(reqMsg.clear().serviceName("UAT_MLIP").name(".WFCBTST1"), appClient, consumer);
line no 54 - 60
//FieldList is a collection in java
/*nestedFieldList.add(EmaFactory.createFieldEntry().real(22, 34, OmmReal.MagnitudeType.EXPONENT_POS_1));
nestedFieldList.add(EmaFactory.createFieldEntry().real(25, 35, OmmReal.MagnitudeType.EXPONENT_POS_1));
nestedFieldList.add(EmaFactory.createFieldEntry().time(18, 11, 29, 30));
nestedFieldList.add(EmaFactory.createFieldEntry().enumValue(37, 3));
*/
nestedFieldList.add(EmaFactory.createFieldEntry().real(6, 11, OmmReal.MagnitudeType.EXPONENT_POS_1));
Response message:
Jul 11, 2017 2:35:12 PM com.thomsonreuters.ema.access.ChannelCallbackClient reactorChannelEventCallback
INFO: loggerMsg
ClientName: ChannelCallbackClient
Severity: Info
Text: Received ChannelUp event on channel Channel
Instance Name EmaConsumer_1
Component Version ads2.6.10.L1.linux.tis.rrg 64-bit
loggerMsgEnd
Received Refresh. Item Handle: 0 Closure: com.thomsonreuters.ema.access.OmmConsumerImpl@1c4a1a27
Item Name: sami_dev_contribute
Service Name: <not set>
Item State: Open / Ok / None / 'Login accepted by host wupra00a0186.'
Name = AllowSuspectData DataType: UInt Value: 1
Name = ApplicationId DataType: Ascii Value: 256
Name = ApplicationName DataType: Ascii Value: ADS
Name = Position DataType: Ascii Value: 10.198.16.72/DTC8C0ADF8DD1E5
Name = ProvidePermissionExpressions DataType: UInt Value: 1
Name = ProvidePermissionProfile DataType: UInt Value: 0
Name = SingleOpen DataType: UInt Value: 1
Name = SupportOMMPost DataType: UInt Value: 1
Name = SupportPauseResume DataType: UInt Value: 0
Name = SupportStandby DataType: UInt Value: 0
Name = SupportBatchRequests DataType: UInt Value: 7
Name = SupportViewRequests DataType: UInt Value: 1
Name = SupportOptimizedPauseResume DataType: UInt Value: 0
Received AckMsg. Item Handle: 1 Closure: com.thomsonreuters.ema.access.OmmConsumerImpl@1c4a1a27
Item Name: .WFCBTST1
Service Name: not set
Ack Id: 1
Nack Code: DeniedBySource
Text: Unable to find service for post message.