Solved

creating a new service instance

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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

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 …
The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

939 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now