<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - consuming webservice with input type of enum</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_advanced?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Fri, 29 Aug 2014 15:29:21 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-08-29T15:29:21Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: consuming webservice with input type of enum</title>
      <link>https://forums.adobe.com/message/6684551?tstart=0#6684551</link>
      <description>&lt;!-- [DocumentBodyStart:ac479911-5d6a-482c-b291-a0c0af125064] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Try setting &lt;strong&gt;wsversion&lt;/strong&gt; = 1.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;span class="tag"&gt;&amp;lt;cfscript&amp;gt;&lt;/span&gt;&lt;span class="pln"&gt;&lt;br/&gt;&amp;nbsp; args = { refreshWSDL=true, wsversion=1 };&lt;br/&gt;&lt;span&gt;&amp;nbsp; ws = createObject("webservice", "&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mysite/test.asmx?wsdl" rel="nofollow"&gt;http://mysite/test.asmx?wsdl&lt;/a&gt;&lt;span&gt;", args);&lt;/span&gt;&lt;br/&gt;&lt;span&gt;&amp;nbsp; result = ws.getAccountLinksByUser("&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:test@somewhere.com"&gt;test@somewhere.com&lt;/a&gt;&lt;span&gt;", "All");&lt;/span&gt;&lt;br/&gt;&amp;nbsp; writeDump(result);&lt;br/&gt;&lt;/span&gt;&lt;span class="tag"&gt;&amp;lt;/cfscript&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="tag"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="tag"&gt;&lt;a class="jive-link-external-small" href="http://stackoverflow.com/questions/15385642/issue-using-net-web-service-from-coldfusion" rel="nofollow"&gt;Issue using .net web service from ColdFusion - Stack Overflow&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ac479911-5d6a-482c-b291-a0c0af125064] --&gt;&lt;img src='/beacon?t=1415919129358' /&gt;</description>
      <pubDate>Fri, 29 Aug 2014 15:28:54 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6684551?tstart=0#6684551</guid>
      <dc:date>2014-08-29T15:28:54Z</dc:date>
      <clearspace:dateToText>2 months 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: consuming webservice with input type of enum</title>
      <link>https://forums.adobe.com/message/495961?tstart=0#495961</link>
      <description>&lt;!-- [DocumentBodyStart:0808d372-1155-4f22-a0af-6b54946bab4f] --&gt;&lt;div class="jive-rendered-content"&gt;Hi,
&lt;br/&gt;
&lt;br/&gt;Thanks a lot for the response, as I had no hopes of anybody
reading my message.
&lt;br/&gt;Well, I had read this post earlier, but I believe the person
has implemented a java class that can return a enum datatype to the
consuming program. I am not sure if this works out. Also I am not
sure, how to write a java class that can wrap data and return
enumerations. 
&lt;br/&gt;Also I had yet another method of sending enum datatype to the
webservice method, which is as below.
&lt;br/&gt;&amp;lt;cfscript&amp;gt;
&lt;br/&gt; ps = CreateObject("java", "java.util.Properties");
&lt;br/&gt; ps.setProperty("0", "Orange"); 
&lt;br/&gt; ps.setProperty("1", "Mango"); 
&lt;br/&gt; keys = ps.keys(); 
&lt;br/&gt; while (keys.hasMoreElements()){ 
&lt;br/&gt; k = keys.nextElement(); 
&lt;br/&gt; v = ps.getProperty(k); 
&lt;br/&gt; } 
&lt;br/&gt; &amp;lt;/cfscript&amp;gt;
&lt;br/&gt;
&lt;br/&gt;If you loop and output, you will get the key value pair. But
I am not sure if this is an enumerations type.
&lt;br/&gt;However, can you let me know if you had a workaround for the
enum problem ?
&lt;br/&gt;
&lt;br/&gt;--Prashant&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0808d372-1155-4f22-a0af-6b54946bab4f] --&gt;</description>
      <pubDate>Wed, 27 Dec 2006 13:40:31 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/495961?tstart=0#495961</guid>
      <dc:date>2006-12-27T13:40:31Z</dc:date>
      <clearspace:dateToText>7 years 11 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: consuming webservice with input type of enum</title>
      <link>https://forums.adobe.com/message/495445?tstart=0#495445</link>
      <description>&lt;!-- [DocumentBodyStart:85dd6f65-c3a1-4823-8894-af99af6fd152] --&gt;&lt;div class="jive-rendered-content"&gt;I've had problems using Coldfusion to consume web services
using non-simple parameters (especially .NET web services). The
enumeration type seems to be one of these. Check out this thread
for a possible work-around:
&lt;br/&gt;
&lt;br/&gt;
&lt;a class="jive-link-external-small" href="http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:30232" rel="nofollow"&gt;http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:30232&lt;/a&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:85dd6f65-c3a1-4823-8894-af99af6fd152] --&gt;</description>
      <pubDate>Tue, 26 Dec 2006 18:21:15 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/495445?tstart=0#495445</guid>
      <dc:date>2006-12-26T18:21:15Z</dc:date>
      <clearspace:dateToText>7 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: consuming webservice with input type of enum</title>
      <link>https://forums.adobe.com/message/495307?tstart=0#495307</link>
      <description>&lt;!-- [DocumentBodyStart:17a07197-d782-494b-b1d1-9d3748a53d01] --&gt;&lt;div class="jive-rendered-content"&gt;Hi,
