Solved

C# web service connecting to Oracle 9i db

Posted on 2004-09-22
5
416 Views
Last Modified: 2010-04-15
I have a .Net web service written in C# that connects to an Oracle 9i db using ORAConn and invokes a stored procedure. The problem i'm seeing is that when a request is made to the web service sometimes the db gets updated, other times it does not. In each instance the exact same XML/SOAP request is made to the web service and the same status is returned. No Oracle errors are passed back and nothing has changed in the code between a successful request and a failure. Is there a known issue with instantiating an Oracle connection? Any help would be great.
0
Comment
Question by:snowy1
5 Comments
 
LVL 1

Accepted Solution

by:
balee earned 250 total points
ID: 12130603
What does the stored proc do? Is it possible that it does a rollback sometime for some reason?
Or it gives some exception which is not handled?

Try to debug the stored proc. Try to see if it is called at least. If it is, than there should be some reason why the data doesn't get updated sometime.

Try to post some source code of your stored proc.

Cheers
0
 
LVL 10

Assisted Solution

by:123654789987
123654789987 earned 250 total points
ID: 12131060
At the point in the code where u execute the stored procedure put a Try- catch block. Catch exceptions of type OleDbException. Then convert the exception and throw it as a soapException, so that the response can show it
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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