Solved

creating a new service instance

Posted on 2014-01-14
3
220 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 …
These instructions are based on installing Owncloud on your new raspberry pi connected with a usb HDD. What do you need Part A? A Raspberry Pi, model B. A boot SD card for the Raspberry Pi. A usb HDD An Ethernet cable to connect to the lo…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 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