Re: WSE 3.0 UsernameOverTransport Problem



Hi,

Do you have the following section in the web.config file ?

<system.web>
<webServices>
<soapServerProtocolFactory
type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<soapExtensionImporterTypes>
<add type="Microsoft.Web.Services3.Description.WseExtensionImporter,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
</soapExtensionImporterTypes>
</webServices>
</system.web>

Usually WSE throws that exception when the WSE extension is not configured
correctly.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

<gramanero-spam@xxxxxxxxx> wrote in message
news:1158692065.155962.127600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Pablo,

Client side: usernameOverTransport
Server side: usernameOverTransport and requireActionHeader

--Scott

Pablo Cibraro [MVP] wrote:
Hi,

Which WSE policies are you using on the client and the service ?

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

<gramanero-spam@xxxxxxxxx> wrote in message
news:1158588656.563084.182580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

I am fairly new to WSE, in general, however I have read several
articles online and believe I have a fairly good grasp of it. I am
working on integrating WSE 3.0 into an web service. The web service is
a very simple web service for the purposes of testing WSE 3.0
UsernameOverTransport.

The problem that I am having is that I am getting the following
exception stack trace on the server side:

Microsoft.Web.Services3.Security.SecurityFault: UsernameToken is
expected but not present in the security header of the incoming
message.
at
Microsoft.Web.Services3.Design.UsernameOverTransportAssertion.ServiceInputFilter.ValidateMessageSecurity(SoapEnvelope
envelope, Security security)
at
Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope
envelope)
at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope
envelope)
at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope
requestEnvelope)
at
Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage
message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
type, HttpContext context, HttpRequest request, HttpResponse response,
Boolean&amp; abortProcessing)

In doing a fair amount of Google searches, it looks like I am not the
only one having this issue. I am curious if anyone has been able to
resolve this issue.

I have verified that the client is in fact sending the Username token
to the web service. In fact, I have verified, based on the stack trace,
the the server side does in fact see a security header, for some reason
it is simply unable to locate the Username token in the security
header. According to the server side log files though, it does exist
prior to processing the message.

Any help would be greatly appreciated.

Thank you!!




.



Relevant Pages

  • WSE 3.0 UsernameOverTransport Problem
    ... I am fairly new to WSE, in general, however I have read several ... working on integrating WSE 3.0 into an web service. ... expected but not present in the security header of the incoming ... the the server side does in fact see a security header, ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: 401 While Accessing Web Service
    ... web service will be vulnerable, so to improve security use the WSE.. ... just converting the project to 2005 and enable wse won't do any good. ... Windows Auth to Anonymous, it works... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: WSE 3.0 UsernameOverTransport Problem
    ... Usually WSE throws that exception when the WSE extension is not configured ... Server side: usernameOverTransport and requireActionHeader ... working on integrating WSE 3.0 into an web service. ... expected but not present in the security header of the incoming ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE 3.0 UsernameOverTransport Problem
    ... Which WSE policies are you using on the client and the service? ... working on integrating WSE 3.0 into an web service. ... expected but not present in the security header of the incoming ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE 3.0 UsernameOverTransport Problem
    ... Server side: usernameOverTransport and requireActionHeader ... Which WSE policies are you using on the client and the service? ... expected but not present in the security header of the incoming ...
    (microsoft.public.dotnet.framework.webservices.enhancements)