473,795 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webservice conversion status.

Hello,

I've, probably, a simple problem but I'm not able to figure the
solution!!!

I've realized a web service method that reads an Excel sheet and
convert the information in xml. This conversion is time consuming and
I've the idea to spilt the web service in 3 metods:

"Xls2Xml" that converts the files, generate the xml and store it in the
server, returns the id of the operation
"ConversionStat us" that ceck the progress of "Xls2Xml" sending the id
of the operation.
The client could ceck with "ConversionStat us" the progress of the
operation
Last metod "GetXml" to get the converted file sending the id of the
operation.

The client would fire "Xls2Xml", ceck with "ConversionStat us" if the
operation is completed and download the file with "GetXml".

My first idea was to write on the server a text file that contains the
status of the conversion.
The name of the file is the "GUID" of the operation.
With "ConversionStat us" i could read the text file and know the
progress of the operation.

This is a newbe solution obviusly!!!!
I imagine that there is the possibility to read directly with
ConversionStatu s a variable generated by Xls2Xml that contains the
progress of the operation.

How I can do this? It involves threading?

Thanks Paolo Mattiollo

How i could

Jul 26 '06 #1
3 1991
Hi Paolo,

The consumer of your service can just call the GetXml method asynchronously so there might not be a need for any extra work on your
part.

If the web service proxy (client reference to your service) is generated in Visual Studio .NET it will contain two extra methods:
BeginGetXml and EndGetXml. Just add a "Web Reference" to your project and the proxy will be created for you.

Call BeginGetXml to invoke the method asynchronously. When the client has finished its local work it can call EndGetXml, which will
block until the server has finished its work. If the server has already sent a response then EndGetXml will immediately return to
the caller with the result of the method. BeginGetXml returns an IAsyncResult object that must be supplied to the EndGetXml method
to end the request. You can supply an AsyncCallback delegate to the BeginGetXml method which will be invoked on a ThreadPool thread
after the request has completed. If you don't want to use a callback just pass in null. The final parameter of BeginGetXml is an
optional state object that will be supplied to the callback by the IAsyncResult.As yncState property. Assign whatever data you want
to this parameter, if any.

HTH

--
Dave Sexton

"iw3arv" <iw****@inwind. itwrote in message news:11******** **************@ 75g2000cwc.goog legroups.com...
Hello,

I've, probably, a simple problem but I'm not able to figure the
solution!!!

I've realized a web service method that reads an Excel sheet and
convert the information in xml. This conversion is time consuming and
I've the idea to spilt the web service in 3 metods:

"Xls2Xml" that converts the files, generate the xml and store it in the
server, returns the id of the operation
"ConversionStat us" that ceck the progress of "Xls2Xml" sending the id
of the operation.
The client could ceck with "ConversionStat us" the progress of the
operation
Last metod "GetXml" to get the converted file sending the id of the
operation.

The client would fire "Xls2Xml", ceck with "ConversionStat us" if the
operation is completed and download the file with "GetXml".

My first idea was to write on the server a text file that contains the
status of the conversion.
The name of the file is the "GUID" of the operation.
With "ConversionStat us" i could read the text file and know the
progress of the operation.

This is a newbe solution obviusly!!!!
I imagine that there is the possibility to read directly with
ConversionStatu s a variable generated by Xls2Xml that contains the
progress of the operation.

How I can do this? It involves threading?

Thanks Paolo Mattiollo

How i could

Jul 27 '06 #2
Hi Dave Thanks for the response.

Unfortunately the proxy used in the client side is made by PHP and
doesn't have that metods.

Paolo
Dave Sexton ha scritto:
Hi Paolo,

The consumer of your service can just call the GetXml method asynchronously so there might not be a need for any extra work on your
part.

If the web service proxy (client reference to your service) is generated in Visual Studio .NET it will contain two extra methods:
BeginGetXml and EndGetXml. Just add a "Web Reference" to your project and the proxy will be created for you.

