Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

fault exception calling a web service

Posted on 2013-12-02
6
Medium Priority
?
384 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
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:Hiran Desai
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:Hiran Desai
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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:
Hiran Desai earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
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…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Screencast - Getting to Know the Pipeline

971 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