Thanks pablo appreciate the response, I have tried to use the permiter
routing example, but im still getting an exception when it trys to route
"System.InvalidOperationException: Security requirements are not satisfied
because the security header is not present in the incoming message."
in my router I have 2 policies, one for the incomming request and one for
the forwarded request.
I have created my own soaprouter, with some diagnostics, I see it gets
through the constructor and the getrequest but never makes it to
GetForwardRequestPolicy. I believe its getting blocked on the router policy,
but cant seem to figure out why...
public class MessageRouter : SoapHttpRouter
{
public MessageRouter()
: base()
{
EventLog.WriteEntry("router", "constructor",
EventLogEntryType.Information);
}
/// <summary>
/// Returns a WSE policy to be used between the router and the service
/// </summary>
/// <returns></returns>
protected override Policy GetForwardRequestPolicy()
{
EventLog.WriteEntry("router", "forward",
EventLogEntryType.Information);
PolicyConfiguration configuration =
WebServicesConfiguration.PolicyConfiguration;
Policies policies = configuration.GetPolicies();
Policy policy = policies["forward"];
return policy;
}
/// <summary>
/// Returns a WSE policy to be used between the client and the router
/// </summary>
protected override Policy GetRequestPolicy()
{
EventLog.WriteEntry("router", "request",
EventLogEntryType.Information);
// Lookup in the configuration for the policy
PolicyConfiguration configuration =
WebServicesConfiguration.PolicyConfiguration;
Policies policies = configuration.GetPolicies();
Policy policy = policies["request"];
EventLog.WriteEntry("router", "request end",
EventLogEntryType.Information);
return policy;
}
> Sure, you can find some documentation and a good implementation of a Soap
> Router here,
[quoted text clipped - 23 lines]
> >
> > any help would be greatly appreciated
Pablo Cibraro [MVP] - 12 Oct 2006 14:59 GMT
Hi Mike,
Did you take a look to the WSE trace files on the router ?. You will be able
to find more details about the error in those files.
If you do not understand the problem described in the trace, feel free to
post the content here so I can take a look.
Regards,
Pablo.
> Thanks pablo appreciate the response, I have tried to use the permiter
> routing example, but im still getting an exception when it trys to route
[quoted text clipped - 90 lines]
>> >
>> > any help would be greatly appreciated
mike wolf - 12 Oct 2006 17:59 GMT
thanks pablo, I found my problem... via the tracing and the event log and
overwritting some methods just for tracing...
silly mistake, I didnt understand that with in a single policy you can have
mulitple assertions, so in the service you need the assertion for both the
router and the client... the client being the first assertion in the policy...
thanks for the help
> Hi Mike,
>
[quoted text clipped - 100 lines]
> >> >
> >> > any help would be greatly appreciated