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
7 replies
Subscribers
7 subscribers
Views
3180 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
When attempting to call a process model exposed as a web service via the webserv
mpontius
over 10 years ago
When attempting to call a process model exposed as a web service via the webservicequery() function in Appian 7.6 and 7.7 we are receiving an error. This is the simplest case model (only a start and end node) exposed as a service. The Process Model kicks off as it should, but when the result comes back Appian can not handle it... Below is the call and response, to replicate it all that needs to be done is to create a Process Model simply with a start and an end node (no params or anything) and expose it as a web service.
Expression to invoke service (need to put in real user name and password:
= webservicequery(
a!wsConfig(
wsdlUrl: "
localhost:8080/.../CallWebService
service: "{
appiancorp.com/.../pm}CallWebService",
port: "StartProcessIFPort",
operation: "{
appiancorp.com/.../pm}start"
),
{
startRequest: {
username: "xxxxxx",
password: "xxxxxx"...
OriginalPostID-135034
OriginalPostID-135034
Discussion posts and replies are publicly visible
0
mpontius
over 10 years ago
...
}
}
)
ERROR:
There was an error testing the rule:
Expression evaluation error at function 'webservicequery': Error evaluating function 'webservicequery' : XML handling failure trying to convert value WsResult{{httpStatusCode=200, httpErrorOccurred=false, fault=null, returnValue={TypedValue[it=3,v=startResponse]=TypedValue[it=1684,v={268435475}]}}} to Appian type WsResult (id=1348)
Any thoughts or help?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marcoc200
over 10 years ago
for sure there is an extra { in the line service
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mpontius
over 10 years ago
I am not seeing an extra {. That is part of the string, it is just not correctly colored here in tempo.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
abhi.jana
Appian Employee
over 10 years ago
Currently it isn't possible to call a process model published as Web Service Using webservicequery(). This has been reported as a defect to Engineering with reference number AN-55618.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
leslies331
over 10 years ago
Any progress on this defect? I am having a similar issue. I kick off an Appian Process from a SAIL report. The process executes fine. I don't care about the results, however, this error message appears on the SAIL report... XML handling failure trying to convert value WsResult{{httpStatusCode=200, httpErrorOccurred=false, fault=null, returnValue={TypedValue[it=3,v=startResponse]=TypedValue[it=5722,v={536902091}]}}} to Appian type WsResult (id=3262) We are on Appian V7.6
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
David Williams
over 10 years ago
Would an option be to use the process writer function? There are a few posts on here with some examples.
Hope that helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
leslies331
over 10 years ago
I tried the webservicewrite function. It returns without an error, however, no process instances are kicked off.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel