# Natural Call to Stub Program

**URL:** <https://techcommunity.softwareag.com/t/natural-call-to-stub-program/80542>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [March 18, 2009, 5:16pm UTC](https://techcommunity.softwareag.com/t/natural-call-to-stub-program/80542 "2009-03-18T17:16:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danny2](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Danny2](https://techcommunity.softwareag.com/u/Danny2)\
**Post date:** [March 18, 2009, 5:16pm UTC](https://techcommunity.softwareag.com/t/natural-call-to-stub-program/80542/1 "2009-03-18T17:16:19Z")

</div>

Good morning,  
I am a new Natural programmer attempting to write a Natural program that calls a Stub generated using SYSRPC. The Stub program sends data through EntireX to a Web Service running Corticon business rules software.

I have been told by my web team that the data is getting to Coticon and is being returned to my Stub through EntireX successfully. When the Stub tries to return to my calling program I get the following error:

“NAT6977 Internal error on Server, reason 20000077 XML Runtime Exception 2000 00”.

Previously, I had been told that I had a mismatch between my data, either in length or format. I’ve checked and had others check and the data seems to be correct.

When I do a variables display using the test function, I get several invalid data errors on fields that are not part of my code: CB\_OFF\_ERXB, CB\_OFF\_LOGB, CB\_OFF\_SECB and CB\_DYNTLEN. These all came back with spaces when they are numeric fields.

Could someone please give me some hints as to what I need to do to find the actual problem and how to resolve it?

Thanks,  
Danny

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [March 18, 2009, 5:31pm UTC](https://techcommunity.softwareag.com/t/natural-call-to-stub-program/80542/2 "2009-03-18T17:31:00Z")

</div>

Hello Danny,

the error 20000077 is described here:  
[http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/exx8/mac/class\_2000.htm#20000077](http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/exx8/mac/class_2000.htm#20000077)

So this is not a problem on the Natural RPC client side. The problem is that the data returned by the web service does not correspond to the definition(s) in the XMM mapping file which is used by the EntireX XML/SOAP RPC Server.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:51pm UTC](https://techcommunity.softwareag.com/t/natural-call-to-stub-program/80542/3 "2021-04-02T14:51:41Z")

</div>


