Skip to main content
Nintex Community Menu Bar

How do I create Optional Method Parameters in a WCF service Instance

  • October 31, 2019
  • 1 reply
  • 107 views

when I create a smartobject based on a wcf  ServiceObject 

the input paramters of the service object always appear as REQUIRED 

for example graph.UpdateDocumentFields(String username , String Colour = 'Null) 

will apear in the smartobject tooling 

as 

INPUT PROPERTY NAME   TYPE REQUIRED Bound To 

username                              TEXT      YES         parameter username 

colour                                     TEXT      YES         parameter  colour 

 

I would expect to see 

INPUT PROPERTY NAME   TYPE REQUIRED Bound To 

username                              TEXT      YES         parameter username 

colour                                     TEXT      No          parameter  colour 

1 reply

Forum|alt.badge.img+7

Hello  @AFWater,

 

Pleae have a look at the followking paths:

 

Passing Null Values to a WCF Service

https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/Passing-Null-Values-to-a-WCF-Service/td-p/74670

 

Configuration setting to deal with Optional Parameters while creating SQL Service Instance:

https://vijaydk2guy.com/2017/12/22/configuration-setting-to-deal-with-optional-parameters-while-creating-sql-service-instance/

 

All the best.