mydoghasworms / nwrfc

SAP Netweaver RFC SDK wrapper via Ruby-FFI
http://ceronio.net/nwrfc/
28 stars 14 forks source link

SAProuter support #2

Open mcr-ksh opened 11 years ago

mcr-ksh commented 11 years ago

Hi,

i've been trying to connect via SAProuter and found it not working.

as ashost a string like: ashost = "H/#{srhost}/S/3299/H/#{rhost}/S/#{rport}"

causes: LOCATION CPIC (TCP/IP) on local host with Unicode ERROR hostname '?' unknown TIME Fri Nov 2 09:16:05 2012 RELEASE 720 COMPONENT NI (network interface) VERSION 40 RC -2 DETAIL NiErrSet COUNTER 2

mydoghasworms commented 11 years ago

What is the value of srhost, rhost and rport when you output to console just before calling this statement?

mcr-ksh commented 11 years ago

its an IPv4 address and port number.

so srhost is imagine "1.1.1.1". rhsot is something internal. lets say "10.1.1.123" and port rport 3444.

mydoghasworms commented 11 years ago

Sorry, I never took the time to understand your problem earlier. What happens when you pass "saprouter" => "H/#{srhost}/S/3299/H/#{rhost}/S/#{rport}" to Connection.new? The parameters are passed as-is to the API functions. You can see a list of them here: http://help.sap.com/saphelp_nwpi71/helpdata/en/45/a2716ae67b2e78e10000000a155369/frameset.htm

I haven't tried connecting via a router myself. Sorry for the late reply.

janewar commented 1 year ago

saprouter http connection