Solved

fault exception calling a web service

Posted on 2013-12-02
6
365 Views
Last Modified: 2016-02-26
I had a web service that was working fine up until today, but now it throws an exception.

fault-exception.png
Given my limited knowledge of WCF exceptions, I am trying to figure if this is a generic exception thrown by the service because something went wrong in the communication over the network or anything else, or if its a custom error message that was written by someone.

Note that to call this service I send a username and password hard-coded as a soap header in the config file. (pls note its been tested and working, up until today)

I just want to prepare my case before I go to the team that created this service saying something broke on their end. Or if you think I could be doing something wrong pls point out.

thanks!

Additional details: Visual studio 2010, Win 7 client side. Beleive the webservice has been implemented on IBM platform
0
Comment
Question by:olmuser
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:ItWorked
Comment Utility
It seems that it's custom exception or exception because of transaction failure.

It doesn't look on like of WCF exception.
Secondly Stack trace might give better idea from where the exception is generated. I mean if your request is servered by the WCF service then there should be no WCF exception.
0
 
LVL 1

Author Comment

by:olmuser
Comment Utility
Thanks @ItWorked for replying, but what are you trying to say?
0
 
LVL 4

Expert Comment

by:ItWorked
Comment Utility
Does your break-point hits while debugging?

Or Does the request is reached at the server?
can you provide link for the service where one can test?
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 1

Author Comment

by:olmuser
Comment Utility
Yes it hits the right statements while debugging.

The exception is thrown while executing the statement that calls the method to get the data.

The exact line looks something like this.

objOutputDataStruct = objSerClient.OperationThatNeeds2BCalled(objInputDataStructure);

Open in new window


Sorry this service is internal to the org, I am unable to provide a link.
0
 
LVL 4

Accepted Solution

by:
ItWorked earned 500 total points
Comment Utility
The line of code that you are showing me is I guess in WCF client application.
Are you able to debug you service when the line of code you kept in your above post is executed?

If no then I think it's related to some security issue.
http://stackoverflow.com/questions/1044034/wcftestclient-the-http-request-is-unauthorized-with-client-authentication-scheme
0
 
LVL 1

Author Closing Comment

by:olmuser
Comment Utility
It was indeed a security issue!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now