Hallo allemaal,
het is alweer een tijdje geleden , maar ik waag me weer aan D8 (eindelijk).
Voor school moet ik een: "windows client applicatie, die ...."
deze client moet kunnen communiceren met een webservice (die volgens mij geschreven is in ASP.net).
De volgende interface heb ik van de server-programmeur gekregen:
De interface:
Code:
/**
* Get a DataSet object of all available products
*/
[WebMethod] public Product GetProducts();
/**
* Get the product with the specified name
*/
[WebMethod] public Product GetProduct(String name);
/**
* Get a DataSet object of all registered customers
*/
[WebMethod] public Customer GetCustomers();
/**
* Get customer with specified name
* @param name The name of the customer to select
* @return The customer
*/
[WebMethod] public Customer GetCustomer(String name);
/**
* Add a new Customer
* @param name The name of the new customer
* @param address The address of the new customer
* @param city The city of the new customer
* @param zipcode The zipcode of the new customer
* @return The number of rows affected, -1 when an error has occured
*/
[WebMethod] public int AddCustomer(String name, String address, String city, String zipcode);
/**
* Delete customer with specified name
* @param name The name of the customer to delete
* @return The number of rows affected, -1 when an error has occured
*/
[WebMethod] public int RemoveCustomer(String name);
/**
* Order a product
* @param cus_id ID of the customer
* @param prod_id ID of the desired product
* @param amount The desired amount of the specified product
* @return The number of rows affected, -1 when an error has occured
*/
[WebMethod] public int OrderProduct(String cusName, String prodName, int amount);
/**
* Get The bill of all the ordered products
* @param cusName The name of the customer
* @return The bill
*/
[WebMethod] public String GetBill(String cusName);
/**
* Checkout en get the bill
* @param cusName The name of the customer
* @return The bill
*/
[WebMethod] public String CheckOut(String cusName);
In java werden er stub-classes gegenereerd of via UDDI, methodes aangeroepen. Hoe moet ik dit in delphi doen?
Ik hoop dat dit duidelijk is, want dit is ook allemaal nieuw voor mij.
Groeten Erik
[edit]
ik heb de downloadversie van delphi 8
- en ik heb wat gelezen over importeren van WSDL-files, maar dat ging over D7 en eerdere versies, waar kan ik dat nu vinden?
[/edit]
Bookmarks