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
5578 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
joel671
over 10 years ago
Are you trying to use a CDT for your inputs? If so this isn't supported see
forum.appian.com/.../Publishing_Process_Models_as_Web_Services.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vasudhab
over 10 years ago
Thanks for your reply.. As of now it is a simple process model and it doesn't require external input. startRequest is the type created by web service, which accepts username and password as input. if not like this,how do we pass credentials to web service then?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 10 years ago
Try using a!wsHttpCredentials():
forum.appian.com/.../Connector_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 10 years ago
Sorry, link should be
forum.appian.com/.../Connector_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subramanian Valliappan
Certified Lead Developer
over 10 years ago
Hi I have tried with a!wsHttpCredentials() still facing the same issue
webservicequery(
a!wsConfig(wsdlUrl:"
myserverurl/.../WsTesting
,
service:"{
appiancorp.com/.../pm}WsTesting",
port:"StartProcessIFPort" ,
operation: "{
appiancorp.com/.../pm}start",
wsdlCredentials:a!wsHttpCredentials( "xx", "xx",""),
invocationCredentials:a!wsHttpCredentials( "xx", "xx","")), {
startRequest: {
username: "XX",
password:"XX",
testVariable:"xyz"
}
})
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 10 years ago
Try removing the startRequest parameter, as the credentials in that should already be part of the a!wsHttpCredentials function
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subramanian Valliappan
Certified Lead Developer
over 10 years ago
If I remove the startRequest parameter The expression rule fails with the same error as above and even the process instance does not triggered, previously the process instance was getting triggered.
Expression evaluation error at function 'webservicequery' [line 2]: Error evaluating function 'webservicequery' : XML handling failure trying to convert value WsResult{{httpStatusCode=200, httpErrorOccurred=false, fault=<SOAP-ENV:Fault xmlns:SOAP-ENV="
schemas.xmlsoap.org/.../faultcode><faultstring>This
operation requires a username and password</faultstring></SOAP-ENV:Fault>, returnValue={TypedValue[it=3,v=startResponse]=TypedValue[it=4298,v=<null>]}}} to Appian type WsResult (id=1368)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vasudhab
over 10 years ago
Same here!
Is this XML handling error coming up because, PM published as web service has output of Type 'startResponse' which has single field ie processId ; whereas return-type of webservicequery() is WsResult ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
atulp
over 10 years ago
Even am stuck with this issue.. This very critical for us. Any solution or work-around available?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
I was able to reproduce this locally. Let me keep digging to find out why this is happening.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>