473,378 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Sending data over internet using web service

Hi there,

I have encountered problem of losing data sending over internet using
web service. I consume web service that connected Oracle Database. I
submit 687 SOAP Messages to 1 Web Method concurrently. (With
synchronize method)
[WebMethod]
public bool SubmitDPSuccessResult(string dpNo,string tkNo,string
plNo,string siteNo,int tid )
Only 253 Message can send successfully. 434 Message are lost in the
middle of sending over internet.
My question is how to reduce risk of losing data? Any factors do I need

to take into consideration? For example, internet bandwidth, firewall
settings etc.
Any suggestion and recommendation would be truly appreciated.
Regards,
Jonathan

Apr 29 '06 #1
2 2064
Hi,

Jonathan Woods wrote:
Hi there,

I have encountered problem of losing data sending over internet using
web service. I consume web service that connected Oracle Database. I
submit 687 SOAP Messages to 1 Web Method concurrently. (With
synchronize method)
[WebMethod]
public bool SubmitDPSuccessResult(string dpNo,string tkNo,string
plNo,string siteNo,int tid )
Only 253 Message can send successfully. 434 Message are lost in the
middle of sending over internet.
My question is how to reduce risk of losing data? Any factors do I need

to take into consideration? For example, internet bandwidth, firewall
settings etc.
Any suggestion and recommendation would be truly appreciated.
Regards,
Jonathan


In my experience, Web Service calls are mostly pretty safe. We tested
our web application extensively and under severe stress conditions, both
by overloading the server's CPU, by oveloading the line, by bombing the
server with reqests. our application is certified for XP and Win2003, so
we tested in both environments. Note that additionally to the web
service communication, the web server itself communicates with a remote
server using remoting over TCP or HTTP, so you can say that the whole
stuff is very intensive for communication.

To handle the few cases where communication was lost, I implemented an
error check mechanism which re-send the same request 3 times before
giving up. This is simple (the callback method of the XmlHttpObject
receives a "result" object, which has an "error" property. The error
property is true if the server didn't answer, or if it didn't understand
the request). By inspecting the result object, you can also find more
information about the error, there is a errorDetail object (only if an
error occured).

I also have a ServerError property in all the result objects I use,
which is set to true by the server for example if an exception occurs
when treating the request. Of course I also send a ServerErrorDetail,
which gives the user more information when needed.

Using this mechanism, and resending the request a few times if error or
ServerError are true, we reached a situation where our web application
runs without crashing (and without memory leaks, but that's a whole
other story ;-) during weeks, literally, with web service calls as often
as every 30 seconds, and no failure.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Apr 29 '06 #2
Sorry, one more thing,

Jonathan Woods wrote:
My question is how to reduce risk of losing data? Any factors do I need

to take into consideration? For example, internet bandwidth, firewall
settings etc.


Firewall shouldn't be an issue, because all the calls are text only and
go through the port 80.

Bandwidth might be an issue, so my advice with web services is always:
keep it simple. Send short requests and short replies. Split your web
method if needed, and make more frequent but shorter calls. This should
reduce the failure rate.

BTW, using a HTTP analyzer, you can check what is sent and what is
received, and this will help you to determine the cause of the error.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Apr 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Owen | last post by:
I am sending email using CDO but it only seems to work when the "To" address is within the same domain as mine. When I send to an outside domain (eg. yahoo.com) the mail simply does not reach...
2
by: Frostillicus | last post by:
I'm trying to get an ASP to return a zip file to the remote browser from an Image (BLOB) field in SQL Server 2000 but Internet Explorer keeps saying: Cannot open C:\Documents and...
5
by: PerryG | last post by:
We have a .NET 1.1 client which is sending a gzipped soap request using HttpWebRequest to an Apache server. The Apache server is using a the 'mod_deflate' server to decompress the incoming...
4
by: Mark | last post by:
i have a very simple web servive Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Example1")> _ Public Class Example1 Inherits System.Web.Services.WebService
2
by: anonymous | last post by:
Hi, I'am sending an xml string to a web service(which is written in c#) using the microsoft web services behavior. When I check this string from the web service I observed that some of the...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
0
by: Jonathan Woods | last post by:
Hi there, I have encountered problem of losing data sending over internet using web service. I consume web service that connected Oracle Database. I submit 687 SOAP Messages to 1 Web Method...
2
by: steve | last post by:
Hi All I need to learn how to update a SQl server or Access database located on a web server from my windows forms application, via the internet I have a customer who wants to run several...
6
by: globalrev | last post by:
can i send and receive messages from a website using python? how would that work with costs? would the mobileowner pay both ways?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.