Howdy,

Trying to consume a web service:

ws=CreateObject("webservice","http://XXX:9000/XXX/?wsdl";);

foo=CreateObject("java","org.datacontract.schemas._2004._07.XXX.CustomerGroupType");
bar=foo.fromString("UNKNOWN");
result=ws.GetStatus("14434",bar);

In the GetStatus call, it requires a string and an enumerated type as the 
arguments. So I did the dodge found elsewhere of pulling the class file for the 
type into CF's class path, and using the fromString call to set the value.

Note that result is also a custom type.

When I run the code above, I get:

java.lang.ClassCastException: org.apache.axis.encoding.ser.EnumSerializer 
cannot be cast to org.apache.axis.encoding.Serializer
 pointing to the last line. I assume it is still objecting to the second 
parameter.

Any ideas?

I'm a complete newbie at this, and (of course) I'm under a tight deadline.

Thanks for your time and attention.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325318
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to