Skip to main content

Hi,

We have a smartobject that calls a web service, and it returns an xml string.

We want to extract some values from the xml and transfer it to a variable.

We use the Data Event to "Transfer Data" , source is the xml node , and the destination is our variable.

We noticed that it does transfer only an attribute and not the node data.

For example if we have an xml node <Node1>Value</Node1> , it won't transfer "Value" to the variable. However, if we have a node <Node1 Parameter1='Value'></Node1> , in this case we are able to get "Value" transferred to the variable.

Question is, how do we get the value of the specific node that doesn't have an attribute?

Thanks.

Hi, 

Try this custom inline function "Extract Web Service Response"

 

http://community.k2.com/t5/K2-blackpearl/Extract-Web-Service-Response/ba-p/79698

 


Reply