By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,882 Members | 2,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,882 IT Pros & Developers. It's quick & easy.

create web service class at runtime ?

P: n/a
Wsdl.exe /server creates abstract class derived from WebService. Is there a
way to create this class at runtime based on some WSDL file given at runtime
? What would be even better - creating concrete class but with empty method
implementation of course since WSDL does not provide any info on
implementation.

Thanks
M.

Nov 23 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a

Not sure what you are trying to do, but does Christian Weyer's DynWSLib
[0] for dynamic invocation of services help?

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
[0] http://www.thinktecture.com/Resource...b/default.html

-----Original Message-----
From: MarkoH [mailto:ma************@rsh.si]
Posted At: Wednesday, December 29, 2004 2:28 PM
Posted To: microsoft.public.dotnet.framework.webservices
Conversation: create web service class at runtime ?
Subject: create web service class at runtime ?

Wsdl.exe /server creates abstract class derived from WebService. Is there a
way to create this class at runtime based on some WSDL file given at
runtime
? What would be even better - creating concrete class but with empty
method
implementation of course since WSDL does not provide any info on
implementation.

Thanks
M.

Nov 23 '05 #2

P: n/a

Oops, I just read your posting again ... you're looking to create
services at runtime?

You can run wsdl.exe programmatically, or you might be able to create
the services by invoking a
System.Web.Services.Description.ServiceDescription Importer with the
Style property set to Server.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

-----Original Message-----
From: MarkoH [mailto:ma************@rsh.si]
Posted At: Wednesday, December 29, 2004 2:28 PM
Posted To: microsoft.public.dotnet.framework.webservices
Conversation: create web service class at runtime ?
Subject: create web service class at runtime ?

Wsdl.exe /server creates abstract class derived from WebService. Is there a
way to create this class at runtime based on some WSDL file given at
runtime
? What would be even better - creating concrete class but with empty
method
implementation of course since WSDL does not provide any info on
implementation.

Thanks
M.

Nov 23 '05 #3

P: n/a
Yes, I've seen Christian's example and have already done some work upon it
and I was looking for something similar on the server side.

But this information about Style property is great! I could work on
Christian's example and redesign it for server class.

thanks!
"Christoph Schittko [MVP]" <IN**********@austin.rr.com> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...

Oops, I just read your posting again ... you're looking to create
services at runtime?

You can run wsdl.exe programmatically, or you might be able to create
the services by invoking a
System.Web.Services.Description.ServiceDescription Importer with the
Style property set to Server.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

-----Original Message-----
From: MarkoH [mailto:ma************@rsh.si]
Posted At: Wednesday, December 29, 2004 2:28 PM
Posted To: microsoft.public.dotnet.framework.webservices
Conversation: create web service class at runtime ?
Subject: create web service class at runtime ?

Wsdl.exe /server creates abstract class derived from WebService. Is

there
a
way to create this class at runtime based on some WSDL file given at
runtime
? What would be even better - creating concrete class but with empty
method
implementation of course since WSDL does not provide any info on
implementation.

Thanks
M.


Nov 23 '05 #4

P: n/a
Okay, I have abstract class created at runtime through usage of CodeDom and
Microsoft.CSharp namespaces..the class is abstract and so are the methods of
course. How could I change this class/create new class (concrete one) from
this abstract class code ? Of course it would be enough to just have
concrete class with empty methods. Only { }.

thanks for any help,
M.

"Christoph Schittko [MVP]" <IN**********@austin.rr.com> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...

Oops, I just read your posting again ... you're looking to create
services at runtime?

You can run wsdl.exe programmatically, or you might be able to create
the services by invoking a
System.Web.Services.Description.ServiceDescription Importer with the
Style property set to Server.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

-----Original Message-----
From: MarkoH [mailto:ma************@rsh.si]
Posted At: Wednesday, December 29, 2004 2:28 PM
Posted To: microsoft.public.dotnet.framework.webservices
Conversation: create web service class at runtime ?
Subject: create web service class at runtime ?

Wsdl.exe /server creates abstract class derived from WebService. Is

there
a
way to create this class at runtime based on some WSDL file given at
runtime
? What would be even better - creating concrete class but with empty
method
implementation of course since WSDL does not provide any info on
implementation.

Thanks
M.


Nov 23 '05 #5

P: n/a
Hello MarkoH,
What would be the use of that? woudnt you still have to write the implementation?

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Okay, I have abstract class created at runtime through usage of
CodeDom and Microsoft.CSharp namespaces..the class is abstract and so
are the methods of course. How could I change this class/create new
class (concrete one) from this abstract class code ? Of course it
would be enough to just have concrete class with empty methods. Only {
}.

