問題タブ [ws-trust]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - Web サービスの問題コンテンツ タイプ text/html がバインディング アプリケーション/soap+xml のコンテンツ タイプと一致しない
私は ADFS を使用しており、サーバーの URL はhttps://domainname/adfs/ls です。
次のコード スニペットを使用してソリューションに asmx ファイルを追加することにより、WSTrust トリックを使用して .net アプリケーション (フレームワーク 4.6) でこれを使用した場合
アプリケーションを実行するたびに、行に次のエラーメッセージが表示されます
コンテンツ タイプ text/html。応答メッセージの charset=utf-8 がバインディングのコンテンツ タイプ (application/soap+xml; charset=utf-8) と一致しません。カスタム エンコーダーを使用する場合は、IsContentTypeSupported メソッドが適切に実装されていることを確認してください。応答の最初の 1024 バイトは次のとおりです。
スタックトレース:
サーバー スタック トレース: System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest 要求、HttpWebResponse 応答、HttpChannelFactory で)
1 factory, WebException responseException, ChannelBinding channelBinding) at System.ServiceModel.Channels.HttpChannelFactory
1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan タイムアウト) System.ServiceModel.Channels.RequestChannel.Request(メッセージ メッセージ、TimeSpan タイムアウト) で System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(メッセージ メッセージ、TimeSpan タイムアウト) でSystem.ServiceModel.Dispatcher.RequestChannelBinder.Request (メッセージ メッセージ、TimeSpan タイムアウト) でSystem.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall、ProxyOperationRuntime 操作) System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage メッセージ) で [0] で再スローされた例外: System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage( IMessage reqMsg、System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) の IMessage retMsg) System.ServiceModel.Security.IWSTrustContract.Issue(メッセージ メッセージ) の System.ServiceModel.Security.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr) at System.ServiceModel.Security.WSTrustChannel.Issue(RequestSecurityToken rst) at methodname(parameters) 上記の行でエラーがスローされますエラーをスローする上記の行の methodname(parameters) で Issue(RequestSecurityToken rst)エラーをスローする上記の行の methodname(parameters) で Issue(RequestSecurityToken rst)
このエラーを確認する場所がわかりません。サーバー アクセス adfs url が IIS からホストされていません。
私を助けてください!前もって感謝します
c# - ADFS アカウントがアクティブであることを確認する C#
ADFS アカウントがまだ C# でアクティブかどうかを確認したいと考えています。新しいトークンを発行するために使用したい RST トークンを要求します。これが失敗した場合は、アカウントが無効になっているというメッセージを表示したいと考えています。
問題は、WS-Trust usernamemixed を介して securitytoken を要求し、要求したアカウントを削除すると、securitytoken を持つトークンがアクティブなままになり、新しいトークンを発行できることです。
たとえば、エンドポイント経由で C# から ADFS アカウントがまだアクティブであるかどうかを確認する他の方法はありますか。
java - WS-Trust での名前空間の問題
WS-Trust エンドポイントにリクエストを送信すると、リクエストに WS-Trust namespaceが含まれていますhttp://docs.oasis-open.org/ws-sx/ws-trust/200512
が、WS-Trust エンドポイントは次のようなエラーをスローします。
名前空間 を使用すると問題なく動作しますhttp://docs.oasis-open.org/ws-sx/ws-trust/200512/
が、WS-Trust エンドポイントを変更して、http://docs.oasis-open.org/ws-sx/ws-trust/200512
. 私は自分をチェックwsdl
しましたが、名前空間はhttp://docs.oasis-open.org/ws-sx/ws-trust/200512
.
xml - WS-Trust 1.3の仕様とxsdの違い
WS-Trust 1.4 の仕様とそれを検証する xsd の間には違いがあることに気付きました。
仕様を宣言する名前空間は次のとおりです: http://docs.oasis-open.org/ws-sx/ws-trust/200512
ただし、xsd の名前空間はhttp://docs.oasis-open.org/ws-sx/ws-trust/200512/です。
また、WS-Trust 仕様で形成された xml を検証しようとすると、エラーが発生します。
xsd はhttp://docs.oasis-open.org/ws-sx/ws-trust/200512を読むべきであり、 http : //docs.oasis-open.org/ws-sx/ws を読むべきではないと言っているのは正しいです。-信頼/200512/ ?
参照:
- docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3-os.html