PyRFC icon indicating copy to clipboard operation
PyRFC copied to clipboard

server mode doesn't work probably

Open loewechiu opened this issue 5 years ago • 3 comments

Hi Gurus,

I just test with PyRFC/examples/serverStfcConnection.py , and find it can't register to sap gateway normally at all.

First, my cfg is like:

gwhost = xxx.xxx.xx.xx
ghserv = sapgw10

it just go through 3300 not 3310 and return error:

pyrfc._exception.CommunicationError: RFC_COMMUNICATION_FAILURE (rc=1): key=RFC_COMMUNICATION_FAILURE, message=
LOCATION    CPIC (TCP/IP) on local host ITCNSUZM01294 with Unicode
ERROR       partner '153.95.192.18:3300' not reached
TIME        Mon Apr 29 10:20:23 2019
RELEASE     753
COMPONENT   NI (network interface)
VERSION     40
RC          -10
MODULE      D:/depot/bas/753_REL/src/base/ni/nixxi.cpp
LINE        3449
DETAIL      NiPConnect2: 153.95.192.18:3300
SYSTEM CALL connect
ERRNO       10061
ERRNO TEXT  WSAECONNREFUSED: Connection refused
COUNTER     2
 [MSG: class=, type=, number=, v1-4:=;;;]

Then I changed my cfg to: my cfg is like:

gwhost = xxx.xxx.xx.xx
ghserv = sapgw10
sysnr = 10

it successfully appeared in sap gateway, however, it keeps flashing (the number/id in gateway list keeps change in mileseconds), So can't be used at all?

Could any one help me ?

Thank you very much.

loewechiu avatar Apr 29 '19 03:04 loewechiu

I am sorry but the server functionality is currently not covered by PyRFC support, only the client.

bsrdjan avatar Apr 29 '19 14:04 bsrdjan

Server bindings are implemented in main branch: df9805e

More info: https://github.com/SAP/PyRFC/issues/193#issuecomment-720645607

bsrdjan avatar Nov 02 '20 18:11 bsrdjan

Server bindings are published with 2.3.0 release on PyPI, feel free to test.

bsrdjan avatar Dec 02 '20 13:12 bsrdjan