Web Service Node - informantion

 1 Replies
 1 Subscribed to this topic
 164 Subscribed to this forum
Sort:
Author
Messages
TomD
Basic Member
Posts: 7
Basic Member
    Hello,

    I am looking for information on how to reference the individual xml data elements retuned from a web service call using the PFI Web Service node. i.e. how can I assign the xml data element to my internal variable in an Assign Node. My Web Serivce Node ran fine. It returns all the data. I just need to get to them. Do I use XML Parser Node to do this? Any examples would be helpful.
    thanks.
    TomD
    Basic Member
    Posts: 7
    Basic Member
      I talked to a coworker and he showed me how to reference the data elements from the Output of a returned WEb service.

      0) go into the Web Service Node, Properties.
      1) go to the Output section of the Web service in WS Node in PFI.
      2) double click on the data element you want to reference.
      3) Look in the node detail section. It will give you the string you need. e.g. I want to get the birthday field.

      WebService150_output.*::Body.*::getPieByLogonIDResponse.*::getPieByLogonIDReturn.*::arrayOfEmployee.*::Employee[0].*::birthdate

      4) Define a variable in the start node called bday
      5) add an Assign Node after the Web Service Node
      6) assign

      bday = WebService150_output.*::Body.*::getPieByLogonIDResponse.*::getPieByLogonIDReturn.*::arrayOfEmployee.*::Employee[0].*::birthdate