Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Transport Dokumentation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Danilin - 23 Mar 2005 18:54 GMT
Is there a documentation of how to make a transport? And how Http transport
in WSE working.

I must say that WSE dokumentation is allmost as bad as any Java
dokumentation :-(
Roman Kiss [MVP] - 23 Mar 2005 19:52 GMT
Daniel,

have a look at my article http://www.codeproject.com/useritems/SoapMSMQ.asp

HTH

Roman

> Is there a documentation of how to make a transport? And how Http
> transport in WSE working.
>
> I must say that WSE dokumentation is allmost as bad as any Java
> dokumentation :-(
Daniel Danilin - 24 Mar 2005 19:08 GMT
It doesn't help much. I'm trying to extend SoapHttpTransport. And it works
other than your implementation.
In your article Send and Receive is made in Transport. In SoapHttpTransport
there is no Receive method. All receive code is in SoapHttpRequestChannel.

> Daniel,
>
[quoted text clipped - 10 lines]
>> I must say that WSE dokumentation is allmost as bad as any Java
>> dokumentation :-(
Roman Kiss [MVP] - 25 Mar 2005 01:17 GMT
Daniel,

WSE Transport infrastructure layout is the same for any kind of transport
(it's abstracted by SoapTransport class). For actively listining channel
(SoapChannelCapabilities property) its GetInputChannel(...) method will
return back the SoapHttpRequestChannel channel for the specific endpoint.
This channel has implementation of the ISoapInputChannel and
ISoapOutputChannel interfaces and reference for the configured formatter
(SoapPlainFormatter).

Activating (plumbing) your service hosted by IIS is done in the web.config
file like is shown in the following example:

<httpHandlers>
       <add verb="*" path="MyService.ashx"
type="NamespaceMyService.MuService, MyServiceAssembly" />
</httpHandlers>

The SoapReceiver has implementation of the IHttpRequest interface which it
enables to process HttpContext in the ProcessRequest method. This method
dispatches incoming HttpContext to the specific endpoint
SoapHttpRequestChannel receiver to deserialize an incoming stream into the
SoapEnvelope message. After that the message is dispatched to your receiver
method via the SoapReceiver.ProcessMessage.

The Level 0 of the WSE2 Messaging infrastructure can be customized building
a Custom SoapTransport and/or SoapFormatter.

Note that the channel's classes (such as SoapHttpRequestChannel,
SoapHttpOutputChanne, etc.) are sealed classes and SoapHttpTransport will
not help as a derived class for your custimizing.

hth

Roman

> It doesn't help much. I'm trying to extend SoapHttpTransport. And it works
> other than your implementation.
[quoted text clipped - 16 lines]
>>> I must say that WSE dokumentation is allmost as bad as any Java
>>> dokumentation :-(
Daniel Danilin - 26 Mar 2005 21:33 GMT
> Note that the channel's classes (such as SoapHttpRequestChannel,
> SoapHttpOutputChanne, etc.) are sealed classes and SoapHttpTransport will
> not help as a derived class for your custimizing.

Do you mean it's not possible to make http transport using
SoapHttpRequestChannel without IIS?
Roman Kiss [MVP] - 27 Mar 2005 01:59 GMT
Daniel,

have a look at the folowing links:

http://msdn.microsoft.com/msdnmag/issues/04/12/ServiceStation/

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/http/http/using
_http_api.asp


Roman

>> Note that the channel's classes (such as SoapHttpRequestChannel,
>> SoapHttpOutputChanne, etc.) are sealed classes and SoapHttpTransport will
>> not help as a derived class for your custimizing.
>
> Do you mean it's not possible to make http transport using
> SoapHttpRequestChannel without IIS?
Daniel Danilin - 27 Mar 2005 13:33 GMT
Unfortunatly first link is for .NET 2.0. And second link is not managed.

Anyway, I'v made HttpTransport using Cassini server. That works using
SoapHttpRequestChannel and HttpContext just like with IIS. And you don't
have to use web.config to add your receivers or write any *.asmx files.
Receivers can be added just like in tcp transport (
SoapReceivers.Add(endpoint, typeof(MyReceiver)); ).  MyReceiver can be
derived from SoapService or SoapReceiver.

> Daniel,
>
[quoted text clipped - 12 lines]
>> Do you mean it's not possible to make http transport using
>> SoapHttpRequestChannel without IIS?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.