10.2a - proxygen - How to generate a WSDL with optional node

Posted by MGreenwood on 21-Nov-2017 11:35

Hi,

We are running OpenEdge 102a and we expose an application via Web Services. 

Our process is to compile the interface programs and then use proxygen to create a WSDL where the parameters become the nodes to the XML

so UpdateCustomer has fields

DEFINE INPUT PARAMETER Action AS CHARACTER NO-UNDO.
etc.

DEFINE INPUT-OUTPUT PARAMETER MrktPrefPhoneSLG AS LOGICAL NO-UNDO.

DEFINE INPUT-OUTPUT PARAMETER MrktPrefMailSLG AS LOGICAL NO-UNDO.
DEFINE INPUT-OUTPUT PARAMETER MrktPrefEmailSLG AS LOGICAL NO-UNDO.
DEFINE INPUT-OUTPUT PARAMETER MrktPrefSMSSLG AS LOGICAL NO-UNDO.

We have been asked to make the last 4 parameters "Optional" i.e. the WSDL would precede the field with

 ' <!--Optional:--> '

We have been requested to implement this first thing tomorrow morning!

I have searched the knowledge base and reviewed forum posts but cannot find a specific answer to my question.

I do not think this can be done but would appreciate any feedback that would highlight my ignorance [:)]

Posted by Robin Brown on 21-Nov-2017 16:21

You are correct. It is not possible to have optional parameters in a Web service operation.

Regards,

Robin

All Replies

Posted by Robin Brown on 21-Nov-2017 16:21

You are correct. It is not possible to have optional parameters in a Web service operation.

Regards,

Robin

Posted by MGreenwood on 22-Nov-2017 03:53

Hi Robin,

Thank you for your response.

Posted by Francisco Morales López on 22-Nov-2017 09:13

But what you can do is send tables, arrays and datasets, with which it is possible to extract individual elements and generate variable behavior in your programs.

*************************************

Pero lo que si puedes hacer es enviar tablas, arreglos y datasets, con lo cual es posible extraer elementos, individuales y generar comportamiento variable en tus programas.

This thread is closed