Click here to Skip to main content
15,921,660 members
Home / Discussions / C#
   

C#

 
AnswerRe: Smart client template solution ??? Pin
LongRange.Shooter23-Jun-04 4:12
LongRange.Shooter23-Jun-04 4:12 
GeneralFile Path's question Pin
jzb23-Jun-04 0:32
jzb23-Jun-04 0:32 
GeneralRe: File Path's question Pin
Dave Kreskowiak23-Jun-04 4:26
mveDave Kreskowiak23-Jun-04 4:26 
GeneralRe: File Path's question Pin
Heath Stewart23-Jun-04 5:04
protectorHeath Stewart23-Jun-04 5:04 
GeneralRe: File Path's question Pin
Heath Stewart23-Jun-04 5:12
protectorHeath Stewart23-Jun-04 5:12 
GeneralMenu and FormBorderStyle = None Pin
23-Jun-04 0:32
suss23-Jun-04 0:32 
QuestionCan we define constructor with arguments in web service. Pin
agarwalv23-Jun-04 0:23
agarwalv23-Jun-04 0:23 
AnswerRe: Can we define constructor with arguments in web service. Pin
Heath Stewart23-Jun-04 4:47
protectorHeath Stewart23-Jun-04 4:47 
Sure you can define such a constructor, but it won't make a difference. The XML Web Service specifications don't describe activation but remote method calls. ASP.NET - having to instantiate the WebService derivative when calls are made - has to instantiate objects because that's how the .NET Framework works. XML-RPC - a predacessor to XML Web Services and there are now WSDL/SOAP-compliant libraries - simply allows you to call methods with an object at all. For that matter, so does XML Web Services.

Object activation is a feature of the hosting framework - not of XML Web Services.

Even when you instantiate your client proxy for the XML Web Service, the object on the server is not created. It is created on the first call to its methods with a particular lifetime. It's when you make calls that any remote calls are made.

In fact, find yourself a packet analyzer (like the widely popular WinPcap with its corresponding Analyer program) and examine the packets after 1) instantiating the client proxy, and 2) calling a method. You'll actually only see one request (assuming data chunking isn't used for that method): for the method.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Can we define constructor with arguments in web service. Pin
Anonymous24-Jun-04 18:54
Anonymous24-Jun-04 18:54 
GeneralTrouble getting designer for a component Pin
Simon_uk23-Jun-04 0:17
Simon_uk23-Jun-04 0:17 
GeneralRe: Trouble getting designer for a component Pin
Heath Stewart23-Jun-04 4:36
protectorHeath Stewart23-Jun-04 4:36 
GeneralRe: Trouble getting designer for a component Pin
Simon_uk23-Jun-04 5:33
Simon_uk23-Jun-04 5:33 
Generald Pin
Anonymous22-Jun-04 23:52
Anonymous22-Jun-04 23:52 
GeneralRe: d Pin
eggie523-Jun-04 9:58
eggie523-Jun-04 9:58 
GeneralDiscussion forum Pin
Member 94217022-Jun-04 23:51
Member 94217022-Jun-04 23:51 
GeneralRe: Discussion forum Pin
Colin Angus Mackay23-Jun-04 0:31
Colin Angus Mackay23-Jun-04 0:31 
GeneralIEndPoint Object Pin
dabuskol22-Jun-04 23:49
dabuskol22-Jun-04 23:49 
GeneralRe: IEndPoint Object Pin
Colin Angus Mackay23-Jun-04 0:33
Colin Angus Mackay23-Jun-04 0:33 
GeneralRe: IEndPoint Object Pin
dabuskol23-Jun-04 0:59
dabuskol23-Jun-04 0:59 
GeneralRe: IEndPoint Object Pin
Colin Angus Mackay23-Jun-04 1:19
Colin Angus Mackay23-Jun-04 1:19 
GeneralRe: IEndPoint Object Pin
dabuskol23-Jun-04 1:26
dabuskol23-Jun-04 1:26 
GeneralRe: IEndPoint Object Pin
Heath Stewart23-Jun-04 4:24
protectorHeath Stewart23-Jun-04 4:24 
GeneralHighlight a line that contains a string Pin
clatten22-Jun-04 23:49
clatten22-Jun-04 23:49 
GeneralRe: Highlight a line that contains a string Pin
LongRange.Shooter23-Jun-04 3:20
LongRange.Shooter23-Jun-04 3:20 
GeneralRe: Highlight a line that contains a string Pin
clatten23-Jun-04 11:44
clatten23-Jun-04 11:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.