473,722 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need to return dataset in XML format so Flash can read it properly.

I do a return as XMLDataDocument in my webservice but it returns not
with the namespaces etc in them. Anyone have and example where I can
have the webservice return it as a XML. C# preferred.
Flash just sees it as an object when it calls the web service.
Thanks
Oct 2 '08 #1
11 2889
<ca*****@gmail. comwrote in message
news:27******** *************** ***********@8g2 000hse.googlegr oups.com...
I do a return as XMLDataDocument in my webservice but it returns not
with the namespaces etc in them. Anyone have and example where I can
have the webservice return it as a XML. C# preferred.
Flash just sees it as an object when it calls the web service.
What do you mean, "without the namespaces"? Can you give more detail on what
you're looking for?
--
John Saunders | MVP - Connected System Developer

Oct 2 '08 #2
On Oct 2, 12:20*pm, "John Saunders" <n...@dont.do.t hat.comwrote:
<casu...@gmail. comwrote in message

news:27******** *************** ***********@8g2 000hse.googlegr oups.com...
I do a return as XMLDataDocument in my webservice but it returns not
with the namespaces etc in them. Anyone have and example where I can
have the webservice return it as a XML. C# preferred.
Flash just sees it as an object when it calls the web service.

What do you mean, "without the namespaces"? Can you give more detail on what
you're looking for?

