Solved

C# web service connecting to Oracle 9i db

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

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 Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

772 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