473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Using Asynchronouse Pluggable Protocols

I was hoping I could do something like:

WebRequest req = new WebRequest("mk:whatever") to retrieve HTML help topics
via the mk: protocol. But it appears that http: and file: are the only
supported protocols.

How would one retrieve data via another asynchronous pluggable protocol
under .NET?

Pete

Nov 16 '05 #1
5 2780
Fredo,

You won't be able to do it in .NET through the WebRequest. Rather, you
will have to call the CreateMoniker API through the P/Invoke layer, and then
make the calls to load through the methods on the IMoniker implementation
returned (through COM interop of course).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fredo" <fr*****@hotmail.com> wrote in message
news:I_********************@giganews.com...
I was hoping I could do something like:

WebRequest req = new WebRequest("mk:whatever") to retrieve HTML help
topics
via the mk: protocol. But it appears that http: and file: are the only
supported protocols.

How would one retrieve data via another asynchronous pluggable protocol
under .NET?

Pete

Nov 16 '05 #2
Nicholas,

I was afraid that was going to be the case.

Do you have any idea why this isn't the way WebRequest works to begin
with? I mean, wouldn't it be more "general" that way? On top of which, it
could truely make asynch pluggable protocols much more accessible and
useful.

Pete

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:e1**************@TK2MSFTNGP09.phx.gbl...
Fredo,

You won't be able to do it in .NET through the WebRequest. Rather, you will have to call the CreateMoniker API through the P/Invoke layer, and then make the calls to load through the methods on the IMoniker implementation
returned (through COM interop of course).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fredo" <fr*****@hotmail.com> wrote in message
news:I_********************@giganews.com...
I was hoping I could do something like:

WebRequest req = new WebRequest("mk:whatever") to retrieve HTML help
topics
via the mk: protocol. But it appears that http: and file: are the only
supported protocols.

How would one retrieve data via another asynchronous pluggable protocol
under .NET?

Pete


Nov 16 '05 #3
Pete,

I think that they wanted to reduce dependency on COM, as well as make it
more of a component that could be used in server side situations. As nice
as the APPs are, they aren't meant for use in server situations (the handler
for HTTP uses WinInet ultimately, for example).

It should be possible to perform some sort of mapping though, it would
just require some work.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fredo" <fr*****@hotmail.com> wrote in message
news:Ud********************@giganews.com...
Nicholas,

I was afraid that was going to be the case.

Do you have any idea why this isn't the way WebRequest works to begin
with? I mean, wouldn't it be more "general" that way? On top of which, it
could truely make asynch pluggable protocols much more accessible and
useful.

Pete

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in
message news:e1**************@TK2MSFTNGP09.phx.gbl...
Fredo,

You won't be able to do it in .NET through the WebRequest. Rather,

you
will have to call the CreateMoniker API through the P/Invoke layer, and

then
make the calls to load through the methods on the IMoniker implementation
returned (through COM interop of course).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fredo" <fr*****@hotmail.com> wrote in message
news:I_********************@giganews.com...
>I was hoping I could do something like:
>
> WebRequest req = new WebRequest("mk:whatever") to retrieve HTML help
> topics
> via the mk: protocol. But it appears that http: and file: are the only
> supported protocols.
>
> How would one retrieve data via another asynchronous pluggable protocol
> under .NET?
>
> Pete
>
>
>



Nov 16 '05 #4
Thanks for the help. As always, you're a great source of information.

I'll tell you, what kind of irks me is that APPs can provide a great deal of
power. If you look at how KDE manages them, for example, it has a really
easy to use and flexible architecture for dealing with URLs and there are a
lot of applications that take advantage of the facility. I just think it
could be equally useful in .NET if it were easier to use.

Pete

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl...
Pete,

I think that they wanted to reduce dependency on COM, as well as make it more of a component that could be used in server side situations. As nice
as the APPs are, they aren't meant for use in server situations (the handler for HTTP uses WinInet ultimately, for example).

It should be possible to perform some sort of mapping though, it would
just require some work.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fredo" <fr*****@hotmail.com> wrote in message
news:Ud********************@giganews.com...
Nicholas,

I was afraid that was going to be the case.

Do you have any idea why this isn't the way WebRequest works to begin
with? I mean, wouldn't it be more "general" that way? On top of which, it could truely make asynch pluggable protocols much more accessible and
useful.

Pete

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in
message news:e1**************@TK2MSFTNGP09.phx.gbl...
Fredo,

You won't be able to do it in .NET through the WebRequest. Rather,

you
will have to call the CreateMoniker API through the P/Invoke layer, and

