Hi all,
In a silverlight project which I develop, I should begin transaction when the child window loaded.If user clicks OK, all work will be commited, else will be rollback.
I added a wcf-enabled web service fot this purpose,
web.config is like below:
<customBinding>
<binding name="myWebService.customBinding0">
<transactionFlow transactionProtocol="OleTransactions"/>
<httpTransport />
</binding>
</customBinding>
When I add service reference, it adds the config settings at clientConfig side like below.
clientConfig
<customBinding>
<binding name="CustomBinding_myWebService">
<binaryMessageEncoding />
<httpTransport maxReceivedMessageSize="2147" maxBufferSize="2147" />
</binding>
</customBinding>
<endpoint address="http://localhost/myWebService.svc"
binding="customBinding" bindingConfiguration="CustomBinding_myWebService"
contract="myWebServiceReference.myWebService" name="CustomBinding_myWebService" />
<endpoint/>
After I add my methods to the service for transaction, after updating , it removes the binding settings in clientConfig. I can not create the client of service. Because there is no binding to add. How can I solve this problem?
Thanks in advance for the replies..