|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP Guru needed (XML-Flash+ASP)
How can I do it?
I have a bit of idea but searching on the internet is not enough information (or I didnt find it) Any one knows how to Send an XML to ASP form FLASH, the ASP saves it into a XML on the server... If i just could send the XML and from ASP say something like save XML... Would be easy. Thanks!!!!!!!! JimmySlam wrote on 15 mrt 2006 in microsoft.public.inetserver.asp.general:
> ... to Send an XML to ASP form FLASH, ... You cannot "send" anything to ASP, ASP being a platform for serverside languages. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) Sorry for the understanding , it is to an ASP page.
Show quote "Evertjan." <exjxw.hannivo***@interxnl.net> wrote in message news:Xns9787DC489587Deejj99@194.109.133.242... > JimmySlam wrote on 15 mrt 2006 in microsoft.public.inetserver.asp.general: >> ... to Send an XML to ASP form FLASH, ... > > You cannot "send" anything to ASP, > ASP being a platform for serverside languages. > > -- > Evertjan. > The Netherlands. > (Please change the x'es to dots in my emailaddress) JimmySlam wrote on 16 mrt 2006 in
microsoft.public.inetserver.asp.general: > "Evertjan." <exjxw.hannivo***@interxnl.net> wrote in message [please do not toppost on usenet]> news:Xns9787DC489587Deejj99@194.109.133.242... >> JimmySlam wrote on 15 mrt 2006 in >> microsoft.public.inetserver.asp.general: >>> ... to Send an XML to ASP form FLASH, ... >> >> You cannot "send" anything to ASP, >> ASP being a platform for serverside languages. > Sorry for the understanding , it is to an ASP page. MISunderstanding?I repeat: You cannot "send" anything to ASP or an ASP page. However you van send string data to a server, by posting or "querystringing". Both are cliendside actions, not involving ASP. However you can retrieve those stringdata with ASP: request.form() ir request.querystring() [I bet you knew that] -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) Yeah, the only problem is when i receive an XML from flash. Normally says is
a problem with the page... But If I send just variables ,(and I am talking about the values, the strings) works fine. This is the ASP code that I am using with no luck... <% Response.ContentType="text/xml" Dim strXML Dim objXML Set objXML = Server.CreateObject("Microsoft.XMLDOM") strXML = Request.Form %> Do you know where is the problem? (This is just for a XML, when I send variables (values) is different code. Show quote "Evertjan." <exjxw.hannivo***@interxnl.net> wrote in message news:Xns97886D948984Eeejj99@194.109.133.242... > JimmySlam wrote on 16 mrt 2006 in > microsoft.public.inetserver.asp.general: > >> "Evertjan." <exjxw.hannivo***@interxnl.net> wrote in message >> news:Xns9787DC489587Deejj99@194.109.133.242... >>> JimmySlam wrote on 15 mrt 2006 in >>> microsoft.public.inetserver.asp.general: >>>> ... to Send an XML to ASP form FLASH, ... >>> >>> You cannot "send" anything to ASP, >>> ASP being a platform for serverside languages. > > [please do not toppost on usenet] > >> Sorry for the understanding , it is to an ASP page. > > MISunderstanding? > > I repeat: You cannot "send" anything to ASP or an ASP page. > > However you van send string data to a server, by posting or > "querystringing". Both are cliendside actions, not involving ASP. > > However you can retrieve those stringdata with ASP: > request.form() ir request.querystring() > > [I bet you knew that] > > -- > Evertjan. > The Netherlands. > (Please change the x'es to dots in my emailaddress)
Show quote
"JimmySlam" <JimmyS***@hotmail.com> wrote in message Try this:-news:%23wK66KOSGHA.5728@tk2msftngp13.phx.gbl... > Yeah, the only problem is when i receive an XML from flash. Normally says is > a problem with the page... But If I send just variables ,(and I am talking > about the values, the strings) works fine. > > This is the ASP code that I am using with no luck... > > <% > Response.ContentType="text/xml" > > Dim strXML > Dim objXML > > Set objXML = Server.CreateObject("Microsoft.XMLDOM") > strXML = Request.Form > > %> > > Do you know where is the problem? (This is just for a XML, when I send > variables (values) is different code. > Dim strXML Dim objXML Set objXML = Server.CreateObject("Microsoft.XMLDOM") objXML.Load Request The Flash thingy it probably just posting up XML in the body of the Request. I doubt it is using any Mime multipart encoding that is used by Form Posts in a Web Browser. Anthony. I did try ur code and says the same... (firefox)
----------------------------------- The connection was reset The connection to the server was reset while the page was loading. * The site could be temporarily unavailable or too busy. Try again in a few moments. * If you are unable to load any pages, check your computer's network connection. * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. -------------------------- If i use IE says ERROR 500 (internal) Well on the flash im using POST but anyway I check what is sending and it is this: http://www.centralnightclub.com/temp/uploadXML.asp?database1=%3C%3Fxml+version%3D%221%2E0%22%3F%3E%3Cdb+name%3D%22bob%22+date%3D%2213march%22+password%3D%221234%22+sectionsN%3D%221%22%3E%3Csection+id%3D%221%22+name%3D%22intro%22+subsN%3D%222%22+order%3D%221%22+locked%3D%22false%22+visible%3D%22true%22%3E%3Ccontent%3E1%3C%2Fcontent%3E%3Ccontent%3E2%3C%2Fcontent%3E%3C%2Fsection%3E%3Csection+id%3D%222%22+name%3D%22part2%22+subsN%3D%222%22+order%3D%222%22+locked%3D%22false%22+visible%3D%22true%22%3E%3Ccontent%3E3%3C%2Fcontent%3E%3Ccontent%3E4%3C%2Fcontent%3E%3C%2Fsection%3E%3Csection+id%3D%220%22+name%3D%22archive%22+subsN%3D%220%22+order%3D%22100%22+locked%3D%22false%22+visible%3D%22false%22%3E%3Ccontent%3E8%3C%2Fcontent%3E%3Ccontent%3E9%3C%2Fcontent%3E%3C%2Fsection%3E%3Csub+id%3D%221%22+name%3D%22Intro%5FA%22+nextsub%3D%222%22+prevsub%3D%220%22+slidesN%3D%223%22+order%3D%22%22+locked%3D%22false%22+visible%3D%22true%22%3E%3Ccontent%3E1%3C%2Fcontent%3E%3Ccontent%3E2%3C%2Fcontent%3E%3Ccontent%3E3%3C%2Fcontent%3E%3C%2Fsub%3E%3Csub+id%3D%222%22+name%3D%22Intro%5FA%2E2%22+nextsub%3D%222%22+prevsub%3D%221%22+slidesN%3D%222%22+order%3D%22%22+locked%3D%22false%22+visible%3D%22true%22%3E%3Ccontent%3E4%3C%2Fcontent%3E%3Ccontent%3E5%3C%2Fcontent%3E%3C%2Fsub%3E%3Csub+id%3D%223%22+name%3D%22Part2%5FA%22+nextsub%3D%224%22+prevsub%3D%222%22+slidesN%3D%224%22+order%3D%22%22+locked%3D%22false%22+visible%3D%22true%22%3E%3Ccontent%3E6%3C%2Fcontent%3E%3Ccontent%3E7%3C%2Fcontent%3E%3Ccontent%3E8%3C%2Fcontent%3E%3Ccontent%3E9%3C%2Fcontent%3E%3C%2Fsub%3E%3Csub+id%3D%224%22+name%3D%22Part2%5FA%2E2%22+nextsub%3D%223%22+prevsub%3D%225%22+slidesN%3D%222%22+order%3D%22%22+locked%3D%22false%22+visible%3D%22true%22%3E%3Ccontent%3E10%3C%2Fcontent%3E%3Ccontent%3E11%3C%2Fcontent%3E%3C%2Fsub%3E%3Cslide+id%3D%229%22+name%3D%22Slide9%22+title%3D%22Slide9T%22+subtitle%3D%22+%22+template%3D%221%22+text1%3D%22text1%22+text2%3D%22text2%22+file1%3D%22file1%2Ejpg%22+file2%3D%22file2%2Ejpg%22+media1%3D%22+%22+media2%3D%22+%22+xtextsN%3D%220%22+xpicsN%3D%220%22+locked%3D%22false%22+visible%3D%22true%22+color%3D%220%22+%2F%3E%3Cslide+id%3D%221%22+name%3D%22Slide1%2E1%22+title%3D%22Slide1%2E1T%22+subtitle%3D%22+%22+template%3D%221%22+text1%3D%22text1%22+text2%3D%22text2%22+file1%3D%22file1%2Ejpg%22+file2%3D%22file2%2Ejpg%22+media1%3D%22+%22+media2%3D%22+%22+xtextsN%3D%220%22+xpicsN%3D%220%22+locked%3D%22false%22+visible%3D%22true%22+color%3D%220%22+%2F%3E%3Cslide+id%3D%222%22+name%3D%22Slide1%2E2%22+title%3D%22Slide1%2E2T%22+subtitle%3D%22+%22+template%3D%221%22+text1%3D%22text1%22+text2%3D%22text2%22+file1%3D%22file1%2Ejpg%22+file2%3D%22file2%2Ejpg%22+media1%3D%22+%22+media2%3D%22+%22+xtextsN%3D%220%22+xpicsN%3D%220%22+locked%3D%22false%22+visible%3D%22true%22+color%3D%220%22+%2F%3E%3Cslide+id%3D%223%22+name%3D%22Slide1%2E3%22+title%3D%22Slide1%2E3T%22+subtitle%3D%22Slide1%2E3ST%22+template%3D%221%22+text1%3D%22text1%22+text2%3D%22text2%22+file1%3D%22file1%2Ejpg%22+file2%3D%22file2%2Ejpg%22+media1%3D%22+%22+media2%3D%22+%22+xtextsN%3D%220%22+xpicsN%3D%220%22+locked%3D%22false%22+visible%3D%22true%22+color%3D%220%22+%2F%3E%3Cslide+id%3D%224%22+name%3D%22Slide1%2E4%22+title%3D%22Slide1%2E4T%22+subtitle%3D%22+%22+template%3D%221%22+text1%3D%22text1%22+text2%3D%22text2%22+file1%3D%22file1%2Ejpg%22+file2%3D%22file2%2Ejpg%22+media1%3D%22+%22+media2%3D%22+%22+xtextsN%3D%220%22+xpicsN%3D%220%22+locked%3D%22false%22+visible%3D%22true%22+color%3D%220%22+%2F%3E%3Cslide+id%3D%225%22+name%3D%22Slide1%2E5%22+title%3D%22Slide1%2E5T%22+subtitle%3D%22+%22+template%3D%221%22+text1%3D%22text1%22+text2%3D%22text2%22+file1%3D%22file1%2Ejpg%22+file2%3D%22file2%2Ejpg%22+media1%3D%22+%22+media2%3D%22+%22+xtextsN%3D%220%22+xpicsN%3D%220%22+locked%3D%22false%22+visible%3D%22true%22+color%3D%220%22+%2F%3E%3Cslide+id%3D%226%22+name%3D%22Slide1%2E6%22+title%3D%22Slide1%2E6T%22+subtitle%3D%22Slide1%2E6ST%22+template%3D%221%22+text1%3D%22text1%22+text2%3D%22text2%22+file1%3D%22file1%2Ejpg%22+file2%3D%22file2%2Ejpg%22+media1%3D%22+%22+media2%3D%22+%22+xtextsN%3D%223%22+xpicsN%3D%222%22+locked%3D%22false%22+visible%3D%22true%22+color%3D%220%22%3E%3Cxtexts%3Eala%3C%2Fxtexts%3E%3Cxtexts%3Eala2%3C%2Fxtexts%3E%3Cxtexts%3Eala3%3C%2Fxtexts%3E%3Cxpics%3Edfsgdsf%3C%2Fxpics%3E%3Cxpics%3Edfsgdsf2%3C%2Fxpics%3E%3Cxpics%3Edfsgdsf3%3C%2Fxpics%3E%3C%2Fslide%3E%3Cslide+id%3D%227%22+name%3D%22Slide1%2E6%22+title%3D%22Slide2%2E2%22+subtitle%3D%22Slide2%2E2%22+template%3D%221%22+text1%3D%22text1%22+text2%3D%22text2%22+file1%3D%22file1%2Ejpg%22+file2%3D%22file2%2Ejpg%22+media1%3D%22+%22+media2%3D%22+%22+xtextsN%3D%223%22+xpicsN%3D%222%22+locked%3D%22false%22+visible%3D%22true%22+color%3D%220%22%3E%3Cxtexts%3Eala%3C%2Fxtexts%3E%3Cxtexts%3Eala2%3C%2Fxtexts%3E%3Cxtexts%3Eala3%3C%2Fxtexts%3E%3Cxpics%3Edfsgdsf%3C%2Fxpics%3E%3Cxpics%3Edfsgdsf2%3C%2Fxpics%3E%3Cxpics%3Edfsgdsf3%3C%2Fxpics%3E%3C%2Fslide%3E%3Cslide+id%3D%220%22+name%3D%22Slide0%22+title%3D%22Slide0T%22+subtitle%3D%220%22+template%3D%220%22+text1%3D%22text10%22+text2%3D%22text20%22+file1%3D%22file0%2Ejpg%22+file2%3D%22fil0%2Ejpg%22+media1%3D%220%22+media2%3D%220+%22+xtextsN%3D%220%22+xpicsN%3D%220%22+locked%3D%22false%22+visible%3D%22true%22+color%3D%220%22+%2F%3E%3C%2Fdb%3E That is the XML on the URL. Some times if i make it smaller, that doesnt give me that error. but i dont thing is a good idea making it smaller, what would be the point ? Any suggestion??? Thanks for triying.. Show quote "Anthony Jones" <A**@yadayadayada.com> wrote in message news:u2MnaIPSGHA.196@TK2MSFTNGP10.phx.gbl... > > "JimmySlam" <JimmyS***@hotmail.com> wrote in message > news:%23wK66KOSGHA.5728@tk2msftngp13.phx.gbl... >> Yeah, the only problem is when i receive an XML from flash. Normally says > is >> a problem with the page... But If I send just variables ,(and I am >> talking >> about the values, the strings) works fine. >> >> This is the ASP code that I am using with no luck... >> >> <% >> Response.ContentType="text/xml" >> >> Dim strXML >> Dim objXML >> >> Set objXML = Server.CreateObject("Microsoft.XMLDOM") >> strXML = Request.Form >> >> %> >> >> Do you know where is the problem? (This is just for a XML, when I send >> variables (values) is different code. >> > > > Try this:- > > Dim strXML > Dim objXML > > Set objXML = Server.CreateObject("Microsoft.XMLDOM") > objXML.Load Request > > > The Flash thingy it probably just posting up XML in the body of the > Request. > I doubt it is using any Mime multipart encoding that is used by Form Posts > in a Web Browser. > > > Anthony. > > >That is the XML on the URL. Some times if i make it smaller, that doesnt Well I guess this should work:->give me that error. but i dont thing is a good idea making it smaller, what >would be the point ? >Any suggestion??? Thanks for triying.. Dim strXML Dim objXML Set objXML = Server.CreateObject("Microsoft.XMLDOM") objXML.LoadXML Request.QueryString("database1") But the query string isn't where you really want to be putting the data, it's not really a POST more a GET with a very large query string. Is there no mechanism in Flash to perform a proper post where the XML is sent up as the entity body? Anthony. Ok i just realised that if I send the XML (the big and standard one) it says
that error I said before anyway. So Im gonna try to start with a v small XML. So I write ur code on ASP and this error appears... Response object error 'ASP 0185 : 80020003' Missing Default Property /temp/uploadXML.asp, line 0 A default property was not found for the object So i changed a few things after looking on google: Dim strXML Dim objXML Set objXML = Server.CreateObject("Microsoft.XMLDOM") objXML.LoadXML Request.QueryString("database1") response.write(objXML.xml) 'I put ".xml" here because it said error without. objXML.save("haha.xml") Now i have to give writing permissions and test. After that I have to test it with the proper DB. Cheers, i will let you know how things are going, you can learn from this bloody thing :) JimmyShow quote "Anthony Jones" <A**@yadayadayada.com> wrote in message news:%23iC3zrUSGHA.2536@tk2msftngp13.phx.gbl... > >>That is the XML on the URL. Some times if i make it smaller, that doesnt >>give me that error. but i dont thing is a good idea making it smaller, >>what >>would be the point ? > >>Any suggestion??? Thanks for triying.. > > > Well I guess this should work:- > > Dim strXML > Dim objXML > > Set objXML = Server.CreateObject("Microsoft.XMLDOM") > objXML.LoadXML Request.QueryString("database1") > > > But the query string isn't where you really want to be putting the data, > it's not really a POST more a GET with a very large query string. > > Is there no mechanism in Flash to perform a proper post where the XML is > sent up as the entity body? > > Anthony. > > > Nothing I am still blocked, i cant do it.
Show quote :'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'( "JimmySlam" <JimmyS***@hotmail.com> wrote in message news:uHG6MgaSGHA.776@TK2MSFTNGP09.phx.gbl... > Ok i just realised that if I send the XML (the big and standard one) it > says that error I said before anyway. So Im gonna try to start with a v > small XML. > > > > So I write ur code on ASP and this error appears... > > Response object error 'ASP 0185 : 80020003' > > Missing Default Property > > /temp/uploadXML.asp, line 0 > > A default property was not found for the object > > > > So i changed a few things after looking on google: > > > Dim strXML > Dim objXML > > Set objXML = Server.CreateObject("Microsoft.XMLDOM") > objXML.LoadXML Request.QueryString("database1") > > response.write(objXML.xml) 'I put ".xml" here because it said error > without. > > objXML.save("haha.xml") > > > > Now i have to give writing permissions and test. After that I have to test > it with the proper DB. > > Cheers, i will let you know how things are going, you can learn from this > bloody thing > > :) > > > > Jimmy > > > > > > > > > > > > "Anthony Jones" <A**@yadayadayada.com> wrote in message > news:%23iC3zrUSGHA.2536@tk2msftngp13.phx.gbl... >> >>>That is the XML on the URL. Some times if i make it smaller, that doesnt >>>give me that error. but i dont thing is a good idea making it smaller, >>>what >>>would be the point ? >> >>>Any suggestion??? Thanks for triying.. >> >> >> Well I guess this should work:- >> >> Dim strXML >> Dim objXML >> >> Set objXML = Server.CreateObject("Microsoft.XMLDOM") >> objXML.LoadXML Request.QueryString("database1") >> >> >> But the query string isn't where you really want to be putting the data, >> it's not really a POST more a GET with a very large query string. >> >> Is there no mechanism in Flash to perform a proper post where the XML is >> sent up as the entity body? >> >> Anthony. >> >> >> > > |
|||||||||||||||||||||||