Re: Presentation Page error 80040500
"Nektarios K. Papadopoulos" <[email protected]> Thu, 24 May 2007 11:21:44 +0300
| Newsgroups | gmane.linux.upnp-sdk.general |
|---|---|
| Message-ID | <[email protected]> |
Your solution was posted 2 years ago. Finally, it found its way into the project thanks to geekears who found your post in the archives and reported it [1] to this project successor pupnp [2]. [1]http://sourceforge.net/forum/message.php?msg_id=4327043 [2]http://sourceforge.net/projects/pupnp MORIOKA Yasuhiro wrote: > The last comment about this problem was posted 2 years ago. > Finally, I think that I found the solution. > > WindowsXP UPnP Control Point API assumes that > all "in" arguments MUST appear in argumentList of UPnP action ahead > rather than all "out" arguments, > in the service description. It is not stated clearly in UPnP 1.0 Design > Architecture. > It may be a "Microsoft spec". > > But, in the service descriptions of tvdevice sample, > all "out" arguments appear in argumentList of UPnP action ahead rather > than all "in" arguments. > That is the problem. > > You should fix each UPnP action declaration > in the service descriptions(tvcontrolSCPD.xml and tvpictureSCPD.xml): > -- BEFORE --------------------------------------- >> <action> >> <name>SetChannel</name> >> <argumentList> >> >> <argument> >> <name>NewChannel</name> >> <retval /> >> <relatedStateVariable>Channel</relatedStateVariable> >> <direction>out</direction> >> </argument> >> >> <argument> >> <name>Channel</name> >> <relatedStateVariable>Channel</relatedStateVariable> >> <direction>in</direction> >> </argument> >> </argumentList> >> </action> > -- AFTER --------------------------------------- >> <action> >> <name>SetChannel</name> >> <argumentList> >> >> <argument> >> <name>Channel</name> >> <relatedStateVariable>Channel</relatedStateVariable> >> <direction>in</direction> >> </argument> > > >> <argument> >> <name>NewChannel</name> >> <retval /> >> <relatedStateVariable>Channel</relatedStateVariable> >> <direction>out</direction> >> </argument> >> </argumentList> >> </action> > --------------------------------------------- > > Of course, WindowsXP+IE6 supports calling UPnP actions with return > parameters. > You don't have problems with presentation page, > and you don't modify the source code of tvdevice sample application. > > You should modify the service description files only. > > Sorry, for my poor English. > Yasuhiro Morioka > [email protected] > > David Zufferey wrote: > >> I have find why the tvdevice presentation page make the error 80040500 >> when we load this page with internet explorer. IE don't support >> actions with return parameters. >> >> Example action PowerOn on tvdeviceSCPD.xml >> >> <action> >> <name>PowerOn</name> >> <argumentList> >> <argument> >> <retval /> >> <name>Power</name> >> <relatedStateVariable>Power</relatedStateVariable> >> <direction>out</direction> >> </argument> >> </argumentList> >> </action> >> >> Not supported !!! >> >> But, if you modify all actions with return parameters like this >> >> <action> >> <name>PowerOn</name> >> </action> >> you don't have problems with presentation page, and you don't modify >> the source code of tvdevice application. I think it is a problem >> inside Windows XP or IE 6. >> >> good programming.... >> >> >> >> >> >> Zufferey David >> Ing. Elec. dipl. HES >> ____________________________________ >> >> HEVs (University of Applied Sciences Valais) >> GC Infotronique >> Rte du Rawyl 47 >> CH-1950 Sion 2 >> >> Tel : +41 27 606 8722 >> Fax : +41 27 606 8715 >> E-mail : [email protected] >> ____________________________________ >> >> >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: eBay >> Great deals on office technology -- on eBay now! Click here: >> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 >> _______________________________________________ >> UPnP-SDK-discuss mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/upnp-sdk-discuss > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > UPnP-SDK-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/upnp-sdk-discuss > -- ______________________________________________________________ Nektarios K. Papadopoulos Senior Engineer Software Engineering Group inAccess Networks 95A Pentelis Avenue. Tel : +30-210-6837640 152 34 Halandri Athens Fax : +30-210-6899504 ______________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/