Endpoints WCF Service Type Query

  • 18 December 2013
  • 2 replies
  • 0 views

Badge +4

Hi all,


I have added a WCF web service to the Endpoints WCF Service Type. Once added when I go into the methods section it shows the Method Type as 'Read' for all methods except methods that return lists. Also all parameters of the method are shown as '"required".


How would I make some of the parameters 'not required' when creating the smartobject from a Visual Studio K2 Smartobject project.


Thanks in advance.


2 replies

Badge +5

HI, 

 

The K2 out of the box WCF service instance does not allow for altering what vaules are 'required'. However if you created your own custom service instace you would be ablle to specify peramerters.

 

Here is the documentation detailing the specific API with regards to WCF services  

 

http://help.k2.com/onlinehelp/k2blackpearl/DevRef/4.6.7/webframe.html#WCF_Services.html

 

Regards

Badge +4

You know @s0m30n3,

 

We use WCF endpoints quite a lot and though you may have non-required fields on the backend, the K2 smartform may not recognize that the fields is not required, and you may end up having to pass the "scnull" value to the field.  Check out this thread where I discovered this.

 

http://community.k2.com/t5/K2-blackpearl/Passing-Null-Values-to-a-WCF-Service/m-p/74687#M21889

 

Reply