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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:55:11+00:00 2026-05-31T17:55:11+00:00

Trying to send a complex type between two systems that have the same code

  • 0

Trying to send a complex type between two systems that have the same code base. They are both aware of the same object that is the data transport medium. However when I pass object on the consumer proxy it appears as an object in the web service namespace instead of the one in the application.

Is there anyway that I can define to use the internal object?

[WebMethod]
public void Run(TransportObject transport)

appears in my application under MyNamespace.Webservice.Transport instead of MyNamespace.Objects

  • 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-05-31T17:55:12+00:00Added an answer on May 31, 2026 at 5:55 pm

    As Henk says sharing of types in WCF is default behavior.

    I will qualify that by expanding on it and demonstrating how to achieve it:

    So rather than have visual studio generate a service reference for you, you can have WCF create the proxy when it executes by using ChannelFactory.

    For example:

    // Create service proxy on the fly
    var factory = new ChannelFactory<IMyServiceContract>("NameOfMyClientEndpointInConfigFile");
    var proxy = factory.CreateChannel();
    
    // Create data contract
    var requestDataContract = new MyRequestType();
    
    // Call service operation.
    MyResponseType responseDataContract = proxy.MyServiceOperation(requestDataContract);
    

    In the above example, IMyServiceContract is your service contract, and MyRequestType and MyResponseType are your data contracts, which you can use by referencing the assembly which the service also references (which defines these types).

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

Sidebar

Related Questions

im trying to send rest api Users.getLoggedInUser i have all the secret session and
i'm trying to send fake keyboard input to an application that's running in a
Background I have two services that need to communicate with each other over a
I've got some OpenGL drawing code that I'm trying to optimize. It's currently testing
I'm trying to send a complex object to my WebMethod in a aspx page
I'm trying to send data to the Controller from the View. I have a
I'm going through my app, trying to clean up some code that sends e-mails.
I'm trying to figure out how to send a complex object through javascript to
I have a problem with a boost::asio::ip::tcp::iostream. I am trying to send about 20
I'm trying to receive and potentially send complex values through TWebBrowser (using TEmbeddedWB) with

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.