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 8917817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:35:14+00:00 2026-06-15T05:35:14+00:00

My client is using proxy created from WSDL… Is it possible to setup the

  • 0

My client is using proxy created from WSDL… Is it possible to setup the service to send List instead of MyCustomObject[]?

I am using

svcutil /t:metadata /ct:System.Collections.Generic.List`1 localhost:8080/managedApp 

but does not work…

My client are in Visual C++

IDE is Visual Studio 2012 –> cannot add service reference

  • 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-15T05:35:15+00:00Added an answer on June 15, 2026 at 5:35 am

    Ok… at the end I gave up, I just sent the data as array instead of std:list…

    this is how I did it:
    1.- get the metadata from the service using svcutil /t:metadata (NOTE: service has to be running).
    2.- create the proxy wsutil *.wsdl *.xsd
    3.- add proxy files (.h and .c) to my client and use the proxy functions to the service.

    Array are a little bit tricky if you are not familiar with c programming though…

    DataContract:

        [DataContract]
            public class CompositeType
            {
                CompositeType2[] ctListValue;
                bool boolValue;
                string stringValue;
    
                [DataMember]
                public bool BoolValue
                {
                    get { return boolValue; }
                    set { boolValue = value; }
                }
    
                [DataMember]
                public string StringValue
                {
                    get { return stringValue; }
                    set { stringValue = value; }
                }
    
                [DataMember]
                public CompositeType2[] CtListValue
                {
                    get { return ctListValue; }
                    set { ctListValue = value; }
                }
            }
    
            [DataContract]
            public class CompositeType2
            {
                bool boolValue;
                string stringValue;
    
                [DataMember]
                public bool BoolValue
                {
                    get { return boolValue; }
                    set { boolValue = value; }
                }
    
                [DataMember]
                public string StringValue
                {
                    get { return stringValue; }
                    set { stringValue = value; }
                }
            }
    

    and my client side for the calls to array:

    // *** COMPOSITETYPE CALL
        CompositeType * co = new CompositeType();
        co->BoolValue = true;
        co->StringValue = L"Im co";
    
        CompositeType2 co0;
        co0.BoolValue = true;
        co0.StringValue = L"Im co0";
    
        CompositeType2 co1;
        co1.BoolValue = true;
        co1.StringValue = L"Im co1";
    
        CompositeType2 co2;
        co2.BoolValue = true;
        co2.StringValue = L"Im co2";
    
        CompositeType2 ** comType2; // <-- this is my CompositeType2[] I will send to the service
        comType2 = new CompositeType2*[3];
    
        comType2[0] = &co0;
        comType2[1] = &co1;
        comType2[2] = &co2;
    
        co->CtListValue = comType2;
        co->CtListValueCount = 3;
    
        CompositeType* result2;
    
        BasicHttpBinding_IHelloWorldService_SayHelloCompType(
                proxy, co, &result2,
                heap, NULL, 0, NULL, error);
    

    Hope this helps…

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

Sidebar

Related Questions

I am using a .net 2.0 client to create a proxy from a wsdl
I'm create a CXF client proxy using JAXRSClientFactory, from an interface of my RESTful
I am calling a WSDL web service from Python using SOAPpy . The call
I am attempting to consume a WCF web service from a Java client using
Are there any ways to mock a WCF client proxy using Rhino mocks framework
I am writing an SSH client using only bash (as much as possible) and
when I send message as client using quickfix, how can I know if it's
I've generated a web service client using cxf-codegen-plugin, and locally I'm running this code
I'm testing calling a SOAP based service from a .net client app and am
I created and deployed a WCF client (launched from a VSTO Word Addin) on

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.