Adding dynamic web reference in K2 process

  • 5 February 2013
  • 3 replies
  • 2 views

Badge +9

Hi All, Can anybody tell me how t add a web reference dynamically to a k2 process. Basically i want to add a WSDL to a k2 process, i can add to web reference, but when i want to deploy in different environments the WSDL is different. So in this case i want to create a datafield/ miscellaneous field, but i am unable to pass the datafield/misc field while adding webreference. Please help me with a workaround.


 


3 replies

Badge +4

I would normally use the DynamicWebService Service Object to register the WSDL on the K2 server. This way you can wrap the calls in a smart object.


Each environment can then have the appropriate wsdl registered correctly.


Hope that helps.


Gareth

Badge +9

Hi Gareth, thanks for the reply, can u plz explain me in detail. Also here i just worried how to make the add webreference dynamic. Inside the workflow i can use code reference event or Server code event to execute web service methods.


Any suggestions from others

Badge +8

You can also have a look at the Code Reference event. It allows you to add a reference to a web service, with one of the input parameters available being the Url to be used.

Reply