--
John Saunders | MVP - Connected System Developer
Here is my code:
[WebMethod(Descr iption = "Get All Floors", EnableSession = true)]
public XmlDocument GetCurrentFloor (string identity)
{
DataTable dt;
try
{
I get my dataset here from the database
XmlDocument xml = new XmlDocument();
xml.LoadXml(dt. DataSet.GetXml( ));
return xml;
}
catch (SoapException sox)
{
throw sox;
}

it returns as this:
<?xml version="1.0" encoding="utf-8" ?>
- <NewDataSet>
- <Table1>
<FirstName>Ar i N.</FirstName>
<LastName>Lefko vits</LastName>
<Title>Director </Title>
<Email>ar****** *****@lazard.co m</Email>
<Phone>+1 212-555-5555</Phone>
<BusinessLine>C lothinh</BusinessLine>
<DepartmentName >industry</DepartmentName>
<DepartmentId>1 88989</DepartmentId>
<ProductGroup>5 5555</ProductGroup>
<Assistant xml:space="pres erve"></Assistant>
<FloorLocationI d>177</FloorLocationId >
<UserName>nam e</UserName>
<LazardId>666 6</LazardId>
<Location>New York</Location>
<Floor>61</Floor>
<BusinessUnit>3 333</BusinessUnit>
<CPUGroup>1</CPUGroup>
</Table1>........ ...

I need it to return it like this:
<?xml version="1.0" encoding="utf-8" ?>
- <WeatherForecas ts xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance" xmlns="http://
www.webservicex .net">
<Latitude>40.75 97275</Latitude>
<Longitude>73.9 823456</Longitude>
<AllocationFact or>2.2E-05</AllocationFacto r>
<FipsCode>36</FipsCode>
<PlaceName>NE W YORK</PlaceName>
<StateCode>NY </StateCode>
- <Details>
- <WeatherData>
<Day>Thursday , October 02, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/shra20.jpg</
WeatherImage>
<MaxTemperature F>68</MaxTemperatureF >
<MinTemperature F>51</MinTemperatureF >
<MaxTemperature C>20</MaxTemperatureC >
<MinTemperature C>11</MinTemperatureC >
</WeatherData>
- <WeatherData>
<Day>Friday, October 03, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperature F>69</MaxTemperatureF >
<MinTemperature F>53</MinTemperatureF >
<MaxTemperature C>21</MaxTemperatureC >
<MinTemperature C>12</MinTemperatureC >
</WeatherData>
- <WeatherData>
<Day>Saturday , October 04, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperature F>66</MaxTemperatureF >
<MinTemperature F>51</MinTemperatureF >
<MaxTemperature C>19</MaxTemperatureC >
<MinTemperature C>11</MinTemperatureC >
</WeatherData>
- <WeatherData>
<Day>Sunday, October 05, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperature F>64</MaxTemperatureF >
<MinTemperature F>48</MinTemperatureF >
<MaxTemperature C>18</MaxTemperatureC >
<MinTemperature C>9</MinTemperatureC >
</WeatherData>
- <WeatherData>
<Day>Monday, October 06, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperature F>62</MaxTemperatureF >
<MinTemperature F>48</MinTemperatureF >
<MaxTemperature C>17</MaxTemperatureC >
<MinTemperature C>9</MinTemperatureC >
</WeatherData>
- <WeatherData>
<Day>Tuesday, October 07, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperature F>61</MaxTemperatureF >
<MinTemperature F>52</MinTemperatureF >
<MaxTemperature C>16</MaxTemperatureC >
<MinTemperature C>11</MinTemperatureC >
</WeatherData>
<WeatherData />
</Details>
</WeatherForecast s>
Oct 2 '08 #3
<ca*****@gmail. comwrote in message
news:da******** *************** ***********@m45 g2000hsb.google groups.com...
On Oct 2, 12:20 pm, "John Saunders" <n...@dont.do.t hat.comwrote:
><casu...@gmail .comwrote in message

news:27******* *************** ************@8g 2000hse.googleg roups.com...
I do a return as XMLDataDocument in my webservice but it returns not
with the namespaces etc in them. Anyone have and example where I can
have the webservice return it as a XML. C# preferred.
Flash just sees it as an object when it calls the web service.

What do you mean, "without the namespaces"? Can you give more detail on
what
you're looking for?

--
John Saunders | MVP - Connected System Developer

Here is my code:
[WebMethod(Descr iption = "Get All Floors", EnableSession = true)]
public XmlDocument GetCurrentFloor (string identity)
{
DataTable dt;
try
{
I get my dataset here from the database
XmlDocument xml = new XmlDocument();
xml.LoadXml(dt. DataSet.GetXml( ));
return xml;
}
catch (SoapException sox)
{
throw sox;
}

it returns as this:
<?xml version="1.0" encoding="utf-8" ?>
- <NewDataSet>
- <Table1>
<FirstName>Ar i N.</FirstName>
<LastName>Lefko vits</LastName>
<Title>Director </Title>
<Email>ar****** *****@lazard.co m</Email>
<Phone>+1 212-555-5555</Phone>
<BusinessLine>C lothinh</BusinessLine>
<DepartmentName >industry</DepartmentName>
<DepartmentId>1 88989</DepartmentId>
<ProductGroup>5 5555</ProductGroup>
<Assistant xml:space="pres erve"></Assistant>
<FloorLocationI d>177</FloorLocationId >
<UserName>nam e</UserName>
<LazardId>666 6</LazardId>
<Location>New York</Location>
<Floor>61</Floor>
<BusinessUnit>3 333</BusinessUnit>
<CPUGroup>1</CPUGroup>
</Table1>........ ...

I need it to return it like this:
<?xml version="1.0" encoding="utf-8" ?>
- <WeatherForecas ts xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance" xmlns="http://
www.webservicex .net">
<Latitude>40.75 97275</Latitude>
<Longitude>73.9 823456</Longitude>
<AllocationFact or>2.2E-05</AllocationFacto r>
<FipsCode>36</FipsCode>
<PlaceName>NE W YORK</PlaceName>
<StateCode>NY </StateCode>
- <Details>
- <WeatherData>
<Day>Thursday , October 02, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/shra20.jpg</
WeatherImage>
<MaxTemperature F>68</MaxTemperatureF >
<MinTemperature F>51</MinTemperatureF >
<MaxTemperature C>20</MaxTemperatureC >
<MinTemperature C>11</MinTemperatureC >
</WeatherData>
- <WeatherData>
<Day>Friday, October 03, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperature F>69</MaxTemperatureF >
<MinTemperature F>53</MinTemperatureF >
<MaxTemperature C>21</MaxTemperatureC >
<MinTemperature C>12</MinTemperatureC >
</WeatherData>
- <WeatherData>
<Day>Saturday , October 04, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperature F>66</MaxTemperatureF >
<MinTemperature F>51</MinTemperatureF >
<MaxTemperature C>19</MaxTemperatureC >
<MinTemperature C>11</MinTemperatureC >
</WeatherData>
- <WeatherData>
<Day>Sunday, October 05, 2008</Day>
<WeatherImage>h ttp://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperature F>64</MaxTemperatureF >
<MinTemperature F>48</MinTemperatureF >
<MaxTemperature C>18</MaxTemperatureC >
<MinTemperature C>9</MinTemperatureC >
</WeatherData>
....
</Details>
</WeatherForecast s>
First of all, did you post the correct XML? The first example seems
unrelated to the second example.

Second of all, when you talk about namespace, I presume you mean
xmlns="http://www.webservicex .net"? If that's true, then try setting the
Namespace property of the DataSet to "http://www.webservicex .net".

Third, never ever catch exceptions unless you have to, and unless you're
going to add something over and above what would happen if you didn't catch
the exception. All you are doing is throwing what you caught, which is worse
than not catching it (you're screwing up the stack trace).

Finally, there are several other methods of gettinig XML from a DataSet into
an XmlDocument. I haven't had time to do performance testing on them to see
which is better, but I'm certain that you've chosen about the worst way
possible. After asking the DataSet to emit its contents as a string, you're
then turning around and asking the XmlDocument instance to parse that
string. That can be a very expensive operation. Try one of these:

public XmlDocument GetDocument()
{
return new XmlDataDocument (_ds);
}

public XmlDocument GetDocument()
{
XmlDocument doc = new XmlDocument();
XPathNavigator navigator = doc.CreateNavig ator();
using (var writer = navigator.Appen dChild())
{
_ds.WriteXml(wr iter, XmlWriteMode.Ig noreSchema);
}
return doc;
}

--
John Saunders | MVP - Connected System Developer

Oct 2 '08 #4
On Oct 2, 5:12*pm, "John Saunders" <n...@dont.do.t hat.comwrote:
<casu...@gmail. comwrote in message

news:da******** *************** ***********@m45 g2000hsb.google groups.com...


On Oct 2, 12:20 pm, "John Saunders" <n...@dont.do.t hat.comwrote:
<casu...@gmail. comwrote in message
>news:27******* *************** ************@8g 2000hse.googleg roups.com...
I do a return as XMLDataDocument in my webservice but it returns not
with the namespaces etc in them. Anyone have and example where I can
have the webservice return it as a XML. C# preferred.
Flash just sees it as an object when it calls the web service.
What do you mean, "without the namespaces"? Can you give more detail on
what
you're looking for?
--
John Saunders | MVP - Connected System Developer
Here is my code:
[WebMethod(Descr iption = "Get All Floors", EnableSession = true)]
* * * *public XmlDocument GetCurrentFloor (string identity)
* * * *{
* * * * * *DataTable dt;
* * * * * *try
* * * * * *{
* * * * * * * I get my dataset here from the database
* * * * * * * *XmlDocument xml = new XmlDocument();
* * * * * * * *xml.LoadXml(dt .DataSet.GetXml ());
* * * * * * * return xml;
* * * * * *}
* * * * * *catch (SoapException sox)
* * * * * *{
* * * * * * * *throw sox;
* * * * * *}
it returns as this:
<?xml version="1.0" encoding="utf-8" ?>
- <NewDataSet>
- <Table1>
*<FirstName>Ar i N.</FirstName>
*<LastName>Lefk ovits</LastName>
*<Title>Directo r</Title>
*<Email>ari.lef kov...@lazard.c om</Email>
*<Phone>+1 212-555-5555</Phone>
*<BusinessLine> Clothinh</BusinessLine>
*<DepartmentNam e>industry</DepartmentName>
*<DepartmentId> 188989</DepartmentId>
*<ProductGroup> 55555</ProductGroup>
*<Assistant xml:space="pres erve"></Assistant>
*<FloorLocation Id>177</FloorLocationId >
*<UserName>name </UserName>
*<LazardId>6666 </LazardId>
*<Location>New York</Location>
*<Floor>61</Floor>
*<BusinessUnit> 3333</BusinessUnit>
*<CPUGroup>1</CPUGroup>
*</Table1>........ ...
I need it to return it like this:
<?xml version="1.0" encoding="utf-8" ?>
- <WeatherForecas ts xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance" xmlns="http://
www.webservicex .net">
*<Latitude>40.7 597275</Latitude>
*<Longitude>73. 9823456</Longitude>
*<AllocationFac tor>2.2E-05</AllocationFacto r>
*<FipsCode>36</FipsCode>
*<PlaceName>NE W YORK</PlaceName>
*<StateCode>NY </StateCode>
- <Details>
- <WeatherData>
*<Day>Thursday , October 02, 2008</Day>
*<WeatherImage> http://forecast.weathe r.gov/images/wtf/shra20.jpg</
WeatherImage>
*<MaxTemperatur eF>68</MaxTemperatureF >
*<MinTemperatur eF>51</MinTemperatureF >
*<MaxTemperatur eC>20</MaxTemperatureC >
*<MinTemperatur eC>11</MinTemperatureC >
*</WeatherData>
- <WeatherData>
*<Day>Friday, October 03, 2008</Day>
*<WeatherImage> http://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
*<MaxTemperatur eF>69</MaxTemperatureF >
*<MinTemperatur eF>53</MinTemperatureF >
*<MaxTemperatur eC>21</MaxTemperatureC >
*<MinTemperatur eC>12</MinTemperatureC >
*</WeatherData>
- <WeatherData>
*<Day>Saturday , October 04, 2008</Day>
*<WeatherImage> http://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
*<MaxTemperatur eF>66</MaxTemperatureF >
*<MinTemperatur eF>51</MinTemperatureF >
*<MaxTemperatur eC>19</MaxTemperatureC >
*<MinTemperatur eC>11</MinTemperatureC >
*</WeatherData>
- <WeatherData>
*<Day>Sunday, October 05, 2008</Day>
*<WeatherImage> http://forecast.weathe r.gov/images/wtf/sct.jpg</
WeatherImage>
*<MaxTemperatur eF>64</MaxTemperatureF >
*<MinTemperatur eF>48</MinTemperatureF >
*<MaxTemperatur eC>18</MaxTemperatureC >
*<MinTemperatur eC>9</MinTemperatureC >
*</WeatherData>
...
*</Details>
*</WeatherForecast s>

First of all, did you post the correct XML? The first example seems
unrelated to the second example.

Second of all, when you talk about namespace, I presume you mean
xmlns="http://www.webservicex .net"? If that's true, then try setting the
Namespace property of the DataSet to "http://www.webservicex .net".

Third, never ever catch exceptions unless you have to, and unless you're
going to add something over and above what would happen if you didn't catch
the exception. All you are doing is throwing what you caught, which is worse
than not catching it (you're screwing up the stack trace).

Finally, there are several other methods of gettinig XML from a DataSet into
an XmlDocument. I haven't had time to do performance testing on them to see
which is better, but I'm certain that you've chosen about the worst way
possible. After asking the DataSet to emit its contents as a string, you're
then turning around and asking the XmlDocument instance to parse that
string. That can be a very expensive operation. Try one of these:

public XmlDocument GetDocument()
{
* * return new XmlDataDocument (_ds);

}

public XmlDocument GetDocument()
{
* * XmlDocument doc = new XmlDocument();
* * XPathNavigator navigator = doc.CreateNavig ator();
* * using (var writer = navigator.Appen dChild())
* * {
* * * * _ds.WriteXml(wr iter, XmlWriteMode.Ig noreSchema);
* * }
* * return doc;

}

--
John Saunders | MVP - Connected System Developer- Hide quoted text -

- Show quoted text -
Hi John,
This is a POC on something that is why it is very general code. The
code you gave me I already returned it as XMLDocument. The first xml
is what I returned the second is an example on how I would like it
returned. Almost like a datafeed. Flash when calling a webservice sees
it as a object. I want to return it where it sees it as a xml file but
in memory not an actual file on the server. Can it be some
configuration on the project itself.....

Thanks for your time.
Damon
Oct 3 '08 #5
<ca*****@gmail. comwrote in message
news:c3******** *************** ***********@m3g 2000hsc.googleg roups.com...
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.t hat.comwrote:
Hi John,
This is a POC on something that is why it is very general code. The
code you gave me I already returned it as XMLDocument. The first xml
is what I returned the second is an example on how I would like it
returned. Almost like a datafeed. Flash when calling a webservice sees
it as a object. I want to return it where it sees it as a xml file but
in memory not an actual file on the server. Can it be some
configuration on the project itself.....
I don't see any fundamental difference between the two. They are both valid
XML Documents.

I think you are seeing differences and mistaking them for important
differences. I think you are missing what the important difference really
is. I think you'll need to create a simpler POC, maybe with only a few
columns, and see how Flash treats it.
--
John Saunders | MVP - Connected System Developer

Oct 3 '08 #6
On Oct 3, 11:28*am, "John Saunders" <n...@dont.do.t hat.comwrote:
<casu...@gmail. comwrote in message

news:c3******** *************** ***********@m3g 2000hsc.googleg roups.com...
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.t hat.comwrote:
Hi John,
This is a POC on something that is why it is very general code. The
code you gave me I already returned it as XMLDocument. The first xml
is what I returned the second is an example on how I would like it
returned. Almost like a datafeed. Flash when calling a webservice sees
it as a object. I want to return it where it sees it as a xml file but
in memory not an actual file on the server. Can it be some
configuration on the project itself.....

I don't see any fundamental difference between the two. They are both valid
XML Documents.

I think you are seeing differences and mistaking them for important
differences. I think you are missing what the important difference really
is. I think you'll need to create a simpler POC, maybe with only a few
columns, and see how Flash treats it.
--
John Saunders | MVP - Connected System Developer
Well the where is my namespace, it is there in my code.
I already connected to the weather service and it worked fine. I got
results back in my Flash application, without any issues. only thing
it does is a binding. Like a datagrid would do.
maybe I need to look into another forum. Thanks
Oct 3 '08 #7


<ca*****@gmail. comwrote in message
news:f2******** *************** ***********@i76 g2000hsf.google groups.com...
On Oct 3, 11:28 am, "John Saunders" <n...@dont.do.t hat.comwrote:
><casu...@gmail .comwrote in message

news:c3******* *************** ************@m3 g2000hsc.google groups.com...
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.t hat.comwrote:
Hi John,
This is a POC on something that is why it is very general code. The
code you gave me I already returned it as XMLDocument. The first xml
is what I returned the second is an example on how I would like it
returned. Almost like a datafeed. Flash when calling a webservice sees
it as a object. I want to return it where it sees it as a xml file but
in memory not an actual file on the server. Can it be some
configuration on the project itself.....

I don't see any fundamental difference between the two. They are both
valid
XML Documents.

I think you are seeing differences and mistaking them for important
differences. I think you are missing what the important difference really
is. I think you'll need to create a simpler POC, maybe with only a few
columns, and see how Flash treats it.
--
John Saunders | MVP - Connected System Developer

Well the where is my namespace, it is there in my code.
I already connected to the weather service and it worked fine. I got
results back in my Flash application, without any issues. only thing
it does is a binding. Like a datagrid would do.
maybe I need to look into another forum. Thanks
Did you try setting the Namespace property of the DataSet like I suggested?

But I don't think that will solve your problem. The problem is that you
don't know what Flash likes and doesn't like about your XML.

And I don't see any namespace in the code you posted. Please point it out to
me.

--
John Saunders | MVP - Connected System Developer

Oct 3 '08 #8
On Oct 3, 11:51*am, "John Saunders" <n...@dont.do.t hat.comwrote:
<casu...@gmail. comwrote in message

news:f2******** *************** ***********@i76 g2000hsf.google groups.com...


On Oct 3, 11:28 am, "John Saunders" <n...@dont.do.t hat.comwrote:
<casu...@gmail. comwrote in message
>news:c3******* *************** ************@m3 g2000hsc.google groups.com....
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.t hat.comwrote:
Hi John,
This is a POC on something that is why it is very general code. The
code you gave me I already returned it as XMLDocument. The first xml
is what I returned the second is an example on how I would like it
returned. Almost like a datafeed. Flash when calling a webservice sees
it as a object. I want to return it where it sees it as a xml file but
in memory not an actual file on the server. Can it be some
configuration on the project itself.....
I don't see any fundamental difference between the two. They are both
valid
XML Documents.
I think you are seeing differences and mistaking them for important
differences. I think you are missing what the important difference really
is. I think you'll need to create a simpler POC, maybe with only a few
columns, and see how Flash treats it.
--
John Saunders | MVP - Connected System Developer
Well the where is my namespace, it is there in my code.
I already connected to the weather service and it worked fine. I got
results back in my Flash application, without any issues. only thing
it does is a binding. Like a datagrid would do.
maybe I need to look into another forum. Thanks

Did you try setting the Namespace property of the DataSet like I suggested?

But I don't think that will solve your problem. The problem is that you
don't know what Flash likes and doesn't like about your XML.

And I don't see any namespace in the code you posted. Please point it outto
me.

--
John Saunders | MVP - Connected System Developer- Hide quoted text -

- Show quoted text -
I might have found something can I customize the WSDL ?
Oct 3 '08 #9

<ca*****@gmail. comwrote in message
news:e3******** *************** ***********@26g 2000hsk.googleg roups.com...
On Oct 3, 11:51 am, "John Saunders" <n...@dont.do.t hat.comwrote:
><casu...@gmail .comwrote in message

news:f2******* *************** ************@i7 6g2000hsf.googl egroups.com...


On Oct 3, 11:28 am, "John Saunders" <n...@dont.do.t hat.comwrote:
<casu...@gmail .comwrote in message
>>news:c3****** *************** *************@m 3g2000hsc.googl egroups.com...
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.t hat.comwrote:
Hi John,
This is a POC on something that is why it is very general code. The
code you gave me I already returned it as XMLDocument. The first xml
is what I returned the second is an example on how I would like it
returned. Almost like a datafeed. Flash when calling a webservice
sees
it as a object. I want to return it where it sees it as a xml file
but
in memory not an actual file on the server. Can it be some
configuration on the project itself.....
>I don't see any fundamental difference between the two. They are both
valid
XML Documents.
>I think you are seeing differences and mistaking them for important
differences. I think you are missing what the important difference
really
is. I think you'll need to create a simpler POC, maybe with only a few
columns, and see how Flash treats it.
--
John Saunders | MVP - Connected System Developer
Well the where is my namespace, it is there in my code.
I already connected to the weather service and it worked fine. I got
results back in my Flash application, without any issues. only thing
it does is a binding. Like a datagrid would do.
maybe I need to look into another forum. Thanks

Did you try setting the Namespace property of the DataSet like I
suggested?

But I don't think that will solve your problem. The problem is that you
don't know what Flash likes and doesn't like about your XML.

And I don't see any namespace in the code you posted. Please point it out
to
me.

--
John Saunders | MVP - Connected System Developer- Hide quoted text -

- Show quoted text -

I might have found something can I customize the WSDL ?
What did you find?

It is unlikely that you need to customize the WSDL. It is more likely that
you need to follow a few of my suggestions, like setting the Namespace
property of the DataSet and finding out what Flash would like to see.

You can write the WSDL by hand if you think that would help, and there are a
few customizations you can make. They vary from easy to very difficult,
which is why you should say what you're trying to accomplish.
--
John Saunders | MVP - Connected System Developer

Oct 3 '08 #10

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

Similar topics

10
4026
by: andrewcw | last post by:
I read in a earlier post that I can get the column of a grid to sort by datetime if the column type was set as Date I deserialize my XML and one attribute of the XSD has type as dateTime but upon inspection and behavior in the gri the data type is string. If I preview the dataset with the GUI in VISSTUDIO it shows my datatype to be dateTime .. If I try to rest the datatype I get this erro Additional information: Cannot change DataType...
7
5767
by: Shaine Fisher | last post by:
I have had a look around but I'm either not finding or not seeing the answer to this, what i want to do is reurn the results as an array, or some other worldly useful format that flash mx2004 can read. But when I did thiss I was told datasets were the way to go, but needs an array, prefer typed as were changing it. Here is the current code: (shortened for readability) public class WebService1{
2
2261
by: Thomas | last post by:
Hi, I used xsd.exe to generate a *.xsd file from the *.xml-File and then I created a typed DataSet in VisualStudio 2003 But now I have problems to read the data from the DataSet. <?xml version="1.0" encoding="UTF-8"?> <Message id="100199" version="1.9" something="1"> <Jobs id="999" priority="0">
14
1771
by: Nick Z. | last post by:
I have a file that I want to read a UTF-16 unicode string from. What is the easiest way to accomplish that? Thanks in advance, Nick Z.
3
2520
by: Datatable Dataset Datagrid help | last post by:
Hi I am somewhat confused, I am new at VB.net I use XML data, I have a datagrid, I created a datatable so that I can create a custom format like true is this graphic false is this graphic and others. One of the custom format is as follows: dsmessages_dt.Columns.Add("Image", GetType(Image)) I had a problem of when I used a checkbox in the grid that was bound to the datatable that it would not update my dataset. So I created another...
2
3846
by: bobrics | last post by:
Hi, I am trying to understand what is wrong with my code. What I have below is a part of a linear feedback shift register. But it's simplified to the point where it does not matter. The main problem is bit masks and endian notation, in my opinion. If *lfsr is 0x80000000 and the value of temp_bitmask is 0x00000080, then their bitwise AND should be all zeroes, isn't it? The debugger prints out that the answer is 0x1 somehow, which...
115
13313
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough so I can't use the site. What complete losers! When are businesses going to understand that the purpose of a web site is to communicate with customers or business parterns and NOT so your "web master or "web engineer" can show off what they...
1
2698
by: donradii | last post by:
Hello all, I am new here and am new the world of javascripting. I am having a heck of a time trying to accomplish something that i conceptually know what i want to do but can not seem to get it into code correctly. What I am looking to do is this. I have a web page that uses 3 different formats of video. Right now to load each format I have 3 separate pages. Each format is loaded onto the page with an embed function.
0
8863
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
9384
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
9088
tracyyun
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...
0
8052
agi2029
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...
1
6681
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
4502
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...
0
4762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2602
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2147
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.