473,698 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataSet Vs Xml string

Hi All,

I am very new to web services, so am struggling to understand exactly what I
am doing with regards to its returns etc. I have been given the task of
designing and developing a web service which will allow external companies,
access to our information. The problem for me is that these companies will
be using different platforms from which to consume our web service. My
question is what I should use as the return type for more complex data
structures. Should I use the intrinsic dataset object and return that,
should I create a typed dataset as then a definitive XML Schema will be
produced, or should I just build and XML string from the information I return
from the database and send that back across.

I know that all the return types are serialized into XML, but does this mean
that they can be accessed when they get to other end?? I would really
appreciate some input here, if anyone can help me understand this that would
be great!

Thanks,

Rob

Nov 23 '05
17 3436
Unfortunately, I have not. But i can point you to some great references on
XSD schemas if you want them.

Scott

"Modica82" wrote:
Thanks again Scott,

I do have a quick question, but you may or may not have the answer, have you
ever created any sort of schema(xsd) to be passed back with your XML, if so
how did you do it?

Thanks in advance,

Rob

"Modica82" wrote:
Hi Scott,

I was planning on using the XMLTextWriter class to create XML on the fly and
return it as a string. I have read alot about XML but never really used it
commercially, so i want to get it write (also i have only been at this job a
month and trying to impress :)) Some code samles would be great if you could
send them.

Thanks in Advance,

Rob

"SQLScott" wrote:
Rob,

In my opinion you should build and return an XML string. In fact, the best
way to do it is to build your xml string and return it as a byte array for
quick performance. Let me know if you'd like a code sample. I have build
several Web Services this way. In fact, I had questions such as yours and I
went straight to Francesco Balena (if you know who he is) and this method was
highly recommended.

This way any company or customer can read it and you are not tied to any
platform or language, that is the beauty of XML.

HOpe this helps.

Scott

"Modica82" wrote:

> Hi All,
>
> I am very new to web services, so am struggling to understand exactly what I
> am doing with regards to its returns etc. I have been given the task of
> designing and developing a web service which will allow external companies,
> access to our information. The problem for me is that these companies will
> be using different platforms from which to consume our web service. My
> question is what I should use as the return type for more complex data
> structures. Should I use the intrinsic dataset object and return that,
> should I create a typed dataset as then a definitive XML Schema will be
> produced, or should I just build and XML string from the information I return
> from the database and send that back across.
>
> I know that all the return types are serialized into XML, but does this mean
> that they can be accessed when they get to other end?? I would really
> appreciate some input here, if anyone can help me understand this that would
> be great!
>
> Thanks,
>
> Rob
>

Nov 23 '05 #11
That would great. I think i was being a bit dim before, you can reference
the schema from anywhere, so as long as it is accessible on the web, you can
point you XML to use it, not sure how well that works for web services, but i
am sure i will find out soon enough.

Cheers!

Rob

"SQLScott" wrote:
Unfortunately, I have not. But i can point you to some great references on
XSD schemas if you want them.

Scott

"Modica82" wrote:
Thanks again Scott,

I do have a quick question, but you may or may not have the answer, have you
ever created any sort of schema(xsd) to be passed back with your XML, if so
how did you do it?

Thanks in advance,

Rob

"Modica82" wrote:
Hi Scott,

I was planning on using the XMLTextWriter class to create XML on the fly and
return it as a string. I have read alot about XML but never really used it
commercially, so i want to get it write (also i have only been at this job a
month and trying to impress :)) Some code samles would be great if you could
send them.

Thanks in Advance,

Rob

"SQLScott" wrote:

> Rob,
>
> In my opinion you should build and return an XML string. In fact, the best
> way to do it is to build your xml string and return it as a byte array for
> quick performance. Let me know if you'd like a code sample. I have build
> several Web Services this way. In fact, I had questions such as yours and I
> went straight to Francesco Balena (if you know who he is) and this method was
> highly recommended.
>
> This way any company or customer can read it and you are not tied to any
> platform or language, that is the beauty of XML.
>
> HOpe this helps.
>
> Scott
>
> "Modica82" wrote:
>
> > Hi All,
> >
> > I am very new to web services, so am struggling to understand exactly what I
> > am doing with regards to its returns etc. I have been given the task of
> > designing and developing a web service which will allow external companies,
> > access to our information. The problem for me is that these companies will
> > be using different platforms from which to consume our web service. My
> > question is what I should use as the return type for more complex data
> > structures. Should I use the intrinsic dataset object and return that,
> > should I create a typed dataset as then a definitive XML Schema will be
> > produced, or should I just build and XML string from the information I return
> > from the database and send that back across.
> >
> > I know that all the return types are serialized into XML, but does this mean
> > that they can be accessed when they get to other end?? I would really
> > appreciate some input here, if anyone can help me understand this that would
> > be great!
> >
> > Thanks,
> >
> > Rob
> >

