Solved

C# web service connecting to Oracle 9i db

Posted on 2004-09-22
5
413 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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 Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

17 Experts available now in Live!

Get 1:1 Help Now