Epson TM-U220 ePOS-Print XML Users Manual - Page 225
How to Use WSDL, Edit the application configuration file.
View all Epson TM-U220 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 225 highlights
Chapter 6 Development Information for Customer Displays How to Use WSDL This section describes how to generate client codes (proxy class) from WSDL by using the tool provided in the development environment. This section uses the following cases as examples: • How to use WSDL (p.225) • Java (p.227) How to use WSDL Item Tool Command Description ServiceModel Metadata Utility Tool (Svcutil.exe) > svcutil.exe epos-display-x.x.x.wsdl epos-display-x.x.x.xsd For details about the Svcutil.exe tool, refer to the following Web site (as of September, 2015): https://msdn.microsoft.com/en-us/library/aa347733.aspx Procedure 1 From the command prompt, execute Svcutil.exe and create the following files: ❏ ePOSDisplay.cs (WCF contract) ❏ output.config (application configuration file) 2 Start Visual Studio and create a new project. (Project example: console application) 3 Add a class file to the project. (File to be added: ePOSDisplay.cs) 4 Add a reference to the project. (Assembly to be added: System.ServiceModel) 5 Edit the application configuration file. (File to be edited: App.config) ❏ Open output.config and copy the element. ❏ Change the end point address in accordance with the printer. 225