Nov 23 '05 #12
Dev
if you are getting data from DataSet then dataset itself represent all data
in xml... n prob . u dont need to write your own parser

"Modica82" wrote:
That would great. I think i was being a bit dim before, you can reference
the schema from anywhere, so as long as it is accessible on the web, you can
point you XML to use it, not sure how well that works for web services, but i
am sure i will find out soon enough.

Cheers!

Rob

"SQLScott" wrote:
Unfortunately, I have not. But i can point you to some great references on
XSD schemas if you want them.

Scott

"Modica82" wrote:
Thanks again Scott,

I do have a quick question, but you may or may not have the answer, have you
ever created any sort of schema(xsd) to be passed back with your XML, if so
how did you do it?

Thanks in advance,

Rob

"Modica82" wrote:

> Hi Scott,
>
> I was planning on using the XMLTextWriter class to create XML on the fly and
> return it as a string. I have read alot about XML but never really used it
> commercially, so i want to get it write (also i have only been at this job a
> month and trying to impress :)) Some code samles would be great if you could
> send them.
>
> Thanks in Advance,
>
> Rob
>
> "SQLScott" wrote:
>
> > Rob,
> >
> > In my opinion you should build and return an XML string. In fact, the best
> > way to do it is to build your xml string and return it as a byte array for
> > quick performance. Let me know if you'd like a code sample. I have build
> > several Web Services this way. In fact, I had questions such as yours and I
> > went straight to Francesco Balena (if you know who he is) and this method was
> > highly recommended.
> >
> > This way any company or customer can read it and you are not tied to any
> > platform or language, that is the beauty of XML.
> >
> > HOpe this helps.
> >
> > Scott
> >
> > "Modica82" wrote:
> >
> > > Hi All,
> > >
> > > I am very new to web services, so am struggling to understand exactly what I
> > > am doing with regards to its returns etc. I have been given the task of
> > > designing and developing a web service which will allow external companies,
> > > access to our information. The problem for me is that these companies will
> > > be using different platforms from which to consume our web service. My
> > > question is what I should use as the return type for more complex data
> > > structures. Should I use the intrinsic dataset object and return that,
> > > should I create a typed dataset as then a definitive XML Schema will be
> > > produced, or should I just build and XML string from the information I return
> > > from the database and send that back across.
> > >
> > > I know that all the return types are serialized into XML, but does this mean
> > > that they can be accessed when they get to other end?? I would really
> > > appreciate some input here, if anyone can help me understand this that would
> > > be great!
> > >
> > > Thanks,
> > >
> > > Rob
> > >

Nov 23 '05 #13
Hi Dev,

I know that the DataSet can pump out XML based on the data contained within
it, the problem with it is that it creates elements with names that are not
always particularly descriptive for third parties. We wanted a bit more
control over the XML so i am choosing to write it myself, that way we know
what we are sending across and can document the web service to tell third
parties what to expect, safe in the knowledge that they are recieving what we
intended to send them as set out in our documentation.

Regards,

Rob

"Modica82" wrote:
That would great. I think i was being a bit dim before, you can reference
the schema from anywhere, so as long as it is accessible on the web, you can
point you XML to use it, not sure how well that works for web services, but i
am sure i will find out soon enough.

Cheers!

Rob

"SQLScott" wrote:
Unfortunately, I have not. But i can point you to some great references on
XSD schemas if you want them.

Scott

"Modica82" wrote:
Thanks again Scott,

I do have a quick question, but you may or may not have the answer, have you
ever created any sort of schema(xsd) to be passed back with your XML, if so
how did you do it?

