Which VS template do I need

  • Thread starter Thread starter cj
  • Start date Start date
C

cj

I need to write a web service--actually several. The data these web
services return will come mostly from odbc data sources. Also I'd like
to make this a web application as opposed to a windows app. I see they
offer an ASP.Net Web service application but I'm not sure if any of the
others would be more appropriate.
 
I need to write a web service--actually several. The data these web
services return will come mostly from odbc data sources. Also I'd like
to make this a web application as opposed to a windows app. I see they
offer an ASP.Net Web service application but I'm not sure if any of the
others would be more appropriate.

I would just use the Web Service template. You could create a new Web
Site and delete the default.aspx page that is generated and then add
your service, but you'll end up with the basically the same thing as
the Web Service template. Remember you can create all the different
services in the same project if you want, but if they need to share
business objects you will need to write your own .disco file for the
web service consumers to bind to.

Thanks,

Seth Rowe [MVP]
 
What are the Server Control projects?

rowe_newsgroups said:
I would just use the Web Service template. You could create a new Web
Site and delete the default.aspx page that is generated and then add
your service, but you'll end up with the basically the same thing as
the Web Service template. Remember you can create all the different
services in the same project if you want, but if they need to share
business objects you will need to write your own .disco file for the
web service consumers to bind to.

Thanks,

Seth Rowe [MVP]
 
What about creating the different web services in their own projects in
the same solution? Would that get around having to write my own disco
files?
 
What about creating the different web services in their own projects in
the same solution? Would that get around having to write my own disco
files?

I'm not sure if you create a custom library for the shared objects and
reference that assembly from each project in your solution if it will
prevent the InvalidCast exceptions that binding to a disco fixes or
not. If you try it out please post back and let me know what happens -
you've got me curious.

Thanks,

Seth Rowe [MVP]
 
What are the Server Control projects?

Server Controls are custom controls like the TextBox, GridView,
DropDownList, etc., so the Server Control project would just be a
control library for creating your own server controls.

Thanks,

Seth Rowe [MVP]
 
Right now I'm not sure what a disco file is so I'm not sure my testing
will help you much. I know I need a wsdl file which I think VS
generates for me but I'm not sure on that yet either. I've used web
services before but never written one.
 
Thanks for Seth's prompt reply.

Hello CJ,

According to your description, you want to create a web service project.
This web service will return some data from odbc data source. But, you are
not sure which template is appropriate for such requirement, correct? If I
misunderstood anything here, please don't hesitate to correct me.

There are a lot of choices for you.

#1 Create an "ASP.net Web Service Application" project by
(File|New|Project|Visual C#|Web).
#2 Create an "ASP.net Web Service" WebSite project by (File|New|Web Site).
#3 Create an "ASP.net Web Application" project by ((File|New|Project|Visual
C#|Web), delete the default.aspx page and then add your web services.
#4 Create an "ASP.net WebSite" project by ((File|New|Web Site), delete the
default.aspx page and then add your web services.
#5 if you prefer to C++, there is a choice for you to create an "ASP.NET
Web Service" by "(File|New|Project|Visual C++|CLR)" in managed code or "ATL
Server Web Service" project by "(File|New|Project|Visual C++|ATL)" in
unmanaged code.

In my opnion, I'd like use the method #1 or #2 to create an ASP.net Web
Service Application/WebSite.

disco: It is a Microsoft technology for publishing and discovering Web
Services. DISCO can define a document format along with an interrogation
algorithm, making it possible to discover the Web Services exposed on a
given server. DISCO makes it possible to discover the capabilities of each
Web Service (via documentation) and how to interact with it. But, VS IDE
cannot generate this type of file for us. If necessary, we have to write it
by your self.

For detailed information about .disco, you may refer to

http://msdn2.microsoft.com/en-us/library/fxx6cfx2(VS.80).aspx
[XML Web Service Discovery ]

http://msdn.microsoft.com/msdnmag/issues/02/02/xml/
[Publishing and Discovering Web Services with DISCO and UDDI]

Hope this helps. If you have any more concern, please feel free update here
again. We are glad to assist you.

Have a great day,
Best regards,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Chris,
Thanks for your reply.

You are welcome. Have a great day.:)

Best regards,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top