MSDN > フォーラム ホーム > Windows Communication Foundation > Is there a way to obtain the server binding parameters configuration from the client?
質問する質問する
 

回答済みIs there a way to obtain the server binding parameters configuration from the client?

  • 2009年7月2日 21:29BaronFreeman ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     
    So, here I am in Silverlight, I am creating my binding and I want to set my MaxReceivedMessageSize to the max set supported by the server.

    How do I create a query to get the server to send me that information?

    As a last resort, I'll create a dummy service that only reads the current WCF configuration and passes the parameter information, but I really don't want to do that.

    There must be a better way.

    What do you think?

    TIA,
    -Baron

回答

  • 2009年7月3日 20:48Lars WilhelmsenMVP, モデレータユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     回答済み
    Hi,

     Since Silverlight only supports WS-I Basic Profile 1.0 (plain SOAP 1.1 over HTTP w/o any support for WS-* standards) WS-Policy information is not
     embedded in the WSDL generated for the service. Because of this, you are not able to pull information about the server-side binding configuration.

     So, if you want to be able to dynamically adjust the configuration parameters, you would have to do it out-of-band (a separate configuration metadata service might be a feasible solution).

     --larsw
    Lars Wilhelmsen | Senior Consultant | Miles, Norway | Connected Systems MVP | http://larswilhelmsen.com/

すべての返信