英文:
How to call an esql/c program from Java directly
问题
我需要检查直接从Java调用ESQL/C程序的可行性。这些ESQL应用程序部署在Linux上,可以生成多个实例。
目前,它们是通过Camel应用程序从.NET调用的,该应用程序会查找端口,并通过使用Soap和XML进行调用。
在搜索过程中,我找到了一些关于从ESQL/C调用Java的链接,但没有找到反过来的情况。是否有人尝试过从Java调用ESQL/C?
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="http://tempuri.org/ns.xsd">
<SOAP-ENV:Body>
<ns:gatewayValidate>
<in>
<serverId>tpmDss</serverId>
<Request>getData101def1566030011</Request>
</in>
</ns:gatewayValidate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
在这里,serverId包含将使用请求载荷调用的应用程序的名称。
我知道可以使用JNI来调用C++ DLL,但恐怕我无法编辑这些遗留的ESQL/C程序。
英文:
I am having a requirement to check the feasibility of being able to call ESQL/C programs directly from java. These ESQL applications are deployed in Linux and can be spawned multiple instances.
Currently they are being called from .NET via Camel application which finds the port and makes call via XML using Soap.
While searching I got few links to call Java from ESQL/C but couldn't find any for vice versa. Has anyone tried to call ESQL/C from Java?
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="http://tempuri.org/ns.xsd">
<SOAP-ENV:Body>
<ns:gatewayValidate>
<in>
<serverId>tpmDss</serverId>
<Request>getData&#x1F;&#x1E;101&#x1F;def&#x1F;1&#x1F;5660&#x1F;3001&#x1F;1&#x1F;</Request>
</in>
</ns:gatewayValidate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Here serverId contains the name of the application which would be called with the payload in Request.
I am aware about JNI for calling C++ DLL's but I am afraid I don't have control to edit these legacy ESQL/C programs.
专注分享java语言的经验与见解,让所有开发者获益!
评论