× Discuss about OFS, Temenos Connectors, Various OFS modes, OFS with Versions, OFS performance, Logging, EB.PHANTOM, OFS.SOURCE etc…

OFSML Enquiry execution and results processing

  • lvargas65
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #9000 by lvargas65
I'm sending OFS messages to TCServer port 7002 with results correct.
Now I want to send OFSML for Enquiry processing and to be able to process complex results, like reports with header titles and column headers, like the one resulting after executing MB.LD.BALANCES.SUM

I modified tcserver.xml in next section and restart TCServer:

<LISTENER Name="tib.enquiry" type="tcp" active="true">
<ADAPTERID>T24</ADAPTERID>
<PORT> 8003 </PORT>
</LISTENER>

In order to execute an OFSML command like next considering port 8003:
<T24><requestType>OFS.ENQUIRY</requestType><userSignOnName>INPUTT</userSignOnName><userPassword>Abc123</userPassword><operation>ENQUIRY.SELECT</operation><name>MB.LD.BALANCES.SUM</name><criteria><fieldName>CONTRACT.ID</fieldName><operand>EQ</operand><value>LD0717300011</value></criteria></T24>

And receive an XML format results.

I'm using Netbeans 7.0.1 with Glassfish 3.x and the next error appears after sending XML format request thru a Java program:

java.lang.OutOfMemoryError: Java heap space

Same XML request sent using tss TELNET on command line:
C:\R07\bnk\bnk.run>jprofile.bat
START GLOBUS Y/N=N
jsh ~ -->tss TELNET
<tSS version="1.1"><t24version>R07.002</t24version><t24pid>4460</t24pid><t24ofss
ource>TELNET</t24ofssource><clientIP/></tSS>

<column></column><column></column><column></column><column></column><column></co
lumn><column></column><column></column><column></column><column></column><column
></column></row><row><column>20 SEP 07</column><column></column><column>
0,00 </column><column> </column><column> 0,00 </column><colum
n> 0,00 </column><column> 0,00 </column><column></column><column></co
lumn><column></column><column></column><column></column><column></column><column
></column><column></column><column></column><column></column><column></column><c
olumn></column><column></column><column></column><column></column><column></colu
mn><column></column><column></column><column></column><column></column><column><
/column><column></column><column></column><column></column><column></column><col
umn></column><column></column><column></column><column></column><column></column
><column></column></row><row><column>Closing Balance in </column><column>20 SEP
07</column><column>USD</column><column> 0,00 </column><column></column><
column></column><column></column><column></column><column></column><column></col
umn><column></column><column></column><column></column><column></column><column>
</column><column></column><column></column><column></column><column></column><co
lumn></column><column></column><column></column><column></column><column></colum
n><column></column><column></column><column></column><column></column><column></
column><column></column><column></column><column></column><column></column><colu
mn></column><column></column><column></column><column></column><column></column>
</row></rowData></data></response></ofsEnquiryResponse><-/T24>

This XML result is easier to process than the one obtained by OFS.

What is the correct way to configure step by step OFSML in order to send and receive XML messages format?

Thanks

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #9055 by jpb
Compare the setup in OFS.SOURCE for SOURCE.TYPE and SYNTAX.TYPE

Please Log in or Create an account to join the conversation.

  • johnperez
  • Visitor
  • Visitor
12 years 8 months ago #10530 by johnperez
I hope, not to be late. (I'm trying to setup ofsmsl)

This message java.lang.OutOfMemoryError: Java heap space ... is related with mem used.

Check the "heap size" (parameter Xmx on startup jvm) ... this is an example:

java -Xmx1024M -Djava.endorsed.dirs=../lib/endorsed/jaxp13;../lib/endorsed/jaxb13 -jar ../lib/tcserver.jar

In this case the heap size is 1024M = 1G

But, in mi case I get "empty" data ...

<?xml version="1.0"?><ofsEnquiryResponse xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ofsEnquiryResponse.xsd"><
response><docType>OFS.ENQUIRY.RESULT</docType><operation>ENQUIRY.SELECT</operation><options><versionName></versionName><function>I</function
><optOperation>PROCESS</optOperation><gtsControl></gtsControl><noOfAuth></noOfAuth></options><userInformation><userSignOnName>INPUTT</userSi
gnOnName><userPassword>123456</userPassword><companyCode></companyCode></userInformation><transactionID><transactionId>%SECTOR</transactionI
d><messageId></messageId></transactionID><data><columnData></columnData><rowData><row></row><row></row><row></row><row></row><row></row><row
></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><
row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></ro
w><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row></row><row><
/row><row></row><row></row><row></row><row></row><row></row></rowData></data></response></ofsEnquiryResponse>

Could you get setup ofsml, can you share some details please ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.078 seconds