Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- //URL: http://snc.cpl.it:8130/sap/bc/srt/wsdl/flv_10002P111AD1/sdef_url/ZWS_GET_CUSTOMERS_LIST
- //Username: WSDL_SAP
- //Password: CPL,CONCORDIA1
- BasicHttpBinding basicHttpbinding = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly);
- basicHttpbinding.Name = "BasicHttpBinding_YourName";
- basicHttpbinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;
- //basicHttpbinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.;
- EndpointAddress endpointAddress = new EndpointAddress("http://snc.cpl.it:8130/sap/bc/srt/wsdl/flv_10002P111AD1/sdef_url/ZWS_GET_CUSTOMERS_LIST");
- var service = new ServiceReference1.ZWS_GET_CUSTOMERS_LISTClient(basicHttpbinding, endpointAddress);
- service.ClientCredentials.UserName.UserName = "WSDL_SAP";
- service.ClientCredentials.UserName.Password = "CPL,CONCORDIA1";
- var customerList = new ServiceReference1.ZwsGetCustomersList();
- customerList.ICodcliente = "12345";
- customerList.INome = "Test";
- service.ZwsGetCustomersList(customerList);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement