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
1691 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
0
johne252
over 8 years ago
...value>name 1</value>
<value>name 2</value>
</owner>
<problemtypeid>
<value>ABCD</value>
<value>WXYZ</value>
</problemtypeid>
<remarks>
<value></value>
<value>testing 123</value>
</remarks>
RESPONSE
<SOAP-ENV:Envelope xmlns:SOAP-ENV="
schemas.xmlsoap.org/.../">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Sender</faultcode>
<faultstring>Error parsing array correspoding to parameter: remarks. Check the value specified</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Is there anyway we can make these optional parameters accept null/empty values?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 8 years ago
This is a model published as a web service, correct? But where is it being called from? From Appian itself?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
johne252
over 8 years ago
No. From an external website.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
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