Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

SOAP headers are not supported by the None MessageVersion.

 
 
Thread Tools Display Modes
Old 02-29-2008   #1 (permalink)
Newbie


  sheir is offline

SOAP headers are not supported by the None MessageVersion.

stephane.maillot@cactuscommerce.com

Hi,
I am very frustrated and cannot seem to figure out a problem.
I created a service (.svc) and when I try to browse it in IIS, I get the following error:

Operation 'ValidateUser' in contract 'ILoginService' uses a MessageContract that has SOAP headers. SOAP headers are not supported by the None MessageVersion.

I have no clue what is going on.

********************
[ServiceContract(
Namespace = "http://schemas.blab.blab",
Name = "ILoginService",
SessionMode = SessionMode.Allowed)]
public interface ILoginService
{
[FaultContract(typeof(DefaultFaultContract))]
[FaultContract(typeof(NullArgumentFaultContract))]
[OperationContract(IsTerminating = false,
IsInitiating = true,
IsOneWay = false,
AsyncPattern = false,
Action = "*",
ReplyAction = "*")]
LoginResponse ValidateUser(LoginRequest request);
}//ILoginService
********************
[MessageContract(WrapperName = "LoginRequest",
WrapperNamespace = "http://schemas.blab.blab")]
public class LoginRequest
{
#region Data Members
private CallingContext _messageContext = new CallingContext();
private LoginDetails _details = new LoginDetails();
#endregion//Data Members
#region Constructors
public LoginRequest()
{
}
#endregion//Constructors

#region Public Properties
[MessageHeader()]
public CallingContext MessageContext // defined as DataContract
{
get { return _messageContext; }
set { _messageContext = value; }
}
[MessageBodyMember()]
public LoginDetails LoginDetails // defined as DataContract
{
get { return this._details; }
set { this._details = value; }
}
#endregion//Public Properties
}//class LoginRequest

********************
[MessageContract(WrapperName = "LoginResponse",
WrapperNamespace = "http://schemas.blab.blab")]
public class LoginResponse
{
#region Data Members
private bool _isValid;
#endregion//Data Members
#region Constructors
public LoginResponse()
{
}
#endregion//Constructors
#region Public Properties
[MessageBodyMember()]
public bool IsValid
{
get { return this._isValid; }
set { this._isValid = value; }
}
#endregion//Public Properties
}//class LoginResponse
********************
in the .svc project web.config I have ...
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="blab.blab.WCF.ServiceImplementation.LoginService_Behavior">
<!-- To receive exception details in faults for debugging purposes, set the value below to true.
Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="LoginServiceBinding"
closeTimeout="00:10:00"
openTimeout="00:10:00"
receiveTimeout="00:10:00"
sendTimeout="00:10:00">
<readerQuotas maxDepth="32"
maxStringContentLength="8192"
maxArrayLength="16384"
maxBytesPerRead="4096"
maxNameTableCharCount="16384" />
</binding>
</wsHttpBinding>
</bindings>
<services>
<service
behaviorConfiguration="blab.blab.WCF.ServiceImplementation.LoginService_Behavior"
name="blab.blab.WCF.ServiceImplementation.LoginService">
<!-- Service Endpoints -->
<endpoint address=""
binding="wsHttpBinding"
bindingConfiguration="LoginServiceBinding"
name="ILoginService"
bindingNamespace="http://schemas.blab.blab"
contract="blab.blab.WCF.ServiceContracts.ILoginService"/>
</service>
</services>
</system.serviceModel>


********************

Can anyone tell me how to fix that error? As I have no clue. Is it an IIS issue, a web.config issue??
Using VS2008 and the projects are set to .NET 3.0 Framework.
Solution builds success.
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
SOAP webclient Neil Chambers PowerShell 5 10-11-2007 04:40 AM
no DX 10 supported driver on first DX10 supported card zaxon Vista General 17 12-05-2006 09:53 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50