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
Replies
16 replies
Subscribers
6 subscribers
Views
5589 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I have published a process model as web-service. The web service call works fine
vasudhab
over 10 years ago
I have published a process model as web-service. The web service call works fine with "Call Web Service" Node in another process model, BUT when I use webservicequery function as follows
= webservicequery(
a!wsConfig(
wsdlUrl: "
myserverurl/.../timesheetws
service: "{
appiancorp.com/.../pm}timesheetws",
port: "StartProcessIFPort",
operation: "{
appiancorp.com/.../pm}start"
),
{
startRequest: {
username: "xx",
password: "xx"
}
}
)
I get XML parsing error:
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=5974,v={268440681}]}}} to Appian type WsResult (id=620)
Has anybody faced this before? Please help.
...
OriginalPostID-120862
OriginalPostID-120862
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 10 years ago
In the meantime of the idea is to launch the process within the same server you can look into this plug-in instead called Start Process Writer which is also a function that allows you to launch processes even if they're not published as a web service
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kinfuh
over 10 years ago
Eduardo, I am facing problem with webservicequery(). Waiting for your solution.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Due to the fact that the response returned by Appian is returning a nested TypedValue the function supports the creation of the process but will fail to return the response in a data type that can be stored, thus erroring out; in summary this function is not fully compatible with process models published as a web service.
The reference number for this issue is AN-55618. In the meantime I suggest you use the plug-in mentioned above or build your own custom function to invoke the model published as web service.
Eduardo Fuentes
Appian Technical Support
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Manikandan Ganapathy
over 10 years ago
I am trying to test it out in the expression rule and facing the same issue.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subramanian Valliappan
Certified Lead Developer
over 10 years ago
Hi Eduardo, I was able to launch the process using startprocesswrite function but it works only when used as a setter method in bind. I want to launch a process from a readonly dashboard layout which has no buttons, is there anyway to achieve this
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
As far as I know Writer functions are the only way and they need to be used in a bind(). What you could do is to use a button that will save a value and then in the process analyze that value to determine what sub-process to launch or what process to launch via message. So the process will be started within the process flow based on the button the user clicked which is indeed submitting the form.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<