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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:48:28+00:00 2026-06-07T00:48:28+00:00

If my contract looks as follows: [OperationContract] void DoSomething(int id, out string moreInfo); this

  • 0

If my contract looks as follows:

[OperationContract]
void DoSomething(int id, out string moreInfo);

this ends up looking like:

string DoSomething(int id);

when you import a web service reference. Is it possible to influence the auto-conversion of the order of the parameters? It was already surprising to find all out-parameters at the beginning of the function signature, but that was still workable, but we’d like void-methods to continue being void-methods. Or is this a SOAP limitation?

  • 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-07T00:48:29+00:00Added an answer on June 7, 2026 at 12:48 am

    It appears to be based on a WSDL limitation:
    http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/48b5992f-f7bd-4b67-8299-514d1780fa9a

    WSDL does not show the original method signature; instead, it shows
    the input parameters as a group and the output parameters as another
    group.

    The limitation of not being able to separate return values from out parameters is in the WSDL. But that would mean the limitation of a void method would be part of svcutil.exe I think. There’s no reason why there can’t be a switch on svcutil to not move the first output to a return value, but that would be a request for a feature on ms connect.

    Rather than void, you could return a simple status int or bool if your issue is consistency, but I’m sure that’s not a perfect answer if you already have dozens of methods.

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

Sidebar

Related Questions

My Service Contract [ServiceContract] public interface ITsdxService { [OperationContract] [WebGet(UriTemplate=/GetTestCostCentre)] CostCentre GetTestCostCentre(); [OperationContract] [WebInvoke(UriTemplate=/SetCostCentre,
I'm generating my data contract with a command line like: svcutil /ct:System.Collections.Generic.List`1 MySchema.xsd In
I have a interface as follows public interface IX { void MethodA(); void MethodB();
You may think this question is like this question asked on StackOverflow earlier. But
I'm currently developing my own AuthorizationManager, it looks something like that: public class MyAuthorizationManager
I've been coming up with a lot of dead ends on this question. Supposedly,
I've been looking for this answer, and all I found was this link ,
I've created a contract-last web-service which is deployed on a Jboss AS on my
Was: Design by contract: predict methods needed, discipline yourself and deal with code that
I am trying to write contract tests for some widely used interfaces: Along the

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.