J
JDeats
Hey group,
I have two things:
1. I'm trying to get my head around the real advantages of using WCF
web services as opposed to good-ol .asmx files. In less than five
minutes I can create a simple Hello World SOAP web service inside
an .asmx decorate my methods with [WebMethod], set a web reference
from another project and we're rolling
For WCF web services, I have to create a class library to house my
service, create an interface to house the Service/Operation Contracts,
create a static class for my templates, create transport classes...
Then create a console application to house my WebServiceHost. So the
effort here is multiplied many times and I guess I'm not understanding
why the development tools couldn't abstract all this a bit and what
the strong advantages are for incurring this additional effort as
billable time.
2. In my scenario I need to have ASP.NET compatibility set on my WCF
service
So I'm setting a reference to System.Web and adding this attribute to
my class
[AspNetCompatibilityRequirements(RequirementsMode =
AspNetCompatibilityRequirementsMode.Allowed)]
Great...
Now my problem is getting this thing hosted in IIS. I've created the
required .svc and created a web.config with the binding attributes
(again, why isn't there code generation tools for all this built into
VS.NET 2008? I digress). I guess I have two questions.
A. Aside from creating the .svc and web.config and putting these two
files in the directory along with your .DLLs is there any other
configuration that has to occur inside IIS? I've created a new
application and pointed it to my folder, but that's it.
For example:
http://localhost/myservice/service.svc/mycollection/collectionname/xml
Returns an IIS error.
B. Once a WCF service is deployed to IIS is there any way to attach to
this process and step-through debug?
Thanks in advance and I'm sorry if this is in the wrong group....
Answers greatly appreciated
I have two things:
1. I'm trying to get my head around the real advantages of using WCF
web services as opposed to good-ol .asmx files. In less than five
minutes I can create a simple Hello World SOAP web service inside
an .asmx decorate my methods with [WebMethod], set a web reference
from another project and we're rolling
For WCF web services, I have to create a class library to house my
service, create an interface to house the Service/Operation Contracts,
create a static class for my templates, create transport classes...
Then create a console application to house my WebServiceHost. So the
effort here is multiplied many times and I guess I'm not understanding
why the development tools couldn't abstract all this a bit and what
the strong advantages are for incurring this additional effort as
billable time.
2. In my scenario I need to have ASP.NET compatibility set on my WCF
service
So I'm setting a reference to System.Web and adding this attribute to
my class
[AspNetCompatibilityRequirements(RequirementsMode =
AspNetCompatibilityRequirementsMode.Allowed)]
Great...
Now my problem is getting this thing hosted in IIS. I've created the
required .svc and created a web.config with the binding attributes
(again, why isn't there code generation tools for all this built into
VS.NET 2008? I digress). I guess I have two questions.
A. Aside from creating the .svc and web.config and putting these two
files in the directory along with your .DLLs is there any other
configuration that has to occur inside IIS? I've created a new
application and pointed it to my folder, but that's it.
For example:
http://localhost/myservice/service.svc/mycollection/collectionname/xml
Returns an IIS error.
B. Once a WCF service is deployed to IIS is there any way to attach to
this process and step-through debug?
Thanks in advance and I'm sorry if this is in the wrong group....
Answers greatly appreciated