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

x
?
Solved

C# web service connecting to Oracle 9i db

Posted on 2004-09-22
5
Medium Priority
?
426 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 1000 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 1000 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

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