1
Answer

synchronize a SQL Server database with its remote client databases

Photo of Farooque Ali

Farooque Ali

12y
2.4k
1

Hi,

Am new to web services, Can anyone help me for the below requirement.

i want to create one web service and window service for download and upload the database from server
and mutiple client machines in dotnet

I know the concepts but dont know how to write the code and functions, Can anyone please help me to resolve this. Expecting your reply

Answers (1)

1
Photo of M B
NA 51 4.1k 8y
Code Here :-
 
BasicHttpsBinding myBinding = new BasicHttpsBinding();
myBinding.Name = "CustomerLinkV2Soap";
myBinding.Security.Mode = BasicHttpsSecurityMode.Transport;
myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;

// Endpoint Address defining the asmx Service to be called.
EndpointAddress endPointAddress = new EndpointAddress(@"Webservice URL");

// Call to the Web Service using the Binding and End Point Address.
CustomerLinkV2SoapClient myClient = new CustomerLinkV2SoapClient(myBinding, endPointAddress);
// iATSCustomerLinkUS.CustomerLinkV2SoapClient myC = new iATSCustomerLinkUS.CustomerLinkV2SoapClient(myBinding, endPointAddress);
localContext.TracingService.Trace("Process Step 4");

XML response = myClient.CreateCreditCardCustomerCode(parameter1,parameter2,parameter3,parameter4);

0
Photo of Nilesh Shah
NA 22.3k 215.1k 8y
always post your code snippet or upload source code for someone to help you