thanks for any help,
M.
"Christoph Schittko [MVP]" <IN**********@austin.rr.com> wrote in
message news:ei**************@TK2MSFTNGP09.phx.gbl...
Oops, I just read your posting again ... you're looking to create
services at runtime?

You can run wsdl.exe programmatically, or you might be able to create
the services by invoking a
System.Web.Services.Description.ServiceDescription Importer with the
Style property set to Server.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
-----Original Message-----
From: MarkoH [mailto:ma************@rsh.si]
Posted At: Wednesday, December 29, 2004 2:28 PM
Posted To: microsoft.public.dotnet.framework.webservices
Conversation: create web service class at runtime ?
Subject: create web service class at runtime ?
Wsdl.exe /server creates abstract class derived from WebService. Is

there
a
way to create this class at runtime based on some WSDL file given at
runtime
? What would be even better - creating concrete class but with empty
method
implementation of course since WSDL does not provide any info on
implementation.
Thanks
M.

Nov 23 '05 #6

P: n/a
Well, that's the deal. You have to implement the concrete implementation
yourself.
This is what we do with the WSCF tool.

Cheers,
--
Christian Weyer
thinktecture
http://www.thinktecture.com
In-depth support and consulting for software architects and developers

*Smells like service spirit-Weblog
http://weblogs.asp.net/cweyer

*Independent Microsoft Regional Director
http://www.microsoft.com/rd
"MarkoH" <ma************@rsh.si> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Okay, I have abstract class created at runtime through usage of CodeDom
and Microsoft.CSharp namespaces..the class is abstract and so are the
methods of course. How could I change this class/create new class
(concrete one) from this abstract class code ? Of course it would be
enough to just have concrete class with empty methods. Only { }.

thanks for any help,
M.

"Christoph Schittko [MVP]" <IN**********@austin.rr.com> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...

Oops, I just read your posting again ... you're looking to create
services at runtime?

You can run wsdl.exe programmatically, or you might be able to create
the services by invoking a
System.Web.Services.Description.ServiceDescription Importer with the
Style property set to Server.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

-----Original Message-----
From: MarkoH [mailto:ma************@rsh.si]
Posted At: Wednesday, December 29, 2004 2:28 PM
Posted To: microsoft.public.dotnet.framework.webservices
Conversation: create web service class at runtime ?
Subject: create web service class at runtime ?

Wsdl.exe /server creates abstract class derived from WebService. Is

there
a
way to create this class at runtime based on some WSDL file given at
runtime
? What would be even better - creating concrete class but with empty
method
implementation of course since WSDL does not provide any info on
implementation.

Thanks
M.



Nov 23 '05 #7

P: n/a
I wanted to attach SoapExtension to it and then trace SOAP messages. Maybe
I'm not handling this the right way..

What I want to do is "mimic" what .NET Framework does when calling Invoke()
in proxy. That is serializing calls. I don't want to write out XML for SOAP
Requests/Responses myself, especially not for encoded style. Invoke() method
on proxy does all that by itself.

If I have WSDL, dynamic proxy based on it and dynamic abstract web service
class based on that WSDL, there must be a way to generate SOAP
Requests/Responses without having to invoke (or without having to write it
yourself) ?
"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:10**********************@msnews.microsoft.com ...
Hello MarkoH,
What would be the use of that? woudnt you still have to write the
implementation?

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Okay, I have abstract class created at runtime through usage of
CodeDom and Microsoft.CSharp namespaces..the class is abstract and so
are the methods of course. How could I change this class/create new
class (concrete one) from this abstract class code ? Of course it
would be enough to just have concrete class with empty methods. Only {
}.

thanks for any help,
M.
"Christoph Schittko [MVP]" <IN**********@austin.rr.com> wrote in
message news:ei**************@TK2MSFTNGP09.phx.gbl...
Oops, I just read your posting again ... you're looking to create
services at runtime?

You can run wsdl.exe programmatically, or you might be able to create
the services by invoking a
System.Web.Services.Description.ServiceDescription Importer with the
Style property set to Server.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
-----Original Message-----
From: MarkoH [mailto:ma************@rsh.si]
Posted At: Wednesday, December 29, 2004 2:28 PM
Posted To: microsoft.public.dotnet.framework.webservices
Conversation: create web service class at runtime ?
Subject: create web service class at runtime ?
Wsdl.exe /server creates abstract class derived from WebService. Is

there

a
way to create this class at runtime based on some WSDL file given at
runtime
? What would be even better - creating concrete class but with empty
method
implementation of course since WSDL does not provide any info on
implementation.
Thanks
M.


Nov 23 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.