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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:23:49+00:00 2026-06-09T19:23:49+00:00

I have a service stack service with the following request and response classes in

  • 0

I have a service stack service with the following request and response classes in the same namespace

public class GetContactMasterData
{

}

public class GetContactMasterDataResponse
{
    public IdDescription[] EntityTypes { get; set; }
    public IdDescription[] NameTypes { get; set; }
    public IdDescription[] AddressTypes { get; set; }
    public ResponseStatus MyResponseStatus { get; set; }
}

I tested the service successfully using soapUI. This is the response

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">    
   <s:Body>
      <GetContactMasterDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
         <AddressTypes>
            <IdDescription>
               <Description>Home</Description>
               <Id>1</Id>
            </IdDescription>
            ...
         </AddressTypes>
        <EntityTypes>
           <IdDescription>
              <Description>Corporation</Description>
              <Id>1</Id>
           </IdDescription>
           ... 
        </EntityTypes>
        <MyResponseStatus i:nil="true" />
        <NameTypes>
           <IdDescription>
              <Id>4</Id>
              <Description>Other</Description>
           </IdDescription>
           ...
        </NameTypes>
      </GetContactMasterDataResponse>
   </s:Body>
</s:Envelope>

When I create a console app to test this service the service reference generates a proxy object. This is how intellisense guides you to call the GetContactMasterData method

GetContactMasterData(out IdDescription[], out ResponseStatus myResponseStatus, out IdDescription[] NameTypes):IdDescription[] addressTypes

My question is:
Why do EntityTypes and NameTypes become out parameters vs addressTypes becomes the return type of the method?

  • 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-09T19:23:50+00:00Added an answer on June 9, 2026 at 7:23 pm

    Included in ServiceStack’s SOAP Support wiki are limitations to be mindful of with SOAP:

    Since VS.NET’s Add Service Reference is optimized for consuming .asmx
    or WCF RPC method calls it doesn’t properly support multiple return
    values (e.g. when you also want a ResponseStatus property) where it
    will generate an ugly proxy API complete with out parameters.

    If you want to ensure a pretty proxy is generated you should only have
    1 first-level property which contains all the data you want to return.

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

Sidebar

Related Questions

I currently have service classes that look something like this public class UserService :
I have the following servlet code public void doPost(HttpServletRequest request, HttpServletResponse response){ Backup bup
I have a service: [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)] public class PremieraInteraction :
In a Web Service context, I have the following class which inherit from the
I have a service request form. A series of textboxes (single and multi line),
have created REST service using servicestack and in post request I have return object
I have an applet that makes a SOAP request to a web service. It
I have deployed WCF service on service on server and facing following exception. System.Security.SecurityException:
I have the following problem: I have a multithreaded server-side application, where every request
I have a stack of WCF services installed on a Windows 2008 R2 Standard

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.