0

私は WSDL を持っており、すべての人がそのすべてのメソッドを表示できないようにするアクセス許可を追加したいと考えています。

     <wsdl:types>
    ...
  </wsdl:types>

  <wsdl:message>
    ...
  </wsdl:message>

  <wsdl:portType name="countrySoap">
     <wsdl:operation name="GetCountryByCountryCode">
         <wsdl:documentation>Get country name by country code</wsdl:documentation>
         <wsdl:input message="tns:GetCountryByCountryCodeSoapIn" />
         <wsdl:output message="tns:GetCountryByCountryCodeSoapOut" />
     </wsdl:operation>
    <wsdl:operation name="GetISD">
        <wsdl:documentation>Get International Dialing Code </wsdl:documentation>
        <wsdl:input message="tns:GetISDSoapIn" />
        <wsdl:output message="tns:GetISDSoapOut" />
    </wsdl:operation>
    ...
  </wsdl:portType>

....

ここで、WSDL のこの部分へのアクセスを制限したいと思います。

<wsdl:operation name="GetISD">
    <wsdl:documentation>Get International Dialing Code </wsdl:documentation>
    <wsdl:input message="tns:GetISDSoapIn" />
    <wsdl:output message="tns:GetISDSoapOut" />
</wsdl:operation>

意味: クライアント X にはこのメソッドを表示する役割が必要ですが、クライアント Y にはこのメソッドを表示する役割がありませんか?

xsl 言語を使用して .xslt ファイルでこの問題を使用するにはどうすればよいですか?

4

1 に答える 1

0
  • Mule では、ユーザー権限に関する情報を XSL に渡すmulexml:context-propertyために使用します。
  • XSL では、条件処理プリミティブwsdl:operationを使用して、ユーザー権限情報に基づいて要素の出力を制御します。

もちろん、ユーザー権限に基づいて WSDL を異なる方法でレンダリングすることで、問題の半分は解決されます。また、許可されていない SOAP 要求を拒否する必要もあります。

于 2013-01-30T18:05:18.797 に答える