473,756 Members | 3,973 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
11 2895
On Oct 3, 2:57*pm, "John Saunders" <n...@dont.do.t hat.comwrote:
<casu...@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******* *************** ************@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- 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******** *************** ***********@k7g 2000hsd.googleg roups.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
4028
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
2262
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
1774
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
2521
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
3848
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
13324
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
2702
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
9455
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
9271
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,...
1
9838
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9708
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
8709
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...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5140
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...
2
3354
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2665
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.