then
make the calls to load through the methods on the IMoniker implementation returned (through COM interop of course).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fredo" <fr*****@hotmail.com> wrote in message
news:I_********************@giganews.com...
>I was hoping I could do something like:
>
> WebRequest req = new WebRequest("mk:whatever") to retrieve HTML help
> topics
> via the mk: protocol. But it appears that http: and file: are the only > supported protocols.
>
> How would one retrieve data via another asynchronous pluggable protocol > under .NET?
>
> Pete
>
>
>



Nov 16 '05 #5
Pete,

I've toyed around with the idea of creating a WebRequest/WebResponse
based class which would use the APP architecture to get what it needs. I
always thought it would be rather useful (more neat than useful).

Perhaps I'll look into it again, because of this post.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fredo" <fr*****@hotmail.com> wrote in message
news:RK********************@giganews.com...
Thanks for the help. As always, you're a great source of information.

I'll tell you, what kind of irks me is that APPs can provide a great deal
of
power. If you look at how KDE manages them, for example, it has a really
easy to use and flexible architecture for dealing with URLs and there are
a
lot of applications that take advantage of the facility. I just think it
could be equally useful in .NET if it were easier to use.

Pete

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in
message news:%2****************@TK2MSFTNGP11.phx.gbl...
Pete,

I think that they wanted to reduce dependency on COM, as well as make

it
more of a component that could be used in server side situations. As
nice
as the APPs are, they aren't meant for use in server situations (the

handler
for HTTP uses WinInet ultimately, for example).

It should be possible to perform some sort of mapping though, it
would
just require some work.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fredo" <fr*****@hotmail.com> wrote in message
news:Ud********************@giganews.com...
> Nicholas,
>
> I was afraid that was going to be the case.
>
> Do you have any idea why this isn't the way WebRequest works to begin
> with? I mean, wouldn't it be more "general" that way? On top of which, it > could truely make asynch pluggable protocols much more accessible and
> useful.
>
> Pete
>
> "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
> wrote
> in
> message news:e1**************@TK2MSFTNGP09.phx.gbl...
>> Fredo,
>>
>> You won't be able to do it in .NET through the WebRequest.
>> Rather,
> you
>> will have to call the CreateMoniker API through the P/Invoke layer,
>> and
> then
>> make the calls to load through the methods on the IMoniker implementation >> returned (through COM interop of course).
>>
>> Hope this helps.
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - mv*@spam.guard.caspershouse.com
>>
>> "Fredo" <fr*****@hotmail.com> wrote in message
>> news:I_********************@giganews.com...
>> >I was hoping I could do something like:
>> >
>> > WebRequest req = new WebRequest("mk:whatever") to retrieve HTML help
>> > topics
>> > via the mk: protocol. But it appears that http: and file: are the only >> > supported protocols.
>> >
>> > How would one retrieve data via another asynchronous pluggable protocol >> > under .NET?
>> >
>> > Pete
>> >
>> >
>> >
>>
>>
>
>



Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: bob_yohan | last post by:
Hi all, I am rather new to database design and modelling concepts in general and was hoping for some advice on a problem I am trying to solve. I have designed a piece of software that creates a...
0
by: Richard C | last post by:
Hello, In Java the XML DOM is interface based, hence pluggable implementations. In ..NET it's been in from the start of course and is class based, but I notice there appear to be some alternate...
15
by: Brian Rogers | last post by:
Hello everyone, I apologize for the cross and re-post, but I am still searching for an answer. Why can C++ can create this object, but C# can't? I am trying to create an instance of the...
0
by: Pete Davis | last post by:
I have an app that needs to work with its own uri scheme. Instead of http:, I'm going to use wwkb: I will register my uri prefix to run my app, and it only needs to be available when my app is...
3
by: Michael Hoehne | last post by:
Hi, I'm currently facing a problem with a mixed environment using .NET 1.1 and ..NET 2.0 web services. We have a client application (the "client", system 1) running on .NET 2.0/WinXP, calling...
3
by: Rune Jacobsen | last post by:
Hi all, I am working on my single instance application that now also has a URL type associated with it, according to the Asynchronous Pluggable Protocols information from MSDN. Now, if my...
5
by: BrianGenisio | last post by:
Hello all, Suppose I am using the browser control in my application to display my own HTML code. Now, suppose I want to show images on the page that I currently have in memory. One way to do...
4
by: Trapulo | last post by:
I've a requirenment that maybe its too hard to have, but I hope someone has a good suggestion... Basically, I need to create some pluggable pages in an asp.net application. The pages are simple...
8
by: Mo | last post by:
Hi, I can not find a decent example showing how to consume a asp.net 2.0 web service using classic ASP. Does any body have an example I could use? Thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.