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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:22:13+00:00 2026-05-25T20:22:13+00:00

I have a WCF service based on basicHTTPBinding. I am calling this service from

  • 0

I have a WCF service based on basicHTTPBinding. I am calling this service from Delphi 7 and .NET form. The D7 client is able to successfully call the Operation that has primitive input and output type. However, when an operation with complex type is called, the web service receives the complex type as NULL. .Net client is working fine. Here hare the Request headers retrieved from Fiddler.

Delphi client

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SOAP-ENV:Body>

<GetDataUsingDataContract xmlns="http://tempuri.org/">

<composite xmlns="http://schemas.datacontract.org/2004/07/DelphiService2">

<BoolValue>true</BoolValue>

<StringValue>Test</StringValue>

</composite>

</GetDataUsingDataContract>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

.Net Client

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>

<GetDataUsingDataContract xmlns="http://tempuri.org/">

<composite xmlns:a="http://schemas.datacontract.org/2004/07/DelphiService2" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

<a:BoolValue>true</a:BoolValue>
<a:StringValue>test</a:StringValue>

</composite>

</GetDataUsingDataContract>

</s:Body>

</s:Envelope>
  • 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-25T20:22:14+00:00Added an answer on May 25, 2026 at 8:22 pm

    Your issue is caused by the Delphi client putting the composite element being defined in the “http://tempuri.org/” XML namespace instead of the “http://schemas.datacontract.org/2004/07/DelphiService2” namespace. The composite, BoolValue & StringValue elements all need to be defined in the “http://schemas.datacontract.org/2004/07/DelphiService2” XML namespace (prefixed with the namespace alias “a:” in this case).

    One way to solve this issue if the Delphi client serializer can’t be tweaked is to replace the WCF supplied default namespaces of “http://tempuri.org/” and “http://schemas.datacontract.org/2004/07/DelphiService2” with one you define yourself. Tweak the service contract to conform to the changes outlined in this post and also change the DataContracts to match the new XML namespace. This way all the service defined operations and objects will be in the same XML namespace.

    [DataContract(Namespace="http://YourNamespace/2011/09/DelphiService2")]
    public class composite
    {
        public bool BoolValue {get; set;}
        public string StringValue {get; set;}
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service that I have to reference from a .net 2.0
I have simple WCF Service Application (based on this tutorial : Getting Started ).
I have simple WCF Service Application (based on this tutorial http://msdn.microsoft.com/en-us/library/ms734712.aspx ). Is it
I have a WCF based service that I use to expose AJAX functionality. Sometimes
I have a self hosted TCP based WCF service. I am now building a
I have the following code in WCF service to throw a custom fault based
I have hosted my WCF windows service on WINDOWS 7 OS and have client
I have a self-hosted WCF REST service based on the WebHttpBinding. One of the
When calling a WCF service from Silverlight that works for smaller parameters, but fails
I have a silverlight application which fetches data from a WCF Service hosted under

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.