Re: Presentation Page error 80040500

MORIOKA Yasuhiro <[email protected]> Tue, 10 May 2005 23:17:10 +0900
Newsgroups gmane.linux.upnp-sdk.general
Message-ID <[email protected]>
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