Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8078671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:52:16+00:00 2026-06-05T15:52:16+00:00

I have define the following SCPD document for my UPnP device: <?xml version=1.0?> <scpd

  • 0

I have define the following SCPD document for my UPnP device:

<?xml version="1.0"?>
<scpd xmlns="urn:schemas-upnp-org:service-1-0" >
    <specVersion>
    <major>1</major>
    <minor>0</minor>
    </specVersion>
    <actionList>
    <action>
        <name>Echo</name>
        <argumentList>
        <argument>
            <name>InText</name>
            <relatedStateVariable>Text</relatedStateVariable>
            <direction>in</direction>
        </argument>
        <argument>
            <name>ReturnText</name>
            <relatedStateVariable>Text</relatedStateVariable>
            <direction>out</direction>
        </argument>
        </argumentList>
    </action>
    </actionList>
    <serviceStateTable>
    <stateVariable sendEvents="no">
        <name>Text</name>
        <dataType>string</dataType>
    </stateVariable>
    </serviceStateTable>
</scpd>

I registered my UPnP device too. I also able to retrieve my UPnPDevice. How am I going to invoke the echo action as defined in SCPD document?

The code to invoke action should be something like:

var o: IUPnPDeviceFinder;
    d: IUPnPDevice;
    s: IUPnPService;
    E: IEnumVARIANT;
    K: OleVariant;
    iFetched: Cardinal;
    V1, V2: OleVariant;
    r: HRESULT;
begin
  o := CoUPnPDeviceFinder.Create;
  d := o.FindByUDN('uuid:a6d332da-f8ce-43ce-8210-79eacd4231c6');

  E := d.Services._NewEnum as IEnumVARIANT;
  E.Reset;
  CheckOSError(E.Next(1, K, iFetched));

  s := IDispatch(K) as IUPnPService;

  r := s.InvokeAction('Echo', v1, v2);
  ShowMessage(v2);
end;

How to form v1 and v2 parameters for InvokeAction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:52:17+00:00Added an answer on June 5, 2026 at 3:52 pm

    According to MSDN Docs you should pass arguments as a Variant Array. In Delphi you can use VarArrayOf or VarArrayCreate function

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following items (define itemslist (list 'a1 'b2 'c3 (list 'z1 'z2)
I have the following class #ifndef Container_H #define Container_H #include <iostream> using namespace std;
I have the following code snippet: #ifdef DO_LOG #define log(p) record(p) #else #define log(p)
If I have the following: /* * example.h */ #ifndef EXAMPLE #define EXAMPLE #include
I have the following code: #include <stdlib.h> #include <stdio.h> #include <pthread.h> #define NUM_THREADS 100
in header file I have defined the following function #ifndef OS_H #define OS_H #include
I have a spring beans configuration file where I define the following jackson classes
I have a class FourByFourBoard that extends GameBoard . I define the following fields:
I'm working on a project where I have code like the following: #define NAME()
I would like to define the following layout (which is currently an xml file)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.