为SOAP MTOM配置Spring.Web.Services.WebServiceProxyFactory
我使用Spring.NEt frwm-Spring.Web.Services.WebServiceProxyFactory为WCF服务创建代理对象 WCF服务使用SOAP MTOM。配置如下:为SOAP MTOM配置Spring.Web.Services.WebServiceProxyFactory,soap,proxy,spring.net,mtom,Soap,Proxy,Spring.net,Mtom,我使用Spring.NEt frwm-Spring.Web.Services.WebServiceProxyFactory为WCF服务创建代理对象 WCF服务使用SOAP MTOM。配置如下: <basicHttpBinding> <binding name="MTOM_BINDING" maxReceivedMessageSize="10000000000" receiveTimeout="
<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>
Spring.Web.Services.WebServiceProxyFactory代理对象的混淆配置:
<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指定WCF服务使用的不是SOAP而是SOAP MTOM
因为Spring.Web.Services.WebServiceProxyFactory的此配置(数据序列化为文本而非二进制的SOAP mesage除外)。WebServiceProxyFactory用于.asmx Web服务 有关WCF支持,请参阅: