How To Map a WebService Into a SmartObject ? / Reading and Writting from/to InfoPath Xml ??

  • 23 April 2012
  • 2 replies
  • 0 views

Badge +1

Hi Everyone 


Currently we are trying to reduce de code usage on our processes and we have 2 type of situations were we could reduce the code usage A LOT !!!


1. Calling External webservices, is it possivel to use webservices without code ?, for example using smartobjects ??? if so how ??? i have found some info about this on the net (http://blog.myitechnology.com/2009/07/how-to-create-k2-smartobject.html) but i fail to find this feature on K2 Console !!... i also found code on the k2 blackmarket but it was in BETA Stage, i can't use it on production systems....


2. We have extensive use of code to read/write to and from infopath forms, reading data from the forms into k2 datafields and writing into the infopath forms from k2 datafields, simply because i don't have any "wizard"/"function" out of the box to do this.... is there anything that i can use to read/write from k2 datafields/infopath forms/etc without code ?? using smartobjects ?? anything else ??


 



Thanks in advanced


Migas


2 replies

Badge +9


Hi Migas, 


For you 1st question, you can make use of the Reference
event as part of your workflow design, or make use of some of the community projects
available on K2 blackmarket, these are community projects and the downloads
include the actual source. Being able to turn a Web service in a SmartObject by
far outweigh the prospect of writing code each time you want to make a call to
a web service. 


For number 2, K2 provide SmartObject integration for
InfoPath out the box, to check this out simply close you InfoPath document,
right click on the actual .xsn file on your file system and select the “Integrate
with SmartObjects”, the wizard will guide you through the steps required. 


Let me know if you have question.


Badge

Hello,


There is a custom service broker on the blackmarket that allows you to point to web services to which you can then create smart objects on, and then you can use them within your  process.  


Here is a link to the dynamic  web service ( asmx) http://www.k2underground.com/groups/dynamic_web_service_smartobject_service/default.aspx also there dynamic wcf service broker as well http://www.k2underground.com/groups/dynamic_wcf_service/default.aspx.


They do work ok  and can save a lot of time so do give them ago.


 


Again use smart object intergration with your infopath forms so that all the data is stored in a back end data source as it is not advisable to store lots of data in the process data fields. You could also use the smart object event to write back to your database from within the process as well.


I hope that helps


Thanks 

Reply