Solved

creating a new service instance

Posted on 2014-01-14
3
214 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
Comment Utility
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
Comment Utility
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
Comment Utility
I have allocated points though thats not exactly the answer I was looking for.
0

Join & Write a Comment

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…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

15 Experts available now in Live!

Get 1:1 Help Now