473,466 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Create 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 2845
<ca*****@gmail.comwrote in message
news:27**********************************@8g2000hs e.googlegroups.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.that.comwrote:
<casu...@gmail.comwrote in message

news:27**********************************@8g2000hs e.googlegroups.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(Description = "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>Ari N.</FirstName>
<LastName>Lefkovits</LastName>
<Title>Director</Title>
<Email>ar***********@lazard.com</Email>
<Phone>+1 212-555-5555</Phone>
<BusinessLine>Clothinh</BusinessLine>
<DepartmentName>industry</DepartmentName>
<DepartmentId>188989</DepartmentId>
<ProductGroup>55555</ProductGroup>
<Assistant xml:space="preserve"></Assistant>
<FloorLocationId>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" ?>
- <WeatherForecasts xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://
www.webservicex.net">
<Latitude>40.7597275</Latitude>
<Longitude>73.9823456</Longitude>
<AllocationFactor>2.2E-05</AllocationFactor>
<FipsCode>36</FipsCode>
<PlaceName>NEW YORK</PlaceName>
<StateCode>NY</StateCode>
- <Details>
- <WeatherData>
<Day>Thursday, October 02, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/shra20.jpg</
WeatherImage>
<MaxTemperatureF>68</MaxTemperatureF>
<MinTemperatureF>51</MinTemperatureF>
<MaxTemperatureC>20</MaxTemperatureC>
<MinTemperatureC>11</MinTemperatureC>
</WeatherData>
- <WeatherData>
<Day>Friday, October 03, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperatureF>69</MaxTemperatureF>
<MinTemperatureF>53</MinTemperatureF>
<MaxTemperatureC>21</MaxTemperatureC>
<MinTemperatureC>12</MinTemperatureC>
</WeatherData>
- <WeatherData>
<Day>Saturday, October 04, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperatureF>66</MaxTemperatureF>
<MinTemperatureF>51</MinTemperatureF>
<MaxTemperatureC>19</MaxTemperatureC>
<MinTemperatureC>11</MinTemperatureC>
</WeatherData>
- <WeatherData>
<Day>Sunday, October 05, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperatureF>64</MaxTemperatureF>
<MinTemperatureF>48</MinTemperatureF>
<MaxTemperatureC>18</MaxTemperatureC>
<MinTemperatureC>9</MinTemperatureC>
</WeatherData>
- <WeatherData>
<Day>Monday, October 06, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperatureF>62</MaxTemperatureF>
<MinTemperatureF>48</MinTemperatureF>
<MaxTemperatureC>17</MaxTemperatureC>
<MinTemperatureC>9</MinTemperatureC>
</WeatherData>
- <WeatherData>
<Day>Tuesday, October 07, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperatureF>61</MaxTemperatureF>
<MinTemperatureF>52</MinTemperatureF>
<MaxTemperatureC>16</MaxTemperatureC>
<MinTemperatureC>11</MinTemperatureC>
</WeatherData>
<WeatherData />
</Details>
</WeatherForecasts>
Oct 2 '08 #3
<ca*****@gmail.comwrote in message
news:da**********************************@m45g2000 hsb.googlegroups.com...
On Oct 2, 12:20 pm, "John Saunders" <n...@dont.do.that.comwrote:
><casu...@gmail.comwrote in message

news:27**********************************@8g2000h se.googlegroups.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(Description = "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>Ari N.</FirstName>
<LastName>Lefkovits</LastName>
<Title>Director</Title>
<Email>ar***********@lazard.com</Email>
<Phone>+1 212-555-5555</Phone>
<BusinessLine>Clothinh</BusinessLine>
<DepartmentName>industry</DepartmentName>
<DepartmentId>188989</DepartmentId>
<ProductGroup>55555</ProductGroup>
<Assistant xml:space="preserve"></Assistant>
<FloorLocationId>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" ?>
- <WeatherForecasts xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://
www.webservicex.net">
<Latitude>40.7597275</Latitude>
<Longitude>73.9823456</Longitude>
<AllocationFactor>2.2E-05</AllocationFactor>
<FipsCode>36</FipsCode>
<PlaceName>NEW YORK</PlaceName>
<StateCode>NY</StateCode>
- <Details>
- <WeatherData>
<Day>Thursday, October 02, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/shra20.jpg</
WeatherImage>
<MaxTemperatureF>68</MaxTemperatureF>
<MinTemperatureF>51</MinTemperatureF>
<MaxTemperatureC>20</MaxTemperatureC>
<MinTemperatureC>11</MinTemperatureC>
</WeatherData>
- <WeatherData>
<Day>Friday, October 03, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperatureF>69</MaxTemperatureF>
<MinTemperatureF>53</MinTemperatureF>
<MaxTemperatureC>21</MaxTemperatureC>
<MinTemperatureC>12</MinTemperatureC>
</WeatherData>
- <WeatherData>
<Day>Saturday, October 04, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperatureF>66</MaxTemperatureF>
<MinTemperatureF>51</MinTemperatureF>
<MaxTemperatureC>19</MaxTemperatureC>
<MinTemperatureC>11</MinTemperatureC>
</WeatherData>
- <WeatherData>
<Day>Sunday, October 05, 2008</Day>
<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
<MaxTemperatureF>64</MaxTemperatureF>
<MinTemperatureF>48</MinTemperatureF>
<MaxTemperatureC>18</MaxTemperatureC>
<MinTemperatureC>9</MinTemperatureC>
</WeatherData>
....
</Details>
</WeatherForecasts>
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.CreateNavigator();
using (var writer = navigator.AppendChild())
{
_ds.WriteXml(writer, XmlWriteMode.IgnoreSchema);
}
return doc;
}

--
John Saunders | MVP - Connected System Developer

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

news:da**********************************@m45g2000 hsb.googlegroups.com...


On Oct 2, 12:20 pm, "John Saunders" <n...@dont.do.that.comwrote:
<casu...@gmail.comwrote in message
>news:27**********************************@8g2000h se.googlegroups.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(Description = "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>Ari N.</FirstName>
*<LastName>Lefkovits</LastName>
*<Title>Director</Title>
*<Email>ari.lefkov...@lazard.com</Email>
*<Phone>+1 212-555-5555</Phone>
*<BusinessLine>Clothinh</BusinessLine>
*<DepartmentName>industry</DepartmentName>
*<DepartmentId>188989</DepartmentId>
*<ProductGroup>55555</ProductGroup>
*<Assistant xml:space="preserve"></Assistant>
*<FloorLocationId>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" ?>
- <WeatherForecasts xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://
www.webservicex.net">
*<Latitude>40.7597275</Latitude>
*<Longitude>73.9823456</Longitude>
*<AllocationFactor>2.2E-05</AllocationFactor>
*<FipsCode>36</FipsCode>
*<PlaceName>NEW YORK</PlaceName>
*<StateCode>NY</StateCode>
- <Details>
- <WeatherData>
*<Day>Thursday, October 02, 2008</Day>
*<WeatherImage>http://forecast.weather.gov/images/wtf/shra20.jpg</
WeatherImage>
*<MaxTemperatureF>68</MaxTemperatureF>
*<MinTemperatureF>51</MinTemperatureF>
*<MaxTemperatureC>20</MaxTemperatureC>
*<MinTemperatureC>11</MinTemperatureC>
*</WeatherData>
- <WeatherData>
*<Day>Friday, October 03, 2008</Day>
*<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
*<MaxTemperatureF>69</MaxTemperatureF>
*<MinTemperatureF>53</MinTemperatureF>
*<MaxTemperatureC>21</MaxTemperatureC>
*<MinTemperatureC>12</MinTemperatureC>
*</WeatherData>
- <WeatherData>
*<Day>Saturday, October 04, 2008</Day>
*<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
*<MaxTemperatureF>66</MaxTemperatureF>
*<MinTemperatureF>51</MinTemperatureF>
*<MaxTemperatureC>19</MaxTemperatureC>
*<MinTemperatureC>11</MinTemperatureC>
*</WeatherData>
- <WeatherData>
*<Day>Sunday, October 05, 2008</Day>
*<WeatherImage>http://forecast.weather.gov/images/wtf/sct.jpg</
WeatherImage>
*<MaxTemperatureF>64</MaxTemperatureF>
*<MinTemperatureF>48</MinTemperatureF>
*<MaxTemperatureC>18</MaxTemperatureC>
*<MinTemperatureC>9</MinTemperatureC>
*</WeatherData>
...
*</Details>
*</WeatherForecasts>

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.CreateNavigator();
* * using (var writer = navigator.AppendChild())
* * {
* * * * _ds.WriteXml(writer, XmlWriteMode.IgnoreSchema);
* * }
* * 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**********************************@m3g2000h sc.googlegroups.com...
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.that.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.that.comwrote:
<casu...@gmail.comwrote in message

news:c3**********************************@m3g2000h sc.googlegroups.com...
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.that.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**********************************@i76g2000 hsf.googlegroups.com...
On Oct 3, 11:28 am, "John Saunders" <n...@dont.do.that.comwrote:
><casu...@gmail.comwrote in message

news:c3**********************************@m3g2000 hsc.googlegroups.com...
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.that.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.that.comwrote:
<casu...@gmail.comwrote in message

news:f2**********************************@i76g2000 hsf.googlegroups.com...


On Oct 3, 11:28 am, "John Saunders" <n...@dont.do.that.comwrote:
<casu...@gmail.comwrote in message
>news:c3**********************************@m3g2000 hsc.googlegroups.com....
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.that.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**********************************@26g2000h sk.googlegroups.com...
On Oct 3, 11:51 am, "John Saunders" <n...@dont.do.that.comwrote:
><casu...@gmail.comwrote in message

news:f2**********************************@i76g200 0hsf.googlegroups.com...


On Oct 3, 11:28 am, "John Saunders" <n...@dont.do.that.comwrote:
<casu...@gmail.comwrote in message
>>news:c3**********************************@m3g200 0hsc.googlegroups.com...
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.that.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
On Oct 3, 2:57*pm, "John Saunders" <n...@dont.do.that.comwrote:
<casu...@gmail.comwrote in message

news:e3**********************************@26g2000h sk.googlegroups.com...


On Oct 3, 11:51 am, "John Saunders" <n...@dont.do.that.comwrote:
<casu...@gmail.comwrote in message
>news:f2**********************************@i76g200 0hsf.googlegroups.com....
On Oct 3, 11:28 am, "John Saunders" <n...@dont.do.that.comwrote:
<casu...@gmail.comwrote in message
>news:c3**********************************@m3g2000 hsc.googlegroups.com...
On Oct 2, 5:12 pm, "John Saunders" <n...@dont.do.that.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- Hide quoted text -

- Show quoted text -
I found that if I create a wsdl file and bind in my code it should
work. I did a POC at microsoft a little while back and remember that
is what sharepoint actually does. Except Sharepoint does it on the
fly. I'm going to implement this but will do it statically and will
let you know. Thanks
Flash sees the code you wrote as <anythingbut when I connect to the
weather service to test out what Flash sees it returns the info fine.
I need to mimic what they are doing.
Oct 3 '08 #11
<ca*****@gmail.comwrote in message
news:31**********************************@k7g2000h sd.googlegroups.com...
Flash sees the code you wrote as <anythingbut when I connect to the
weather service to test out what Flash sees it returns the info fine.
I need to mimic what they are doing.
If you want to mimic what the weather service does, then I suggest you mimic
it with similar data.

--
John Saunders | MVP - Connected System Developer

Oct 4 '08 #12

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

Similar topics

10
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...
7
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...
2
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...
14
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
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...
2
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...
115
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...
1
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...
0
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,...
0
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,...
0
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...
1
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...
0
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...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.