Posts with the tag 'axisfault'


Webservices AxisFault Handling in Coldfusion 8

Day was going fine, had my morning coffee attended project related meeting by the time I got back to check the mail I saw a chain of message going back and forth between the coldfusion developers and the backed web services developer regarding the AxisFault subject.

The issue started with the changes that backend/services team implemented in development environment, where they were throwing axis fault in error situation so that the calling application can trap that information and perform appropriate action, It was a little different then how it used to be down before. The main issue for the coldfusion developer was that they were not getting the AxisFault object back, instead in the exception object the fault data was back as a string which they parse and search for the error code and description.

After having the discussion with both the group it was clear that services team wanted to keep the functionality but for frontend/coldfusion team it was additional burden for parsing string and looking for information.

axis_4.JPG

frontend developers did not wanted to perform the find/search on the faultString or other exception properties, instead they were looking for coldfusion server to return them the exact AxisFault object.

After knowing the problem I googled for the solution to see if anybody have worked with AxisFault in coldfusion and nothing turned out, so to get frontend developers going I wrote a function that would reconstruct the AxisFault object from coldfusion exception so that they are spared from string search type work.

axis_5.JPG

Here is how the result of getAxisFaultDetail looks like
axis_2.JPG

Download code

This functionality was welcomed by the developers in my company I hope somebody out there might be looking for something similar, so here is the code that transactions faultString to AxisFault object

Add comment February 7th, 2008


 Subscribe in a RSS reader


CourseLookup.us - Providing course and conference information to enhance your knowledge base.

Tags

Calendar

February 2012
M T W T F S S
« Dec    
 12345
6789101112
13141516171819
20212223242526
272829  

Posts by Month

Posts by Category