reference to webservice
-
Hi, I have added a web reference to the web service from the client project. The webservice is called ItemsWebService The webservice has two .asmx files i.e. orders.asmx and employees.asmx from the client I would like to call the ItemsWebService. So that the relevant forms on the client calls the appropriate .asmx file. i.e. the orders form in client calls ItemsWebService.Orders and the employees form on the client calls ItemsWebService.Employees At present when I add a web refernce to this webservice from the client I get the two names i.e. orders and employees. I think I should get just the itemsWebService. Am I right? Thanks
-
Hi, I have added a web reference to the web service from the client project. The webservice is called ItemsWebService The webservice has two .asmx files i.e. orders.asmx and employees.asmx from the client I would like to call the ItemsWebService. So that the relevant forms on the client calls the appropriate .asmx file. i.e. the orders form in client calls ItemsWebService.Orders and the employees form on the client calls ItemsWebService.Employees At present when I add a web refernce to this webservice from the client I get the two names i.e. orders and employees. I think I should get just the itemsWebService. Am I right? Thanks
The webservice creates a reference to each .asmx file within it. You could just create 1 file called MyService.asmx (for example), then each form could reference ItemsWebservice.MyService.whatever rather than distinguishing between the two files.
fmardani wrote:
At present when I add a web refernce to this webservice from the client I get the two names i.e. orders and employees.
This is what you should expect to happen.
ChrisB