Hi there!
I would like to know:
a) How to read xml datasets from cache?
b) How to save it as xml and map the fields and update the my sql /
SYbase database?
Please help me out.
With Thanks!
Sam 8 1382
> a) How to read xml datasets from cache?
As everything else :)
Ok... I assume that you are referring to System.Web.Cach ing cache.
You can directly do:
Cache.Add(...) b) How to save it as xml and map the fields and update the my sql / SYbase database?
DataSet to XML:
Use the overloaded method DataSet.WriteXm l(...)
MySQL and Sybase:
Checkout for the native drivers. Or you may want to use ODBC drivers.
For MySQL - http://www.mysql.com/products/connector/net/
I don't work with Sybase... but at least ODBC driver should be
available.
--
Happy Hacking,
Gaurav Vaish http://www.mastergaurav.org http://webservices.edujini.in
-------------------
>> b) How to save it as xml and map the fields and update the my sql / SYbase database?
DataSet to XML: Use the overloaded method DataSet.WriteXm l(...)
Oops! I think I misunderstood you.
You may want to look at NHibernate -- www.nhibernate.org -- and O/R Mapping
tool is what you are looking for.
--
Happy Hacking,
Gaurav Vaish http://www.mastergaurav.org http://webservices.edujini.in
-------------------
Hi Gaurav,
I was looking at your website where you have published couple of articles pertaining to webservices.
As far as point (a) is concern, you're true on your stand. I would like to know what Cache.Add(..) will do? Will it read or add something to cache? Please clarify and what could be the parameter of add function?
Point (b) is about to save the datasets into xml (in case, not able to read from webserver cache), maps the fields so that one can update the database at our end.
Thanks a ton for lending me a helping hand...
Sam
Thanks Gaurav for showing some light on this nasty issue.
What could be the parameter of Cache.add() ? Secondly, to store the xml
file do we need to provide the physical path or website address?
With Thanks!
Sam
> What could be the parameter of Cache.add() ? Secondly, to store the xml file do we need to provide the physical path or website address?
Look into the documentation.. . you'll get all required info there --
specfically the method signatures.
These methods are overloaded. Choose the one that suits you the most.
--
Happy Hacking,
Gaurav Vaish http://www.mastergaurav.org http://webservices.edujini.in
-------------------
Gaurav,
Sorry to get back you little late as I'm suffering from fever.
All the way, I am unable to read the dataset that is stored in cache.
Could you please help me out? I tried fragment caching, page caching,
serialization & deserialization etc etc.
Please help me out by explaining at length.
Thanks for your time and support.
Gaurav Vaish (EduJini.IN) wrote: What could be the parameter of Cache.add() ? Secondly, to store the xml file do we need to provide the physical path or website address?
Look into the documentation.. . you'll get all required info there -- specfically the method signatures.
These methods are overloaded. Choose the one that suits you the most.
-- Happy Hacking, Gaurav Vaish http://www.mastergaurav.org http://webservices.edujini.in -------------------
Hi Sam,
Sorry to hear about your fever. Hope you're feeling ok now. All the way, I am unable to read the dataset that is stored in cache. Could you please help me out? I tried fragment caching, page caching, serialization & deserialization etc etc.
What all is that you've tried?
What's the error that you're getting?
Please help me out by explaining at length.
Let me figure out some time to write at length on this. Not sure if I have
any time this week... but will try to do it ASAP :)
Get well soon.
--
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.org http://www.edujini.in | http://webservices.edujini.in
-------------------
No, I am not getting any error. That is the main problem. Please check
for more details: https://asylumwakeskatesnow.com/ePos...vice/PWWS.asmx
Thanks for your time and support.
Sam
Gaurav Vaish ( www.EduJini.IN) wrote: Hi Sam,
Sorry to hear about your fever. Hope you're feeling ok now.
All the way, I am unable to read the dataset that is stored in cache. Could you please help me out? I tried fragment caching, page caching, serialization & deserialization etc etc.
What all is that you've tried? What's the error that you're getting?
Please help me out by explaining at length.
Let me figure out some time to write at length on this. Not sure if I have any time this week... but will try to do it ASAP :)
Get well soon.
-- Happy Hacking, Gaurav Vaish | http://www.mastergaurav.org http://www.edujini.in | http://webservices.edujini.in ------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alex |
last post by:
Hello,
I hope someone can help me. I have created a windows based application in
C# using WebServices running. The Server is an MS Windows 2003 server. The
services simply retrieves data from a MS Sql data server and passes it back
to the Windows application in the form of a DataSet. My problem is this.
After about 3 calls to the server for different data it seems to just hang.
I have gone through a few different proposed solutions I...
|
by: SMG |
last post by:
Hi All,
I have a Web Service, which returns a DataSet and I am able to consume.
This is ok.
Now I want to return two things,
1. DataSet
2. String
Through one request only, I thot of using object as a return type to the
webservices but then how do I re cast it to string and dataset. Will that
work.
|
by: androoo |
last post by:
Hi all
I have read both scott mitchells (4 guys) articles on why he doesnt
like to use datasets from webservices and I have some questions if
anyone has some experience in this.
How secure is my app if i pass a dataset from a webservice to my
application ?
What is the future for webservices and passing back data in .net2? Ive
|
by: Prozon |
last post by:
Hi!
I have problem naming my webservices. One of the problem is that I got
naming conventions between my webservices and dataset that the
services uses.
Can someone please give me a good example of how to name a
webservice-class which handles articles for example?
And what is a good name for the "corresponding" dataset/s used? By now
the name of the dataset is just Article.
What is a good name for the webreference?
|
by: Arne |
last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart
from a pocket PC to a webservice.
What is the right datatype?
II have tried dataset as a datatype, but I can't get it to compile.
<WebMethod()> _
Public Function VerifySku(ByVal skus As XmlDataDocument) As DataSet
Test program :
Dim cartSet As DataSet
cartSet = ws.VerifySku(cartSet)
| |
by: Pasho |
last post by:
hi
I have been facing problem using C# webservices (secured using SSL).
In my webservice(secured with SSL)
It works fine if I try to access data from database through dataset.
If I try to confirm the dataset with schema using following line
ds.ReadXMLSchema(schema) and then access data through dataset
schema is a url to my xsd file.
schema = https://localcomputer/sample/trace.xsd
|
by: nixon |
last post by:
Hi there!
Im trying to build a 3 tier application that uses a smartclient in the
"view" layer.
The communication between the smartclient and the server should be
webservices because of potentiel firewall issues.
I´ve looke at to smartclient demos to figure out how the experts do the
stuff, design and overall architecture, Microsofts IssueVision and
TaskVision.
These applications uses DataSet´s to communicate between the layers and
|
by: jkupch |
last post by:
We have published a dataset through WebServices.
Our .Net developers have no problem accessing the data. However, some of
our clients use MSACCESS or EXCELL and would like to access the dataset. Is
there a way to easily connect to the WebServices from these applications?
|
by: smarty |
last post by:
Hi,
I have written a WSE in vis studio 2005 as and produced a dll that I can use
in other projects by including the following in the web.config.
<webservices>
<soapextensiontypes>
<add type="traceextension, simpleModule" priority="1" group="high"/>
</soapExtensionTypes>
</webservices>
|
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...
|
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...
| |
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| |