Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / July 2008



Tip: Looking for answers? Try searching our database.

webservices and cfc

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jim1234 - 25 Jul 2008 20:39 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.