Thanks in advance,

Rob

"Modica82" wrote:

> Hi Scott,
>
> I was planning on using the XMLTextWriter class to create XML on the fly and
> return it as a string. I have read alot about XML but never really used it
> commercially, so i want to get it write (also i have only been at this job a
> month and trying to impress :)) Some code samles would be great if you could
> send them.
>
> Thanks in Advance,
>
> Rob
>
> "SQLScott" wrote:
>
> > Rob,
> >
> > In my opinion you should build and return an XML string. In fact, the best
> > way to do it is to build your xml string and return it as a byte array for
> > quick performance. Let me know if you'd like a code sample. I have build
> > several Web Services this way. In fact, I had questions such as yours and I
> > went straight to Francesco Balena (if you know who he is) and this method was
> > highly recommended.
> >
> > This way any company or customer can read it and you are not tied to any
> > platform or language, that is the beauty of XML.
> >
> > HOpe this helps.
> >
> > Scott
> >
> > "Modica82" wrote:
> >
> > > Hi All,
> > >
> > > I am very new to web services, so am struggling to understand exactly what I
> > > am doing with regards to its returns etc. I have been given the task of
> > > designing and developing a web service which will allow external companies,
> > > access to our information. The problem for me is that these companies will
> > > be using different platforms from which to consume our web service. My
> > > question is what I should use as the return type for more complex data
> > > structures. Should I use the intrinsic dataset object and return that,
> > > should I create a typed dataset as then a definitive XML Schema will be
> > > produced, or should I just build and XML string from the information I return
> > > from the database and send that back across.
> > >
> > > I know that all the return types are serialized into XML, but does this mean
> > > that they can be accessed when they get to other end?? I would really
> > > appreciate some input here, if anyone can help me understand this that would
> > > be great!
> > >
> > > Thanks,
> > >
> > > Rob
> > >

Nov 23 '05 #14
Scott - Tried your code and it worked but when I call the HelloWorld function
from Cold Fusion I'm not getting data, just alot of numbers. I like this
idea and seems easy but how does the end user (consumer) see the correct data?

"Modica82" wrote:
Hi Dev,

I know that the DataSet can pump out XML based on the data contained within
it, the problem with it is that it creates elements with names that are not
always particularly descriptive for third parties. We wanted a bit more
control over the XML so i am choosing to write it myself, that way we know
what we are sending across and can document the web service to tell third
parties what to expect, safe in the knowledge that they are recieving what we
intended to send them as set out in our documentation.

Regards,

Rob

"Modica82" wrote:
That would great. I think i was being a bit dim before, you can reference
the schema from anywhere, so as long as it is accessible on the web, you can
point you XML to use it, not sure how well that works for web services, but i
am sure i will find out soon enough.

Cheers!

Rob

"SQLScott" wrote:
Unfortunately, I have not. But i can point you to some great references on
XSD schemas if you want them.

Scott

"Modica82" wrote:

> Thanks again Scott,
>
> I do have a quick question, but you may or may not have the answer, have you
> ever created any sort of schema(xsd) to be passed back with your XML, if so
> how did you do it?
>
> Thanks in advance,
>
> Rob
>
> "Modica82" wrote:
>
> > Hi Scott,
> >
> > I was planning on using the XMLTextWriter class to create XML on the fly and
> > return it as a string. I have read alot about XML but never really used it
> > commercially, so i want to get it write (also i have only been at this job a
> > month and trying to impress :)) Some code samles would be great if you could
> > send them.
> >
> > Thanks in Advance,
> >
> > Rob
> >
> > "SQLScott" wrote:
> >
> > > Rob,
> > >
> > > In my opinion you should build and return an XML string. In fact, the best
> > > way to do it is to build your xml string and return it as a byte array for
> > > quick performance. Let me know if you'd like a code sample. I have build
> > > several Web Services this way. In fact, I had questions such as yours and I
> > > went straight to Francesco Balena (if you know who he is) and this method was
> > > highly recommended.
> > >
> > > This way any company or customer can read it and you are not tied to any
> > > platform or language, that is the beauty of XML.
> > >
> > > HOpe this helps.
> > >
> > > Scott
> > >
> > > "Modica82" wrote:
> > >
> > > > Hi All,
> > > >
> > > > I am very new to web services, so am struggling to understand exactly what I
> > > > am doing with regards to its returns etc. I have been given the task of
> > > > designing and developing a web service which will allow external companies,
> > > > access to our information. The problem for me is that these companies will
> > > > be using different platforms from which to consume our web service. My
> > > > question is what I should use as the return type for more complex data
> > > > structures. Should I use the intrinsic dataset object and return that,
> > > > should I create a typed dataset as then a definitive XML Schema will be
> > > > produced, or should I just build and XML string from the information I return
> > > > from the database and send that back across.
> > > >
> > > > I know that all the return types are serialized into XML, but does this mean
> > > > that they can be accessed when they get to other end?? I would really
> > > > appreciate some input here, if anyone can help me understand this that would
> > > > be great!
> > > >
> > > > Thanks,
> > > >
> > > > Rob
> > > >

