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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:23:49+00:00 2026-06-14T11:23:49+00:00

In short, I try to build a web service consumer with WCF manually ;

  • 0

In short, I try to build a web service consumer with WCF manually; here is the SOAP response:

<s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <AMethodResponse xmlns="http://v_namespace">
        <ReturnObjectHeader>
            <Field5>V5</Field5>
            <Field3>V5</Field3>
            <Field4>V5</Field4>
        </ReturnObjectHeader>
    </AMethodResponse>
</s:Body>

Shortly, below is the related part in my C# code (after that I present the trace results):

[System.ServiceModel.MessageContractAttribute(WrapperName = "AMethodResponse", IsWrapped = true, WrapperNamespace = "http://v_namespace")]
public partial class ReturnObjectWrapper
{
    private ReturnObject _ReturnObjectHeader;

    [System.ServiceModel.MessageBodyMemberAttribute(Name = "ReturnObjectHeader", Namespace = "http://v_namespace")]
    public ReturnObject ReturnObjectHeader
    {
        get { return _ReturnObjectHeader; }
        set { _ReturnObjectHeader = value; }
    }
}

[System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
public partial class ReturnObject
{
    private string _Field5;
    private string _Field3;
    private string _Field4;

    [System.ServiceModel.MessageBodyMemberAttribute(Name = "Field5", Namespace = "http://v_namespace")]
    public string Field5
    {
        get { return _Field5; }
        set { _Field5 = value; }
    }

    [System.ServiceModel.MessageBodyMemberAttribute(Name = "Field3", Namespace = "http://v_namespace")]
    public string Field3
    {
        get { return _Field3; }
        set { _Field3 = value; }
    }

    [System.ServiceModel.MessageBodyMemberAttribute(Name = "Field4", Namespace = "http://v_namespace")]
    public string Field4
    {
        get { return _Field4; }
        set { _Field4 = value; }
    }
}

And here is the trace result:

Description: An unrecognized element was encountered in the XML during deserialization which was ignored.
Element: http://v_namespace:Field5
NOTE: Same for Field4 and 3

What am I doing wrong?

  • 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-14T11:23:50+00:00Added an answer on June 14, 2026 at 11:23 am

    Found on this site; adding ServiceBehavior attribute worked for me, i.e.:

    [ServiceBehavior(Namespace="http://v_namespace")]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to build some sort of a javascript antivirus that would try
i'm using google gadget to write a short script and try to insert to
I build a short url translator engine in Python, and I'm seeing a TON
Long story short, I am trying to build a very bare bones UDP SKB
I try to build an IDT, after sti execution, the code crashes !! I
I try to build some application using hibernate for persistence (my first one). The
Here's the long and short of it. Short first: I had an X Window
The short version: I try to compile MAGMA and get complains about missing symbols:
I have a complicated question, so I will try and keep it as short
I've got a TFS build set up to build and deploy a web application.

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.