Solved

fault exception calling a web service

Posted on 2013-12-02
6
373 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:Mydeen Yussouf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Mydeen Yussouf
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
Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

 
LVL 1

Author Comment

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

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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