Solved

creating a new service instance

Posted on 2014-01-14
3
217 Views
Last Modified: 2014-02-13
Hi,

  I am referring to the example below to create a new web service.

http://support.microsoft.com/kb/308359

In the section,
4.Create an instance of the proxy object that was created. Place the following code in the function called Main:
localhost.Service1 myMathService = new localhost.Service1();

I do not understand why the type of myMathService is Service"1" and not Service?
Why is this numbered?

Thanks
0
Comment
Question by:LuckyLucks
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
Mahesh Bhutkar earned 500 total points
ID: 39781472
In the step 4
localhost.Service1 myMathService = new localhost.Service1();

myMathService is an instance of the proxy object localhost.Service1.

Note myMathService is not a type here, it's just instance variable.
0
 

Author Comment

by:LuckyLucks
ID: 39786937
Where was the "proxy object" Service1 defined as such. There is no reference to it in this article and any mention of its name as Sevice1.

Please note I am not confused between type and variable instantiation.
0
 

Author Comment

by:LuckyLucks
ID: 39856503
I have allocated points though thats not exactly the answer I was looking for.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For some reason Google Apps has decided to reserve 'www' for your new domain which results in an error when trying to map the web address 'www' to a certain site in your Google Sites. The error is 'this address is already being used' and after some …
New Relic recently released its Synthetics product that allows for the creation of performance monitors that periodically test a site's performance. If you wish to test an interactive workflow New Relic employs Selenium WebDriverJS to run those test…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question