Call BeginGetXml to invoke the method asynchronously. When the client has finished its local work it can call EndGetXml, which will
block until the server has finished its work. If the server has already sent a response then EndGetXml will immediately return to
the caller with the result of the method. BeginGetXml returns an IAsyncResult object that must be supplied to the EndGetXml method
to end the request. You can supply an AsyncCallback delegate to the BeginGetXml method which will be invoked on a ThreadPool thread
after the request has completed. If you don't want to use a callback just pass in null. The final parameter of BeginGetXml is an
optional state object that will be supplied to the callback by the IAsyncResult.As yncState property. Assign whatever data you want
to this parameter, if any.

HTH

--
Dave Sexton

"iw3arv" <iw****@inwind. itwrote in message news:11******** **************@ 75g2000cwc.goog legroups.com...
Hello,

I've, probably, a simple problem but I'm not able to figure the
solution!!!

I've realized a web service method that reads an Excel sheet and
convert the information in xml. This conversion is time consuming and
I've the idea to spilt the web service in 3 metods:

"Xls2Xml" that converts the files, generate the xml and store it in the
server, returns the id of the operation
"ConversionStat us" that ceck the progress of "Xls2Xml" sending the id
of the operation.
The client could ceck with "ConversionStat us" the progress of the
operation
Last metod "GetXml" to get the converted file sending the id of the
operation.

The client would fire "Xls2Xml", ceck with "ConversionStat us" if the
operation is completed and download the file with "GetXml".

My first idea was to write on the server a text file that contains the
status of the conversion.
The name of the file is the "GUID" of the operation.
With "ConversionStat us" i could read the text file and know the
progress of the operation.

This is a newbe solution obviusly!!!!
I imagine that there is the possibility to read directly with
ConversionStatu s a variable generated by Xls2Xml that contains the
progress of the operation.

How I can do this? It involves threading?

Thanks Paolo Mattiollo

How i could
Jul 27 '06 #3
Hi Paolo,

I'm not familiar with PHP. Does it support asynchronous method calls?

It will save you some trouble if it does, otherwise I think your stuck with your original idea except that the PHP client will have
to periodically call a web service method to check on the status of the asynchronous request. I don't think there is any way, via a
web service, to raise an event or send a notification to the client.

--
Dave Sexton

"iw3arv" <iw****@inwind. itwrote in message news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
Hi Dave Thanks for the response.

Unfortunately the proxy used in the client side is made by PHP and
doesn't have that metods.

Paolo
Dave Sexton ha scritto:
>Hi Paolo,

The consumer of your service can just call the GetXml method asynchronously so there might not be a need for any extra work on
your
part.

If the web service proxy (client reference to your service) is generated in Visual Studio .NET it will contain two extra methods:
BeginGetXml and EndGetXml. Just add a "Web Reference" to your project and the proxy will be created for you.

Call BeginGetXml to invoke the method asynchronously. When the client has finished its local work it can call EndGetXml, which
will
block until the server has finished its work. If the server has already sent a response then EndGetXml will immediately return
to
the caller with the result of the method. BeginGetXml returns an IAsyncResult object that must be supplied to the EndGetXml
method
to end the request. You can supply an AsyncCallback delegate to the BeginGetXml method which will be invoked on a ThreadPool
thread
after the request has completed. If you don't want to use a callback just pass in null. The final parameter of BeginGetXml is
an
optional state object that will be supplied to the callback by the IAsyncResult.As yncState property. Assign whatever data you
want
to this parameter, if any.

HTH

--
Dave Sexton

"iw3arv" <iw****@inwind. itwrote in message news:11******** **************@ 75g2000cwc.goog legroups.com...
Hello,

I've, probably, a simple problem but I'm not able to figure the
solution!!!

I've realized a web service method that reads an Excel sheet and
convert the information in xml. This conversion is time consuming and
I've the idea to spilt the web service in 3 metods:

