<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1258 Some or all CDTs are not created after invoking Call Web Service smart service or webservicequery() function</title><link>https://community.appian.com/support/w/kb/472/kb-1258-some-or-all-cdts-are-not-created-after-invoking-call-web-service-smart-service-or-webservicequery-function</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1258 Some or all CDTs are not created after invoking Call Web Service smart service or webservicequery() function</title><link>https://community.appian.com/support/w/kb/472/kb-1258-some-or-all-cdts-are-not-created-after-invoking-call-web-service-smart-service-or-webservicequery-function</link><pubDate>Tue, 07 Mar 2017 14:56:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfe3ae79-e1e6-42f8-96c4-67bc2ab0026c</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/472/kb-1258-some-or-all-cdts-are-not-created-after-invoking-call-web-service-smart-service-or-webservicequery-function#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 3/7/2017 2:56:26 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Invoking the Call Web Service smart service or the &lt;code&gt;webservicequery()&lt;/code&gt; function does not create or recreate all the relevant CDTs in the environment.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;There are two possible causes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If this is the first time this WSDL was used on this environment, then this may be because one or more elements in the WSDL are not properly qualified.&lt;/li&gt;
&lt;li&gt;If this is not the first time, then this can be caused due to caching of the old datatypes that the WSDL previously generated.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;For WSDLs in general, when the &lt;code&gt;elementFormDefault&lt;/code&gt; parameter is set to &lt;strong&gt;qualified&lt;/strong&gt;, all elements need to be defined by their fully qualified name, which is &lt;code&gt;&amp;lt;namespace&amp;gt;:&amp;lt;name&amp;gt;&lt;/code&gt;. Alternately, the &lt;code&gt;elementFormDefault&lt;/code&gt; can be set to &lt;strong&gt;unqualified&lt;/strong&gt; to avoid this validation. This should resolve the issue if it was a first time occurrence.&lt;/p&gt;
&lt;p&gt;On the other hand, if this is caused due to the caching of old data types then follow the steps below:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure all relevant CDTs for the WSDL are deleted.&lt;/li&gt;
&lt;li&gt;Re-invoke the web service to recreate the CDTs.&lt;/li&gt;
&lt;li&gt;If the CDTs are still not recreated, then restart the application server to clear the data type cache and then re-invoke the web service.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: CDTs, third-party, web services, application design&lt;/div&gt;
</description></item></channel></rss>