469,920 Members | 2,457 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,920 developers. It's quick & easy.

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 2680
<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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Shaine Fisher | last post: by
14 posts views Thread by Nick Z. | last post: by
3 posts views Thread by Datatable Dataset Datagrid help | last post: by
115 posts views Thread by post2google | last post: by
1 post views Thread by donradii | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.