What I have is a web service that from what I can tell returns a complex object. The object type is defined in the web service WSDL.
My question is how can I access, or better yet use that complex object in cold fusion (7). If I try and call any of the functions, or access any of the attributes of the object cold fusion gives me the error I expected it to, "Element undefined in variable test".
(BTW this particular web service was written in C# and is maintained/created by an outside vendor, so I have no control over it)
The data returned is not in an XML format (as I would expect) doing an XML parse on the variable causes cold fusion to throw an error that it can't be parsed.
See below for the cfdump of the variable:
object of com.metafile.mvdoc.ArrayOfShortcut
Methods hashCode (returns int)
equals (returns boolean)
getSerializer (returns interface org.apache.axis.encoding.Serializer)
getDeserializer (returns interface org.apache.axis.encoding.Deserializer)
getTypeDesc (returns org.apache.axis.description.TypeDesc)
getShortcut (returns com.metafile.mvdoc.Shortcut)
getShortcut (returns [Lcom.metafile.mvdoc.Shortcut
setShortcut (returns void)
setShortcut (returns void)
getClass (returns java.lang.Class)
wait (returns void)
wait (returns void)
wait (returns void)
notify (returns void)
notifyAll (returns void)
toString (returns java.lang.String)
f I do a cfoutput of the variable test I get the following:
com.metafile.mvdoc.ArrayOfShortcut@9d35128
My guess is that I must create this "ArrayOfShortcut" object in cold fusion. As well as all the otherones needed. Is there a way around this?
I found the following page that talks about creating java code from the WSDL, however I personally think that it is making what should be a simple task, very complex.
Anyone have any suggestions?
My question is how can I access, or better yet use that complex object in cold fusion (7). If I try and call any of the functions, or access any of the attributes of the object cold fusion gives me the error I expected it to, "Element undefined in variable test".
(BTW this particular web service was written in C# and is maintained/created by an outside vendor, so I have no control over it)
The data returned is not in an XML format (as I would expect) doing an XML parse on the variable causes cold fusion to throw an error that it can't be parsed.
See below for the cfdump of the variable:
object of com.metafile.mvdoc.ArrayOfShortcut
Methods hashCode (returns int)
equals (returns boolean)
getSerializer (returns interface org.apache.axis.encoding.Serializer)
getDeserializer (returns interface org.apache.axis.encoding.Deserializer)
getTypeDesc (returns org.apache.axis.description.TypeDesc)
getShortcut (returns com.metafile.mvdoc.Shortcut)
getShortcut (returns [Lcom.metafile.mvdoc.Shortcut
setShortcut (returns void)
setShortcut (returns void)
getClass (returns java.lang.Class)
wait (returns void)
wait (returns void)
wait (returns void)
notify (returns void)
notifyAll (returns void)
toString (returns java.lang.String)
f I do a cfoutput of the variable test I get the following:
com.metafile.mvdoc.ArrayOfShortcut@9d35128
My guess is that I must create this "ArrayOfShortcut" object in cold fusion. As well as all the otherones needed. Is there a way around this?
I found the following page that talks about creating java code from the WSDL, however I personally think that it is making what should be a simple task, very complex.
Anyone have any suggestions?