I have the following wsdl:
<xs:simpleType name="moneyType">
<xs:restriction base="decimal">
<xs:fractionDigits value="2"/>
<xs:totalDigits value="15"/>
</xs:restriction>
</xs:simpleType>
which in turned is used by another type:
<xs:element name="myElement">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="requestedAmount" type="st:moneyType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
My question is how do I represent in structures or cfc's? The webservice
expects the moneyType, so how do I represent the moneyType in structures so the
web service I consume will receive it properly? Can I just send it as a
numeric type, or will the web service choke on it?
Thanks,
Jim
BKBK - 28 Jul 2008 21:28 GMT
[i]The webservice expects the moneyType, so how do I represent the moneyType in
structures so the web service I consume will receive it properly? [/i]
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000315.htm (see the
example at the bottom)
Dan Bracuk - 28 Jul 2008 22:48 GMT
[q][i]Originally posted by: [b][b]jim1234[/b][/b][/i]
My question is how do I represent in structures or cfc's? The webservice
expects the moneyType, so how do I represent the moneyType in structures so the
web service I consume will receive it properly? Can I just send it as a
numeric type, or will the web service choke on it?
Thanks,
Jim[/q]
What happened when you tried?
jim1234 - 29 Jul 2008 14:19 GMT
I haven't tried it yet. I was given the wsdl and need to create the
webservices based on that. Later I'll be able to test it against their web
service.
I'd rather use structures if possible, it seems to be easier. But with using
the cfc's then would I create a cfc called "moneyType", and if I do, then what
do I call the property in the cfc that references the actual value?
Thanks,
Jim
BKBK - 30 Jul 2008 05:55 GMT
Another example of http://www.sec-bloomington.com/cfdocs/htmldocs/help.html?content=webservices_20.html