Generate your SOAP client faster and more ergonomic than by Visual Studio build-in generator
Generate your SOAP client faster and more ergonomic than by Visual Studio build-in generator.
Follow those steps:
Add your service as usual:
thru Solution Explorer -> Connected Services -> Add Connected Service
thru Solution Explorer -> References -> Add Service Reference
Insert required fields like address and/or username, password
Wait as long as you will never have to wait again
When your service is added properly you can right click on you project name (with C# icon on the left)
If you have RedSOAPClient extension installed you should see "Update Service Reference by Redspresso"
In next dialog you have to select which service you want to refresh by double click
Insert one more time address, username and password (it will be save for next use)
Insert namespace which will be used to generate new files (client)
Click update, wait short period of time and include two new files (main directory) to project
To initialize your client object simply use same code as before with build-in generator
var myService = new MySOAPServiceClient(url, username, password, maxsize, timeout);
You can skip last four parameters if you need/want to.
Additionally you can set GzipRequest and GzipResponse to true if you want to use gzip compression through http.
If you dont know your "MySOAPServiceClient" it will be the same as your new file (not ends with "Reference")