Skip to main content
Inspiring
July 25, 2008
Question

webservices and cfc

  • July 25, 2008
  • 4 replies
  • 401 views
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
This topic has been closed for replies.

4 replies

BKBK
Community Expert
Community Expert
July 30, 2008
jim1234Author
Inspiring
July 29, 2008
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
Inspiring
July 28, 2008
quote:

Originally posted by: jim1234
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

What happened when you tried?
BKBK
Community Expert
Community Expert
July 28, 2008
The webservice expects the moneyType, so how do I represent the moneyType in structures so the web service I consume will receive it properly?

cfproperty (see the example at the bottom)