I think I have it running on the server side. I used this article.
Server config:
Code:
<object id="AdvertisementWebService" type="Spring.Web.Services.WebServiceExporter, Spring.Web">
<property name="TargetName" value="DistributedAdvertisementWebServiceProxy"/>
<property name="Name" value="AdvertisementWebService"/>
<property name="Namespace" value="http://WebServices"/>
<property name="Description" value="Advertisement Web Service"/>
<property name="Interfaces">
<list>
<value>WebservicesContracts.IAdvertisementWebService</value>
</list>
</property>
<property name="MemberAttributes">
<dictionary>
<entry key="*">
<object type="MasterCSharp.WebServices.CompressionExtensionAttribute, CompressionExtension"/>
</entry>
</dictionary>
</property>
</object>
The only thing left, is to add some configuration to the clientfactory. Something like mentioned above cfr MemberAttributes. But how?
Code:
<object id="AdvertisementWebservice" type="Spring.Web.Services.WebServiceClientFactory, Spring.Services">
<property name="ServiceUrl" value="http://localhost:1332/Webservices/AdvertisementWebService.asmx"></property>
<property name="ServiceInterface" value="WebservicesContracts.IAdvertisementWebService, WebservicesContracts"></property>
</object>