OpenMath/py-scscp

Structure of reply to get_service_description

Closed this issue · 1 comments

I can not parse it in GAP SCSCP client. Python returns

<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0">
<OMATTR>
<OMATP>
<OMS name="call_id" cd="scscp1"/>
<OMSTR>b7d112b6-f897-11e6-b2b7-0c4de9c1b942:z0Cnis3E</OMSTR>
</OMATP>
<OMA>
<OMS name="procedure_completed" cd="scscp1"/>
<OMA>
<OMS name="service_description" cd="scscp2"/>
<OMSTR>Demo SCSCP server</OMSTR>
</OMA>
</OMA>
</OMATTR>
</OMOBJ>

so here service_description has one argument, however http://www.win.tue.nl/SCIEnce/cds/scscp2.html#service_description states that there should be It three OMSTR arguments: Name, Version, and Description.

For comparison, GAP replies with

<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0">
	<OMATTR>
		<OMATP>
			<OMS cd="scscp1" name="call_id"/>
			<OMSTR>localhost:26134:9068:9p09mLuC</OMSTR>
		</OMATP>
		<OMA>
			<OMS cd="scscp1" name="procedure_completed"/>
			<OMA>
<OMS cd="scscp2" name="service_description"/>
<OMSTR>GAP SCSCP service</OMSTR>
<OMSTR>GAP 4.8.6 + SCSCP 2.2.1</OMSTR>
<OMSTR>Started with the configuration file scscp/example/myserver.g  on Wed 22 Feb 2017 00:45:52 GMT on Wed 22 Feb 2017 00:45:55 GMT</OMSTR>
</OMA>
		</OMA>
	</OMATTR>
</OMOBJ> 

and

<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0">
	<OMATTR>
		<OMATP>
			<OMS cd="scscp1" name="call_id"/>
			<OMSTR>localhost:26134:9068:CnDaZirw</OMSTR>
		</OMATP>
		<OMA>
			<OMS cd="scscp1" name="procedure_completed"/>
			<OMA>
<OMS cd="scscp2" name="symbol_set"/>
<OMS cd="scscp_transient_1" name="SCSCPStartTracing"/>
<OMS cd="scscp_transient_1" name="SCSCPStopTracing"/>
</OMA>
		</OMA>
	</OMATTR>
</OMOBJ>

P.S. The other problem happened to be on the GAP side: gap-packages/scscp#10