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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:27:31+00:00 2026-05-30T12:27:31+00:00

I am using WCF to connect to an Apache web service. The request fails

  • 0

I am using WCF to connect to an Apache web service. The request fails because the server cannot parse the header information. I have spoken to the provider of the service and they have indicated that the namespaces are in the wrong scope. They should be on the envelope not the body. How do I change this in .NET please?

My request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
   <wsCaller>
     <appVersion></appVersion> 
   </wsCaller>
  </s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <addSvcRecord xmlns="http://ws.dsr.careur.com">
    <svcRecord xmlns="">
      <vin>JMZCR19F200100059</vin> 
      <number>10</number> 
      <date>2012-02-22</date> 
      <mileage>38500</mileage> 
      <mileageType>KILOMETERS</mileageType> 
      <invokeErrorPage>false</invokeErrorPage> 
     </svcRecord>
   </addSvcRecord>
</s:Body>
</s:Envelope>

Should look more like:

<?xml version="1.0" encoding="UTF-8" ?> 
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ws.dsr.careur.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ws="http://ws.dsr.careur.com" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header>
     <ws:wsCaller>
       <appVersion></appVersion> 
     </ws:wsCaller>
   </SOAP-ENV:Header>
 <ns0:Body>
   <ns1:getSvcRecords>
     <vin>JMZDE14K280138989</vin> 
   </ns1:getSvcRecords>
 </ns0:Body>
</SOAP-ENV: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-30T12:27:32+00:00Added an answer on May 30, 2026 at 12:27 pm

    The problem isn’t that the namespace is at the wrong scope, its that the header isn’t in the namespace (which isn’t quite the same thing). You need to put your header in the namespace in the config file

    <headers> 
      <ws:wsCaller xmlns:ws="http://ws.dsr.careur.com">
         <appVersion>0.1</appVersion>
      </ws:wsCaller> 
    </headers> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple chat program using WCF service. One service use for server and
I'm using WCF to connect to a remote web service (asmx) for testing at
I have been trying to connect to some web services using WCF but I
I have a WCF Service running SOAP and allowing Flex / Flash to connect
I have a WCF service hosted in IIS 7 using HTTPS. When I browse
I've got a WCF service and want to connect to it using a TCP
I have a WCF service that is using a custom ServiceAuthorizationManager . The custom
I have a generic proof of concept WCF service that is using forms authentication
I have created a WCF web service in C# deployed in a Windows Service
I'm trying to consuming a client's web service using WCF. The client's web service

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.