Microsoft Developer Network > 포럼 홈 > 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일 목요일 오후 9: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일 금요일 오후 8: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/

모든 응답

  • 2009년 7월 3일 금요일 오후 8: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/
  • 2009년 7월 7일 화요일 오전 12:39BaronFreeman 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hey Lars,

    Thanks a bunch. I thought that might be the case, but I wanted to be sure.

    -Baron