Nov 23 '05 #15
Hi Daniel,

What you are returning is an array of bytes that represent the file, what
you need to do is using the cold fusion file system objects (Not sure what
they are) and generate a file using the byte array provided. I am sorry if
this is a bit vague but i know nothing about cold fusion.

Regards,

Rob

"Daniel" wrote:
Scott - Tried your code and it worked but when I call the HelloWorld function
from Cold Fusion I'm not getting data, just alot of numbers. I like this
idea and seems easy but how does the end user (consumer) see the correct data?

"Modica82" wrote:
Hi Dev,

I know that the DataSet can pump out XML based on the data contained within
it, the problem with it is that it creates elements with names that are not
always particularly descriptive for third parties. We wanted a bit more
control over the XML so i am choosing to write it myself, that way we know
what we are sending across and can document the web service to tell third
parties what to expect, safe in the knowledge that they are recieving what we
intended to send them as set out in our documentation.

Regards,

Rob

"Modica82" wrote:
That would great. I think i was being a bit dim before, you can reference
the schema from anywhere, so as long as it is accessible on the web, you can
point you XML to use it, not sure how well that works for web services, but i
am sure i will find out soon enough.

Cheers!

Rob

"SQLScott" wrote:

> Unfortunately, I have not. But i can point you to some great references on
> XSD schemas if you want them.
>
> Scott
>
> "Modica82" wrote:
>
> > Thanks again Scott,
> >
> > I do have a quick question, but you may or may not have the answer, have you
> > ever created any sort of schema(xsd) to be passed back with your XML, if so
> > how did you do it?
> >
> > Thanks in advance,
> >
> > Rob
> >
> > "Modica82" wrote:
> >
> > > Hi Scott,
> > >
> > > I was planning on using the XMLTextWriter class to create XML on the fly and
> > > return it as a string. I have read alot about XML but never really used it
> > > commercially, so i want to get it write (also i have only been at this job a
> > > month and trying to impress :)) Some code samles would be great if you could
> > > send them.
> > >
> > > Thanks in Advance,
> > >
> > > Rob
> > >
> > > "SQLScott" wrote:
> > >
> > > > Rob,
> > > >
> > > > In my opinion you should build and return an XML string. In fact, the best
> > > > way to do it is to build your xml string and return it as a byte array for
> > > > quick performance. Let me know if you'd like a code sample. I have build
> > > > several Web Services this way. In fact, I had questions such as yours and I
> > > > went straight to Francesco Balena (if you know who he is) and this method was
> > > > highly recommended.
> > > >
> > > > This way any company or customer can read it and you are not tied to any
> > > > platform or language, that is the beauty of XML.
> > > >
> > > > HOpe this helps.
> > > >
> > > > Scott
> > > >
> > > > "Modica82" wrote:
> > > >
> > > > > Hi All,
> > > > >
> > > > > I am very new to web services, so am struggling to understand exactly what I
> > > > > am doing with regards to its returns etc. I have been given the task of
> > > > > designing and developing a web service which will allow external companies,
> > > > > access to our information. The problem for me is that these companies will
> > > > > be using different platforms from which to consume our web service. My
> > > > > question is what I should use as the return type for more complex data
> > > > > structures. Should I use the intrinsic dataset object and return that,
> > > > > should I create a typed dataset as then a definitive XML Schema will be
> > > > > produced, or should I just build and XML string from the information I return
> > > > > from the database and send that back across.
> > > > >
> > > > > I know that all the return types are serialized into XML, but does this mean
> > > > > that they can be accessed when they get to other end?? I would really
> > > > > appreciate some input here, if anyone can help me understand this that would
> > > > > be great!
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Rob
> > > > >

