2012-08-25 3 views
0

Spring.NEt frwm - Spring.Web.Services.WebServiceProxyFactory를 사용하여 WCF servise에 대한 프록시 객체를 만듭니다.SOAP MTOM 용 Spring.Web.Services.WebServiceProxyFactory 설정

WCF 서비스는 SOAP MTOM을 사용합니다. 구성은 여기에 있습니다 : Spring.Web.Services.WebServiceProxyFactory 프록시 개체에 대한

<basicHttpBinding> 
    <binding name="MTOM_BINDING" 
       maxReceivedMessageSize="10000000000" 
       receiveTimeout="00:10:00" 
       sendTimeout="00:10:00" 
       maxBufferSize="10000000000" 
       maxBufferPoolSize="524288" 
       bypassProxyOnLocal="true" 
       messageEncoding="Mtom"> 

     <readerQuotas 
        maxArrayLength="10000000000" 
        maxBytesPerRead="10000000000" 
        maxDepth="10000000000" 
        maxNameTableCharCount="10000000000" 
        maxStringContentLength="10000000000"/> 
    </binding> 
    </basicHttpBinding> 

    <service  name="TestService" 
       behaviorConfiguration="DefaultBehavior"> 
    <endpoint address="" 
       binding="basicHttpBinding" 
       bindingConfiguration="MTOM_BINDING" 
       contract="TestService.ITestService" 
       bindingNamespace="http://test.com/TEST" 
       behaviorConfiguration="SimpleWSDLBehavior"/> 
    <endpoint 
       contract="IMetadataExchange" 
       binding="mexHttpBinding" 
       address="mex"/> 
    </service> 

Confuguration :

<object id="testProxy" 
      type="Spring.Web.Services.WebServiceProxyFactory, Spring.Services"> 
    <property name="ServiceUri" value="http://localhost/TestService.svc?wsdl"/> 

    <property name="ServiceInterface" value="TestService.ITestService, TestService"/> 

    <property name="ProductTemplate"> 
     <object> 
     <property name="Timeout" value="2147483646" /> 
     </object> 
    </property> 
    </object> 

나는 Spring.Web.Services.WebServiceProxyFactory에 대해 지정할 수있는 방법을 찾을 수 could't 그 WCF 서비스는 SOAP가 아니라 SOAP MTOM을 사용합니다.

데이터가 binnary가 아닌 텍스트로 직렬화 된 SOAP 메시지를 제외하고 Spring.Web.Services.WebServiceProxyFactory의이 구성이 있기 때문에.

답변