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 6873037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:00:24+00:00 2026-05-27T04:00:24+00:00

How do you then handle the exception on the ws consumer-side thrown by the

  • 0

How do you then handle the exception on the ws consumer-side thrown by the ws producer-side?

I’m now using SOAP because I can use <cfinvoke> easily and not worry about JSON messing up my data types. However its disadvantages are:

  • WSDL must have a return type (i.e. can’t return custom exception struct easily)
  • WSDL needs reloading during development
  • exception is not transmitted over nicely nor very helpful, and
  • performance is quite slow

Other then SOAP, what would you use to do CF-to-CF method call? I can think of these alternatives:

  • <cfhttp> to ?method=remoteMethod

Cons: need to use a custom json serializer because CF’s would mess up datafield like phone number (serializes to a float) or dates (serializes to human-readable date)

  • <cfhttp> to .cfm

Cons: need to make sure onRequest and other layouts are not rendered (cannot use onCFCRequest())

Any comment or suggestion?

  • 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-27T04:00:25+00:00Added an answer on May 27, 2026 at 4:00 am

    Lately I’ve been preferring cfhttp to a URL that provides a JSON result over CFC/WSDL based webservices. I’ve found this is easier for a couple of reasons:

    1) This works well when consuming from either CF or jQuery (or really any other consumer, really).

    2) You have more control over the output, which is what it sounds like you’re experiencing.

    For error trapping on the client side, I think server-side error trapping is pretty straightforward. Just watch for a 404, and handle the response body as appropriate (email it, log it, or report it to the user). Regarding the JSON serializing problems, that hasn’t been an issue I’ve come across (yet).

    When I have used wsdl-based webservices, we trap for errors with a try / catch and then just email the error dump back to the developers. This is not great, though, since the real error is usually buried in the stack trace and obscured by all of the CF abstraction layers involved. Basically all this tells me in these cases is that I need to go hunting for the error log on the server, so I can find the real source of the problem.

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

Sidebar

Related Questions

Let's say were using custom extensions of the Exception class to handle custom exceptions,
I found this page that suggests looping until exceptions is thrown and then handle
A) Book I’m learning from says that if we handle Login.Authenticate event, then we
Every now and then I get an error when I set up states in
Every now and then, I bump into syntax that I've seen before, but never
Evey now and then I see both x86 and x64 versions of a .NET
Every now and then (ahem...) my code crashes on some system; quite often, my
Every now and then I receive a Word Document that I have to display
Is it possible to catch an exception thrown from one thread in another thread?
I need to handle the ORA-01400 error (cannot insert NULL into (SCHEMA.TABLE_NAME.COLUMN_NAME) ) using

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.