Coder un serveur HTTP en DotNet 2.0 ( C#)

A

aaa.aaa

Bonjour,

Je voudrais savoir si avec le DotNet framework 2.0, il serait possible
d'écrire une application windows service qui incorporait un serveur
HTTTP "embedded"( via code) sans passer par le serveur web IIS en local.

Le but de l'application serait de consommer des messages SOAP sur HTTP
contenant des objets ( décrit dans un schéma XSD) et de renvoyer des
reponse contenant des objets serialisé avec xml ( via leur schema xsd )


Je ne voudrais pas à avoir à installer IIS et à passer par des web
services car dans les messages SAOP il n'y aurait pas de déscription des
méthodes mais la déscription des objets .

Je voudrais connaitre les espaces de nom et les classes.
Ainsi qu'un exemple de code , ou des lien sur le web.

Merci
 
A

aaa.aaa

J'ai trouvé ceci sur msdn :

Donc il semblerait qu'il faudrait absolument passer par un server IIS et
ASP.Net web services :

http://msdn2.microsoft.com/en-us/library/aa529311.aspx

How to: Host an ASP.NET Web Service Outside of IIS

The Web Services Enhancements for Microsoft .NET Framework (WSE) enables
ASP.NET Web services to be hosted in console applications, Windows
services, COM+ components or Windows Forms applications and then be
called using the TCP protocol or any custom transport protocol written
for WSE.

.............

When a Web service is hosted outside of IIS, some of the programming
elements that are specific to HTTP are not available. The
System.Web.HttpContext.Current property is one example of this. The
following paragraphs summarize the other elements that are not available.

The following properties of the System.Web.Services.WebMethodAttribute
attribute cannot be used by a Web service that is hosted outside of IIS.

* BufferResponse
* CacheDuration
* EnableSession
* TransactionOption

The following configuration elements cannot be used by a Web service
that is hosted outside of IIS.

* <serviceDescriptionFormatExtensionTypes>
* <soapExtensionTypes>
* <soapExtensionReflectorTypes>
* <soapExtensionImporterTypes>
* <wsdlHelpGenerator>



aaa.aaa a écrit :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top