Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
9 replies
Subscribers
8 subscribers
Views
4776 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
Is there a way to parse a SOAP webservice response in an expression rule and pop
soumyab103
over 9 years ago
Is there a way to parse a SOAP webservice response in an expression rule and populate the CDT? For example, my webservice returns response in the following format-
<soapenv:Envelope xmlns:soapenv="
schemas.xmlsoap.org/.../">
<soapenv:Body>
<ns1:getBankResponse xmlns:ns1="
thomas-bayer.com/.../">
<ns1:details>
<ns1:bezeichnung>Aachener Bank</ns1:bezeichnung>
<ns1:bic>GENODED1AAC</ns1:bic>
<ns1:ort>Aachen</ns1:ort>
<ns1:plz>52001</ns1:plz>
</ns1:details>
</ns1:getBankResponse>
</soapenv:Body>
</soapenv:Envelope>
I want to use an expression rule to parse this response and populate a CDT. I used xpathsnippet to parse the above response, but it is throwing-"An error occurred while trying to parse the XML stream".
OriginalPostID-147519
OriginalPostID-147519
Discussion posts and replies are publicly visible
Parents
0
venkats533
over 9 years ago
very good. in rule interface test as is and copy the results into notepad to understand the structure of the results returned. Now the results from the web service are already of data type which is auto generated by Appian. Write a simple translation from auto generated CDT to your own custom CDT. In other words, write an expression rule that will take the auto generated CDT as input and returns type!yourCDT(myfiled1: ri!inputCDT.firstName, myfield2: ri!inputCDT.lastName) - thats it - looks simple, unless I have missed something
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
venkats533
over 9 years ago
very good. in rule interface test as is and copy the results into notepad to understand the structure of the results returned. Now the results from the web service are already of data type which is auto generated by Appian. Write a simple translation from auto generated CDT to your own custom CDT. In other words, write an expression rule that will take the auto generated CDT as input and returns type!yourCDT(myfiled1: ri!inputCDT.firstName, myfield2: ri!inputCDT.lastName) - thats it - looks simple, unless I have missed something
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data