Solved

creating a new service instance

Posted on 2014-01-14
3
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

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…
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 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