Nov 23 '05 #16
Modica - Have you successfully created any webservices that are being access
by non microsoft consumers? I've been following this post and would like to
see what others have done.

thanks.

"Modica82" wrote:
Hi Daniel,

What you are returning is an array of bytes that represent the file, what
you need to do is using the cold fusion file system objects (Not sure what
they are) and generate a file using the byte array provided. I am sorry if
this is a bit vague but i know nothing about cold fusion.

Regards,

Rob

"Daniel" wrote:
Scott - Tried your code and it worked but when I call the HelloWorld function
from Cold Fusion I'm not getting data, just alot of numbers. I like this
idea and seems easy but how does the end user (consumer) see the correct data?

"Modica82" wrote:
Hi Dev,

I know that the DataSet can pump out XML based on the data contained within
it, the problem with it is that it creates elements with names that are not
always particularly descriptive for third parties. We wanted a bit more
control over the XML so i am choosing to write it myself, that way we know
what we are sending across and can document the web service to tell third
parties what to expect, safe in the knowledge that they are recieving what we
intended to send them as set out in our documentation.

Regards,

Rob

"Modica82" wrote:

> That would great. I think i was being a bit dim before, you can reference
> the schema from anywhere, so as long as it is accessible on the web, you can
> point you XML to use it, not sure how well that works for web services, but i
> am sure i will find out soon enough.
>
> Cheers!
>
> Rob
>
> "SQLScott" wrote:
>
> > Unfortunately, I have not. But i can point you to some great references on
> > XSD schemas if you want them.
> >
> > Scott
> >
> > "Modica82" wrote:
> >
> > > Thanks again Scott,
> > >
> > > I do have a quick question, but you may or may not have the answer, have you
> > > ever created any sort of schema(xsd) to be passed back with your XML, if so
> > > how did you do it?
> > >
> > > Thanks in advance,
> > >
> > > Rob
> > >
> > > "Modica82" wrote:
> > >
> > > > Hi Scott,
> > > >
> > > > I was planning on using the XMLTextWriter class to create XML on the fly and
> > > > return it as a string. I have read alot about XML but never really used it
> > > > commercially, so i want to get it write (also i have only been at this job a
> > > > month and trying to impress :)) Some code samles would be great if you could
> > > > send them.
> > > >
> > > > Thanks in Advance,
> > > >
> > > > Rob
> > > >
> > > > "SQLScott" wrote:
> > > >
> > > > > Rob,
> > > > >
> > > > > In my opinion you should build and return an XML string. In fact, the best
> > > > > way to do it is to build your xml string and return it as a byte array for
> > > > > quick performance. Let me know if you'd like a code sample. I have build
> > > > > several Web Services this way. In fact, I had questions such as yours and I
> > > > > went straight to Francesco Balena (if you know who he is) and this method was
> > > > > highly recommended.
> > > > >
> > > > > This way any company or customer can read it and you are not tied to any
> > > > > platform or language, that is the beauty of XML.
> > > > >
> > > > > HOpe this helps.
> > > > >
> > > > > Scott
> > > > >
> > > > > "Modica82" wrote:
> > > > >
> > > > > > Hi All,
> > > > > >
> > > > > > I am very new to web services, so am struggling to understand exactly what I
> > > > > > am doing with regards to its returns etc. I have been given the task of
> > > > > > designing and developing a web service which will allow external companies,
> > > > > > access to our information. The problem for me is that these companies will
> > > > > > be using different platforms from which to consume our web service. My
> > > > > > question is what I should use as the return type for more complex data
> > > > > > structures. Should I use the intrinsic dataset object and return that,
> > > > > > should I create a typed dataset as then a definitive XML Schema will be
> > > > > > produced, or should I just build and XML string from the information I return
> > > > > > from the database and send that back across.
> > > > > >
> > > > > > I know that all the return types are serialized into XML, but does this mean
> > > > > > that they can be accessed when they get to other end?? I would really
> > > > > > appreciate some input here, if anyone can help me understand this that would
> > > > > > be great!
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Rob
> > > > > >

