consume SOAP web service

48,267

The easiest way is to use .NET's built-in support.

In Visual Studio, right click on your project references and 'Add Service Reference'. Give it the service URL https://www.eway.com.au/gateway/ManagedPaymentService/managedCreditCardPayment.asmx and it will generate a proxy class for you that will do all the work. You can then just e.g.

var client = new eWayServiceReference.managedCreditCardPaymentSoapClient();
client.CreateCustomer(...);

Alternatively you can generate the proxy class from a VS command prompt using svcutil.

Share:
48,267
001
Author by

001

Only questions with complete answers are accepted as solutions.

Updated on July 09, 2022