Hi Rolf,
I changed the Broker ID before calling USR2007N as you have suggested.
Test #1: Natural Program calling the Natural Subprogram
Result:
NAT0954 Abnormal termination AEY9 during program execution.
Test #2: .Net Application calling the Natural Subprogram as a web service
Result: SUCCESS! IT WORKED! FINALLY! AWESOME! WOW!
Note: I almost gave up after Test #1 but for some reason I still tried going for Test #2.
Summary: In order to achieve this
a) AUTORPC=ON is required in the RPC Server.
Otherwise this error will come out:
Broker Error 1001 0016: Callee not found. Library: VRWEBSERVICE, Program: ELVRWS03 ELVRWS03 4910 NAT0082 Invalid command, or Subprogram ELRPC001 does not exist in library., NE=01,ELVRWS03491002O
b) RPCSIZE must be increased in the RPC Server.
Otherwise this error will come out (even with AUTORPC=ON):
Broker Error 1014 6971: Natural RPC Server returns: ELVRWS03 4910 NAT6971 Connection error on Client, reason 7 ,RPCXMLOUT /BKR144., NE=01,ELVRWS03491002O
c) Broker ID must be absolute when calling USR2007N, i.e. include Port and Protocol.
Otherwise this error will come out:
Broker Error 1014 6971: Natural RPC Server returns: ELVRWS03 4910 NAT6971 Connection error on Client, reason 7 ,RPCXMLOUT /BKR144., NE=01,ELVRWS03491002O
d) Refer to result of Test #1 on error.
Workaround: If caller is Natural/Mainframe use BKR144 without Port No and TCP.
A Big Thanks To ( In order of appearance )
Wolfgang Weil
Douglas Kelly
Aldo Teusch
Rolf Bahlke
I apologize to Wolfgang, Douglas and Aldo if this is what you’ve been trying to tell me but I was just too “slow” to get it.
Thank You Gentlemen! You’re the Best!
Regards,
Chris