Nov 23 '05 #17
Hi Daniel,

I am in the process of designing a web service wich will have to have a very
high level of interopability becuase it is going to be used on a cobol site
for starters. I have not implemented it so i cant vouch if my approach is
the best, but what i have done is different to the approach i started out
with here. What i am doing is desiging my messages (request and response) as
XML Schemas (XSD files) which i will then go onto generate my WDSL file from,
the link for the article i used is below. So instead of using XML as
strings, which actually get serialized differently to say an XML document,
which actually gets serialized as XML, i am going to pass back XML with
classes that will be generated from my Schema. I hope that makes sense.

http://msdn.microsoft.com/msdnmag/is...ervicesDesign/

Hope that helps,

Rob

"Daniel" wrote:
Modica - Have you successfully created any webservices that are being access
by non microsoft consumers? I've been following this post and would like to
see what others have done.

thanks.

"Modica82" wrote:
Hi Daniel,

What you are returning is an array of bytes that represent the file, what
you need to do is using the cold fusion file system objects (Not sure what
they are) and generate a file using the byte array provided. I am sorry if
this is a bit vague but i know nothing about cold fusion.

Regards,

Rob

"Daniel" wrote:
Scott - Tried your code and it worked but when I call the HelloWorld function
from Cold Fusion I'm not getting data, just alot of numbers. I like this
idea and seems easy but how does the end user (consumer) see the correct data?

"Modica82" wrote:

> Hi Dev,
>
> I know that the DataSet can pump out XML based on the data contained within
> it, the problem with it is that it creates elements with names that are not
> always particularly descriptive for third parties. We wanted a bit more
> control over the XML so i am choosing to write it myself, that way we know
> what we are sending across and can document the web service to tell third
> parties what to expect, safe in the knowledge that they are recieving what we
> intended to send them as set out in our documentation.
>
> Regards,
>
> Rob
>
> "Modica82" wrote:
>
> > That would great. I think i was being a bit dim before, you can reference
> > the schema from anywhere, so as long as it is accessible on the web, you can
> > point you XML to use it, not sure how well that works for web services, but i
> > am sure i will find out soon enough.
> >
> > Cheers!
> >
> > Rob
> >
> > "SQLScott" wrote:
> >
> > > Unfortunately, I have not. But i can point you to some great references on
> > > XSD schemas if you want them.
> > >
> > > Scott
> > >
> > > "Modica82" wrote:
> > >
> > > > Thanks again Scott,
> > > >
> > > > I do have a quick question, but you may or may not have the answer, have you
> > > > ever created any sort of schema(xsd) to be passed back with your XML, if so
> > > > how did you do it?
> > > >
> > > > Thanks in advance,
> > > >
> > > > Rob
> > > >
> > > > "Modica82" wrote:
> > > >
> > > > > Hi Scott,
> > > > >
> > > > > I was planning on using the XMLTextWriter class to create XML on the fly and
> > > > > return it as a string. I have read alot about XML but never really used it
> > > > > commercially, so i want to get it write (also i have only been at this job a
> > > > > month and trying to impress :)) Some code samles would be great if you could
> > > > > send them.
> > > > >
> > > > > Thanks in Advance,
> > > > >
> > > > > Rob
> > > > >
> > > > > "SQLScott" wrote:
> > > > >
> > > > > > Rob,
> > > > > >
> > > > > > In my opinion you should build and return an XML string. In fact, the best
> > > > > > way to do it is to build your xml string and return it as a byte array for
> > > > > > quick performance. Let me know if you'd like a code sample. I have build
> > > > > > several Web Services this way. In fact, I had questions such as yours and I
> > > > > > went straight to Francesco Balena (if you know who he is) and this method was
> > > > > > highly recommended.
> > > > > >
> > > > > > This way any company or customer can read it and you are not tied to any
> > > > > > platform or language, that is the beauty of XML.
> > > > > >
> > > > > > HOpe this helps.
> > > > > >
> > > > > > Scott
> > > > > >
> > > > > > "Modica82" wrote:
> > > > > >
> > > > > > > Hi All,
> > > > > > >
> > > > > > > I am very new to web services, so am struggling to understand exactly what I
> > > > > > > am doing with regards to its returns etc. I have been given the task of
> > > > > > > designing and developing a web service which will allow external companies,
> > > > > > > access to our information. The problem for me is that these companies will
> > > > > > > be using different platforms from which to consume our web service. My
> > > > > > > question is what I should use as the return type for more complex data
> > > > > > > structures. Should I use the intrinsic dataset object and return that,
> > > > > > > should I create a typed dataset as then a definitive XML Schema will be
> > > > > > > produced, or should I just build and XML string from the information I return
> > > > > > > from the database and send that back across.
> > > > > > >
> > > > > > > I know that all the return types are serialized into XML, but does this mean
> > > > > > > that they can be accessed when they get to other end?? I would really
> > > > > > > appreciate some input here, if anyone can help me understand this that would
> > > > > > > be great!
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Rob
> > > > > > >

