使用SOAP的Servicestack Authentication名称空间

时间:2015-05-08 11:09:28

标签: .net api soap servicestack

使用SOAPUI向我的ServiceStack API发送身份验证请求时,我收到此错误。

Expecting element 'Authenticate' from namespace 'http://schemas.servicestack.net/types'.. Encountered 'Element'  with name 'Authenticate', namespace 'http://correctnamespace.com/schemas/2015/05/MyAPI/'

这是我的apphost设置:

        SetConfig(new HostConfig
        {
            HandlerFactoryPath = "api",
            DefaultContentType = "application/json",
            WsdlServiceNamespace = "http://correctnamespace.com/schemas/2015/05/MyAPI/",
            DebugMode = false,
            UseHttpsLinks = Core.Config.UserRemoteConfig()
        });

        Plugins.Add(new AuthFeature(
            () => new AuthUserSession(),
            new IAuthProvider[]
            {
                new CustomAuthProvider()
            })
        {
            IncludeAssignRoleServices = false,
            IncludeAuthMetadataProvider = false,
            HtmlRedirect = null
        });

我不明白为什么servicestack期望错误的命名空间,任何人都可以帮助我理解如何将预期的命名空间设置为正确的命名空间吗?

0 个答案:

没有答案