Re: autoIssueSecurityContextToken SoapActor

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Sidd (ElCid_at_hotmail.com)
Date: 03/25/05


Date: Thu, 24 Mar 2005 23:39:07 -0800

Hi Thomas,

    I am assuming that you are using a SoapService to accomplish this? Have
you tried inheriting your service from SecurityContextTokenService rather
than SoapService?

Thanks,

Sidd [MSFT]

"Thomas S. Trias" <ThomasSTrias@discussions.microsoft.com> wrote in message
news:5AFA358D-10D9-4261-A9AF-4AD03DA0A3B2@microsoft.com...
> I tried using the largely undocumented "type" attribute on the
> autoIssueSecurityContextToken:
>
> <autoIssueSecurityContextToken enabled="true"
> type="JSLA.CustomSCTService, CustomSCTService" />
>
> However, I can't seem to figure out how to setup the SoapActor for my
custom
> service; setting the SoapActorAttribute doesn't seem to do anything, and
> neither does shadowing the Actor property. Furthermore, I added the
> following code to my service:
>
> Public Sub New()
> Throw New ApplicationException("Here")
> End Sub
>
> and I am still getting the following fault:
>
> <soap:Fault>
> <faultcode
>
xmlns:code="http://schemas.xmlsoap.org/ws/2004/03/addressing">code:Destinati
onUnreachable</faultcode>
> <faultstring>Microsoft.Web.Services2.Addressing.AddressingFault:
> Destination Unreachable ---> System.Exception: WSE816: The <To> header
must
> match the value of an incoming message's HTTP Request Url if the soap
> receiver does not have an actor name. The <To> header received contained
> "http://external/MyService.asmx" while the HTTP Request Url was
> "http://localhost/MyService.asmx".
> --- End of inner exception stack trace ---
> at
>
Microsoft.Web.Services2.WebServicesExtension.AutoIssueSecurityContextToken(S
oapEnvelope request)
> at
>
Microsoft.Web.Services2.WebServicesExtension.BeforeDeserializeServer(SoapSer
verMessage message)</faultstring>
> <faultactor>http://external/MyService.asmx>
> </soap:Fault>
>
> So, my custom service class is never even instantiated!
>
> Now I'm really out of ideas...
>
> Thomas S. Trias
> Senior Developer
> Afni Insurance Services
>
http://www.afniinc.com/
>