XML-NODE-NAME discarded by ProxyGen

Posted by rvkanten on 03-May-2010 03:48

Consider following TEMP-TABLE definition:

DEFINE TEMP-TABLE ttCustomerInfo NO-UNDO

  XML-NODE-NAME "Customer":U

...

When I generate a WSDL using ProxyGen the schema refers to "ttCustomerInfo" instead of "Customer" which is passed at run-time in SOAP messages.

How to overcome this flaw?

OpenEdge 10.1C

All Replies

Posted by Robin Brown on 03-May-2010 10:50

XML-NODE-NAME is only supported for DATASET parameters, not TEMP-TABLE parameters.  This was added in 10.1C03.  You need to use a 1 member DATASET parameter, or define the TEMP-TABLE parameter with the name you want in the SOAP message.

The following will give you the same results as if you defined the TEMP-TABLE parameter with the name Customer:

DEFINE TEMP-TABLE ttCustomerInfo  XML-NODE-NAME "CustomerRow"...

DEFINE DATASET dsCustomerInfo  XML-NODE-NAME "Customer" FOR ttCustomerInfo...

Then use a dsCustomerInfo DATASET parameter.

Posted by rvkanten on 04-May-2010 03:46

Robin,

We are using OE 10.1C00 and sadly your suggestion does not work in this version.

However, I can confirm that your suggestion works in OE 10.2B00.

This thread is closed