473,320 Members | 2,147 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,320 software developers and data experts.

Hiding Schema on a Webservice that returns a dataset

Hi,
I am new on webservices and xml and I am trying to return a dataset from my
Sqlserver database. I have it running but I get the following result:

<?xml version="1.0" encoding="utf-8" ?>
- <DataSet xmlns="http://lonestarmilk.net/Test">
- <xs:schema id="dsEquity"
targetNamespace="http://www.tempuri.org/dsEquity.xsd"
xmlns:mstns="http://www.tempuri.org/dsEquity.xsd"
xmlns="http://www.tempuri.org/dsEquity.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
attributeFormDefault="qualified" elementFormDefault="qualified">
- <xs:element name="dsEquity" msdata:IsDataSet="true">
- <xs:complexType>
- <xs:choice maxOccurs="unbounded">
- <xs:element name="EquityHist">
- <xs:complexType>
- <xs:sequence>
<xs:element name="ProdNumber" type="xs:int" />
<xs:element name="Date" type="xs:dateTime" />
<xs:element name="Lbs" type="xs:double" />
<xs:element name="PerUnits" type="xs:double" minOccurs="0" />
<xs:element name="CashPat" type="xs:double" minOccurs="0" />
<xs:element name="NonCashPat" type="xs:double" minOccurs="0" />
<xs:element name="Comments" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
- <xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:EquityHist" />
<xs:field xpath="mstns:ProdNumber" />
<xs:field xpath="mstns:Date" />
<xs:field xpath="mstns:Lbs" />
</xs:unique>
</xs:element>
</xs:schema>
- <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
- <dsEquity xmlns="http://www.tempuri.org/dsEquity.xsd">
- <EquityHist diffgr:id="EquityHist1" msdata:rowOrder="0">
<ProdNumber>3400</ProdNumber>
<Date>2002-12-31T00:00:00.0000000-06:00</Date>
<Lbs>7327172</Lbs>
<PerUnits>5955.47</PerUnits>
<CashPat>7429.75</CashPat>
<NonCashPat>29719.01</NonCashPat>
<Comments>2002 Summary</Comments>
</EquityHist>
I don’t want to show the schema I just want to return Data from the line
<EquityHist diffgr:id="EquityHist1" msdata:rowOrder="0">
and all the rows of my table.
I tried to use ReadXml and return a string from my webservice but I think
that I am loosing the essence of Xml. Can somebody tell me how to return just
data and not the schema on my webservice?
Thanks a lot
--
Oswaldo Cortes
Nov 23 '05 #1
0 902

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

Similar topics

1
by: Programatix | last post by:
Hi, I upgraded my application from dotNetFramework 1.0 to dotNetFramework 1.1 When calling a WebService method which returns a dataset, I get the following error, "There is an error in XML...
6
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
1
by: Jeffrey A. Voigt | last post by:
I'm having trouble loading some xml data into a dataset via the ReadXML call. I'm loading into the dataset an xml schema prior to the ReadXML call. I see that there IS in fact, 3 records that...
1
by: Scott M. | last post by:
I have created a strongly typed dataset and populated it with data in my data layer. I have confirmed that the DataSet does, in fact contain my data and that there is a schema governing this data...
1
by: Patrik | last post by:
Hi I want to return a dataset from a webservice and exclude the schema. How can I do this? /Patrik
22
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...
12
by: Whoever | last post by:
Hi, I'm trying to return an XmlDocument or XmlNode converted from a typed dataset. public XmlNode whatever() { MyTypedDataSet ds = new MyTypedDataSet(); return new XmlDataDocument(ds); }
0
by: Bob Davies | last post by:
Hi I have a webservice that retrieves data from a database, this is then returned to the calling client application built in windows forms within a dataset, however upon attempting to create...
0
by: Oswaldo | last post by:
Hi, I am new on webservices and xml and I am trying to return a dataset from my Sqlserver database. I have it running but I get the following result: <?xml version="1.0" encoding="utf-8" ?> -...
0
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++...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.