TCompanies Steamlines Accounts Payable with HighOrbit
Invoice Management Automation Saves Time & Money
Read more...

HighOrbit

Workflow Automation

 
Welcome, Guest
Please Login or Register.    Lost Password?

Webservice response formatting
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Webservice response formatting
#358
Webservice response formatting 3 Years, 9 Months ago Karma: 0
We have setup a simple process which calls a webservice and then assigns the response to a memo text field.

We need to assign the value returned from the webservice call to another field lets say "IndustryNumber".

The output we receive from the webservice is as follows:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xmlns:xsd="www.w3.org/2001/XMLSchema"><s...<CheckPinResponse xmlns="tempuri.org/"><CheckPinResult...t;/soap:Envelope>

How would we go about extracting the value "P12345" we tried using regular expressions but get a error when running the process.

Your help will be appreciated.
anneli
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#359
Re:Webservice response formatting 3 Years, 9 Months ago Karma: 0
Probably the best way to parse this result is to use the "xpath" function in the Calculate workflow action. XPATH is a language designed to parse these types of responses and extract specific pieces of information.

I'll be happy to work with you on the specifics when I'm back in the office. In the meantime, if you wish, see

www.developer.com/xml/article.php/1156211

for some information.
klafata
Moderator
Posts: 27
graph
User Offline Click here to see the profile of this user
Gender: Male Location: St. Louis, MO Birthday: 11/07
The administrator has disabled public write access.
---
Kevin LaFata
HighOrbit Corporation
 
Go to topPage: 1

Support Login