Solved

C# web service connecting to Oracle 9i db

Posted on 2004-09-22
5
418 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
[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
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

628 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