Re: WSE and TCP / HTTP

From: John Bristowe (johnb_at_quadrus.com)
Date: 02/22/05


Date: Tue, 22 Feb 2005 15:49:36 -0700

Anthony,

You're correct; there is a dependency on context (System.Web.HttpContext)
for WSE-based service endpoints listening over HTTP. That stated, you can
write your own host via the System.Web.Hosting namespace. This solution uses
ASP.NET if you consider the hosting APIs part of this framework. ;-) A good
example of the hosting APIs is the Cassini Sample Web Server, which you can
download from the ASP.NET Web site:

http://www.asp.net/Default.aspx?tabindex=6&tabid=41

You could certainly mimic what's there to establish your own host inside the
context of an Enterprise Services server application or a Windows service.

John

> John,
>
> how would you say, take the TcpSyncStockService (the sameple in the WSE2)
> and convert it to so the messages are SOAP over http?
>
> It would seem that changing the via's "soap.tcp" to "http" would be all
> that
> is needed, but this throws an exception when adding the soap listener.
> "WSE803: A valid HttpContext is required for Active HTTP Listening."
>
> I might have to do more than just change the via parameter, but what more
> i
> have to do, i dont know.
>
> If i open the HTTPstock service sample i get an error saying it cant open
> because there is no web server running (i have IIS turned off) That leads
> me
> to believe it might not be possible to do it the way i would like.
>
> -Anthony
>
> "John Bristowe" wrote:
>
>> Anthony,
>>
>> Absolutely. You can utilize the WSE inside applications hosted inside
>> Enterprise Services and Windows services simply by hosting the WSE
>> pipeline.
>>
>> John
>>
>> > I have been experimenting with WSE and i really like what ive been
>> > seeing
>> > so
>> > far.
>> >
>> > The way WSE does SOAP over TCP is great, but I seem to be having
>> > intergration issues since most other solutions only support SOAP over
>> > HTTP.
>> >
>> > Is it possible to use WSE in a way that doesnt use asp.net or IIS, but
>> > still
>> > can send SOAP messages over HTTP ?
>> >
>> > Thanks
>> > Anthony
>>
>>
>>



Relevant Pages

  • Compact Framework: only the first HttpWebRequest succeeds
    ... Basically, I'm doing HTTP requests in C#, ... correctly set the Host in the header, but the others had HTTP Version ... HTTP requests in a .NETCF program? ... post my code to the compactframework newsgroup when I do. ...
    (microsoft.public.dotnet.framework)
  • Re: powned.
    ... Skipping host p7w16.geo.re4.yahoo.com due to host ... N-Stealth HTTP Security Scan detects the server as "". ... (The 1661 ports scanned but not shown below are in state: ...
    (alt.2600)
  • Re: Extracting data from an XML to put into a constant
    ... A script runs is in a script context in a host application (wscript, ... The host application holds a reference the context via an IActiveScript ...
    (microsoft.public.scripting.vbscript)
  • Re: STRANGE QUESTION : search engine query and web site dowload
    ... > on network programming... ... About sockets ... Don't know where but if you google for RFC and HTTP you probably find lots ... end) Host should be the host you connect. ...
    (comp.lang.cpp)
  • Re: (OT) Using mailto with attachments (Windows)
    ... screenshot of itself - and make this process as easy as possible for ... Maybe instead use HTTP to upload the dumped files? ... dialog should say why it would be good to allow the app to phone home ... Why do I keep forgetting to post the context even if the topic ...
    (comp.lang.tcl)

Quantcast