&lt;br/&gt;
&lt;br/&gt;Have you had any luck consuming enumerations in the web
service? I too have the same problem.
&lt;br/&gt;
&lt;br/&gt;-Prashant&lt;/div&gt;&lt;!-- [DocumentBodyEnd:17a07197-d782-494b-b1d1-9d3748a53d01] --&gt;</description>
      <pubDate>Tue, 26 Dec 2006 14:47:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/495307?tstart=0#495307</guid>
      <dc:date>2006-12-26T14:47:26Z</dc:date>
      <clearspace:dateToText>7 years 11 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>consuming webservice with input type of enum</title>
      <link>https://forums.adobe.com/message/88154?tstart=0#88154</link>
      <description>&lt;!-- [DocumentBodyStart:3debd338-81fe-4bbb-8a3e-30ae131daa90] --&gt;&lt;div class="jive-rendered-content"&gt;When trying to consume a webservice (temporarily located on a
server within my intranet) I get this Cold Fusion Error:
&lt;br/&gt;
&lt;br/&gt;Web service operation "getIndustries" with parameters
{CareerStart} could not be found.
&lt;br/&gt;
&lt;br/&gt;This is what is in the wdsl file for the function I am trying
to access:
&lt;br/&gt;
&lt;br/&gt;- &amp;lt;s:element name="getIndustries"&amp;gt;
&lt;br/&gt;- &amp;lt;s:complexType&amp;gt;
&lt;br/&gt;- &amp;lt;s:sequence&amp;gt;
&lt;br/&gt; &amp;lt;s:element minOccurs="1" maxOccurs="1"
name="getIndustriesRequest" type="tns:CareerTrack" /&amp;gt; 
&lt;br/&gt; &amp;lt;/s:sequence&amp;gt;
&lt;br/&gt; &amp;lt;/s:complexType&amp;gt;
&lt;br/&gt; &amp;lt;/s:element&amp;gt;
&lt;br/&gt;- &amp;lt;s:simpleType name="CareerTrack"&amp;gt;
&lt;br/&gt;- &amp;lt;s:restriction base="s:string"&amp;gt;
&lt;br/&gt; &amp;lt;s:enumeration value="CareerStart" /&amp;gt; 
&lt;br/&gt; &amp;lt;s:enumeration value="ContinuingEd" /&amp;gt; 
&lt;br/&gt; &amp;lt;/s:restriction&amp;gt;
&lt;br/&gt; &amp;lt;/s:simpleType&amp;gt;
&lt;br/&gt;- &amp;lt;s:element name="getIndustriesResponse"&amp;gt;
&lt;br/&gt;- &amp;lt;s:complexType&amp;gt;
&lt;br/&gt;- &amp;lt;s:sequence&amp;gt;
&lt;br/&gt; &amp;lt;s:element minOccurs="0" maxOccurs="1"
name="getIndustriesResult" type="tns:ArrayOfKeyValuePair" /&amp;gt; 
&lt;br/&gt; &amp;lt;/s:sequence&amp;gt;
&lt;br/&gt; &amp;lt;/s:complexType&amp;gt;
&lt;br/&gt; &amp;lt;/s:element&amp;gt;
&lt;br/&gt;- &amp;lt;s:complexType name="ArrayOfKeyValuePair"&amp;gt;
&lt;br/&gt;- &amp;lt;s:sequence&amp;gt;
&lt;br/&gt; &amp;lt;s:element minOccurs="0" maxOccurs="unbounded"
name="KeyValuePair" nillable="true" type="s1:KeyValuePair" /&amp;gt; 
&lt;br/&gt; &amp;lt;/s:sequence&amp;gt;
&lt;br/&gt; &amp;lt;/s:complexType&amp;gt;
&lt;br/&gt;- &amp;lt;s:complexType name="KeyValuePair"&amp;gt;
&lt;br/&gt;- &amp;lt;s:sequence&amp;gt;
&lt;br/&gt; &amp;lt;s:element minOccurs="0" maxOccurs="1" name="Key"
type="s:string" /&amp;gt; 
&lt;br/&gt; &amp;lt;s:element minOccurs="0" maxOccurs="1" name="Value"
type="s:string" /&amp;gt; 
&lt;br/&gt; &amp;lt;/s:sequence&amp;gt;
&lt;br/&gt; &amp;lt;/s:complexType&amp;gt;
&lt;br/&gt;
&lt;br/&gt;I am attempting to use this function with cold fusion like
so:
&lt;br/&gt;
&lt;br/&gt;&amp;lt;CFPARAM name="CareerTrack" default="CareerStart"
type="string"&amp;gt;
&lt;br/&gt;&amp;lt;CFOBJECT webservice="#webservice#"
&lt;br/&gt; name="regExchange"&amp;gt;
&lt;br/&gt;
&lt;br/&gt;&amp;lt;cfset aArrayOfKeyValuePair =
regExchange.getIndustries(#CareerTrack#)&amp;gt;
&lt;br/&gt; 
&lt;br/&gt;Is there something about passing in values to a type of enum
that is special?
&lt;br/&gt;
&lt;br/&gt;I think I should have visibility to the webservice based on
the evidence that when I set the wdsl url in Dreamweaver, it shows
me the service function definitions and I can drag and drop them
into my code.&lt;/div&gt;&lt;!-- [DocumentBodyEnd:3debd338-81fe-4bbb-8a3e-30ae131daa90] --&gt;</description>
      <pubDate>Mon, 11 Sep 2006 21:38:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/88154?tstart=0#88154</guid>
      <dc:date>2006-09-11T21:38:26Z</dc:date>
      <clearspace:dateToText>8 years 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