"Xls2Xml" that converts the files, generate the xml and store it in the
server, returns the id of the operation
"ConversionStat us" that ceck the progress of "Xls2Xml" sending the id
of the operation.
The client could ceck with "ConversionStat us" the progress of the
operation
Last metod "GetXml" to get the converted file sending the id of the
operation.

The client would fire "Xls2Xml", ceck with "ConversionStat us" if the
operation is completed and download the file with "GetXml".

My first idea was to write on the server a text file that contains the
status of the conversion.
The name of the file is the "GUID" of the operation.
With "ConversionStat us" i could read the text file and know the
progress of the operation.

This is a newbe solution obviusly!!!!
I imagine that there is the possibility to read directly with
ConversionStatu s a variable generated by Xls2Xml that contains the
progress of the operation.

How I can do this? It involves threading?

Thanks Paolo Mattiollo

How i could

Jul 27 '06 #4

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

Similar topics

19
9332
by: Adam Short | last post by:
I am trying to write a routine that will connect a .NET server with a classic ASP server. I know the following code doesn't work! The data is being returned as a dataset, however ASP does not recognise datasets and requires a recordset. Can the datatypes be converted? At the Classic ASP end or .NET end? Can SOAP toolkit provide the conversion, can any toolkit provide a conversion? ...
1
14697
by: ehilario | last post by:
Hello everyone, I am trying to access a webservice to post some values via MSXML2.ServerXMLHttp The OS used is win2003 on both machines. When I access the local machine (A) which has the same service the call works great. When I access the other machine (B) that is on the same subnet, I get a Status of 500.
1
1728
by: Trisha Schneider | last post by:
I'm trying to convert a database from A97 to A2000. I made a copy of my database and then attempted the conversion. During the conversion, I get this message: "There were compilation errors during the conversion or enabling of this database. The database has not been saved in a compiled state..." So I tried compiling the A97 database before converting, but I get this message "Compile error: Sub or Function not defined". It is...
3
3173
by: Daniel Liberman | last post by:
Hi, everyone. That's my environment: - I have a pocket pc (iPAQ h4350) application developed with VSNET2003/C# that has a SQL Server CE Database, running. That's working fine. Obs: the pocket is NOT supposed to have a wireless conection available. - I have an access database on a standalone desktop running Windows XP, i.e., there is NO guaranteed network connection available. - I've developed a webservice with VSNET2003/C# too to do...
2
2043
by: Chris | last post by:
Hi, I seem to be having some problems connecting to webservices. I'm running a C# client connected to a Java webservice using GLUE. The difference between the two request and response pairs below is the first contains one item in the request and the second contains two. From what I can see, the only real difference between the two involves the following:
2
5192
by: Simon Shearn | last post by:
Hello - I'm trying to connect to a secure (HTTPS) webservice from a device running ..NET Compact Framework. I'm using the HttpWebRequest class. In cases where the server is unavailable, unplugged for example, I find that this class throws a webxception with status SecureChannelFailure. This is a problem, because my application needs to distinguish between low-level network problems and problems at the SSL/certificate level. Possible...
0
1378
by: Rob C | last post by:
I have several methods implemented in a webservice written in C#. The methods execute SQL against a SQL Server 2005 db and returns a Dataset (as XML). I am utilizing the webservice from a VC++ app by adding the web ref to the project which creates the header file for making the calls. I traced through the method call in my app and found the problem in the CAtlHttpClientT<TSocketClasstemplate implementation. The problem is happening in...
4
7144
by: Jonathan | last post by:
I have a SQL stored procedure for adding a new record in a transactions table. It also has two return values: CounterID and IDKey. I want to create a webservice that accepts the 10 input parameters and returns the two return values. My C# programmer here says that webservice methods can only return 1 value per method. Is that right? Though I haven't ever created a webservice, I would have thought that a method could return a whole lot...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10438
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10214
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10164
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.