Solved

fault exception calling a web service

Posted on 2013-12-02
6
372 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
ID: 39691633
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
ID: 39692220
Thanks @ItWorked for replying, but what are you trying to say?
0
 
LVL 4

Expert Comment

by:ItWorked
ID: 39692259
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:olmuser
ID: 39692295
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
ID: 39692303
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
ID: 39697651
It was indeed a security issue!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 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