Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6825825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:04:37+00:00 2026-05-26T22:04:37+00:00

I’m building a WebService in ColdFusion 8 using CFCs with remote methods. I need

  • 0

I’m building a WebService in ColdFusion 8 using CFCs with remote methods. I need to specify complex data types in the WSDL, so I’m creating CFCs for each of these types. For instance, let’s say I have a “Person” type. It includes an “age” property. This property needs to always be an integer. However, ColdFusion does not have “integer” as a valid type – only Numeric, which translates to “xsd:double” in the WSDL. How can specify that a property – or an argument, for that matter – has a type of “integer”?

FYI, Henry’s answer is very helpful, but I’m trying to return an Object from the function – not just an integer. I need one of the properties to be returned as an integer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:04:38+00:00Added an answer on May 26, 2026 at 10:04 pm
    1. Write your own WSDL. Save your CFC and capture the RPC generated WSDL by pointing your browser at http://mysite/mypath/myCFC.cfc?WSDL
      Grab the source, or clean up all the – added by your browser. Make
      sure there is no white space before the <?xml version tag.
      Find the xsd:double in the Response message and change it to xsd:int.

    2. Specify the WSDL in your component. Add the wsdlfile="mywsdl.wsdl" attribute with the filename and add the attribute style="document"
      which is required for user-defined WSDLs.

    3. Bind the webservice to the WSDL ColdFusion does this automatically — but it caches them. When a WSDL changes, you need to restart the service or go to “Data & Services -> Web Services” in CF
      Administration and refresh the service.

    4. Change your cffunction to return "Any" instead of "Numeric"

    5. In your cfreturn, instantiate a Java Integer <cfreturn createObject("java","java.lang.Integer").init(JavaCast("int",myvalue))
      />

    http://www.threesources.com/archives/009007.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I have thousands of HTML files to process using Groovy/Java and I need to
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I need a function that will clean a strings' special characters. I do NOT
I want to construct a data frame in an Rcpp function, but when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.