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
4 replies
Subscribers
5 subscribers
Views
1690 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
Hi! I have a web service question. I'm exposing a process as a web-
johne252
over 8 years ago
Hi!
I have a web service question. I'm exposing a process as a web-service where i need to have an array of CDTs as an input like so:
<problemdefinition>
<owner></owner>
<problemtypeid></problemtypeid>
<remarks></remarks>
</problemdefinition>
Since Appian can't expose CDT process inputs as WS, we had to break down the input into 3 StringArray types. So in the WSDL, it would be like this:
<message name="startRequest">
<part name="username" type="xsd:string"/>
<part name="password" type="xsd:string"/>
<part name="owner" type="ns2:StringArray"/>
<part name="problemtypeid" type="ns2:StringArray"/>
<part name="remarks" type="ns2:StringArray"/>
</message>
Since this would be passed to a CDT array, the number of elements for these 3 arrays must always be the same. However, remarks field is optional (meaning it can have no value)
We're always getting an error when remarks field is blank like so:
<owner>
<...
OriginalPostID-166497
OriginalPostID-166497
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 8 years ago
The only place where you configure this is in the variables tab (see attached screenshot).
If you have configured this the way I explain in the image but the invocation still fails try deleting the service in Appian (System tab - Web Services) and re-creating it so that the WSDL gets updated.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 8 years ago
The only place where you configure this is in the variables tab (see attached screenshot).
If you have configured this the way I explain in the image but the invocation still fails try deleting the service in Appian (System tab - Web Services) and re-creating it so that the WSDL gets updated.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data