Nov 23 '05 #18

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

Similar topics

0
1425
by: a | last post by:
I've read and split a delimited text file into a dataset. It looks fine in a datagrid (5 columns and 5,000 rows), but I've been trying, without success, to then insert the resulting dataset called "result" into a single sql table that has an auto-increment and PK column called ID, as well as the 5 columns from the dataset. Any suggestions on a way to perform the insert of the "result" dataset into the sql table?
0
10845
by: a | last post by:
I've read and split a delimited text file into a dataset. It looks fine in a datagrid (5 columns and 5,000 rows), but I've been trying, without success, to then insert the resulting dataset called "result" into a single sql table that has an auto-increment and PK column called ID, as well as the 5 columns from the dataset. Any suggestions on a way to perform the insert of the "result" dataset into the sql table?
1
1669
by: Brian Keating | last post by:
hi there, has anyone come across this? i've a typed dataset with a table and a column of type string. I want to insert a new row and for some reason i keep getting "Null" in my dataset. take a simple exply of person Name:string Comment:string
5
1366
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.
1
8068
by: languy | last post by:
Hi there I'm having a problem when using the SqlDataAdapter. When calling the Update(DataSet, string) method I get the following error message "String or binary data would be truncated". The rows neither have data that exceeds 8000 chars nor contain any LOB fields. Furthermore the data is transferred between two tables that are bitwise identical. -- snip -- System.Data.SqlClient.SqlCommand command =
0
1426
by: Derek Vincent | last post by:
Why am I having problems filling my dataset when I select fields of type varchar(350) from interbase? I can fill the dataset when I select every other field in the table but I receive and error message that says "object reference not set to an instance of an object" when I return the varchar field." The detailed error message is below. Server Error in '/BIC_WEB_TEST' Application....
3
2967
by: Khurram | last post by:
Hi, Firstly, I will apologise now if I have posted in the wrong discussion group. Please let me know if I have for future reference. Below is the code to a WebMethod that is querying an Access 2003 database, saving the results as a dataset and returning the dataset. public DataSet findAAPAssessment(string assessmentID) {
2
3829
by: rrflore2 | last post by:
Ok. I'm writing and deleting to an xml file using a dataset. I have a function in my codebehind page that binds a listbox to the dataset that performs the writes/deletes. Everything seems to be working fine except, I cannot get the listbox to update after the xml file is written to. I've tried to rebind the listbox and a bunch of other things; nothing seems to work. I'm sure this is simple fix but, I cannot seem to figure it out. I...
1
2367
by: jonbartlam | last post by:
Hi There I'm not sure what exactly is going wrong here. I'm writing an application that retreives a table from a database (tbl_internalfaults) and updates it. (Actually, just the status column will need updating with 'CLOSED' where necessary.) I have been trying to use the OLEDB command builder to build the statement to update the database however it is returning an error whenever I try to do this. I already have a dataset full of data, 1...
4
22756
by: haarigee | last post by:
I need to insert without any parameters and execution query. Since, I have bulk of data's in a dataset the amount of transaction makes the application delay. So i need to directly insert my dataset to database table. DataSet FilecontentDataset = new DataSet(); String fileName = string.Empty; try { string full = Path.GetFullPath(PathtoTextFile.PostedFile.FileName);
0
8683
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
8611
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
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
9031
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
6531
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
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
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
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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.