I think SOAP uses XMLHttpRequest, which does use a Necko channel.
Oh ok, I couldn't find a SOAP method that gave me access to those
interfaces. I'll look again.
>> Only if there is actually a networking protocol associated with it...
Ok, I figured it'd work just like a JAR file: sql:path/to/db.sql!
Though, understanding it a bit better now, perhaps representing a DB
connection as a stream isn't neccesarily the best way.
I'm still trying to understand your setup. You're implementing a
protocol handler, right?
Yep an XML message/rpc protocol, using (usually) HTTP as a transport.
Just to clarify my thinking. I have an XPCOM object representing an
email "Message" for example, with a "Delete()" method.
One server side mechanism expects a plain URL encoded GET, eg.
http://host.domain.com?session=abcd&action=message.delete&message.id;
The response is a simple <xml tag> encoded in the body.
The other mechanisms require a SOAP style XML message POSTed to a URI:
<removeItemRequest>
<container>some-containerid</container>
<id>unique-item-id</id>
</removeItemRequest>
I don't want to have to implement multiple Message.Delete() methods for
each underlying XML format. I wanted to transfer a generic request of
Delete() to the "channel" for that connection, and then have it handle
the "Delete()" specifics for that connection type.
Cheers,
N
Boris Zbarsky wrote:
> I had figured out that channels are a "single shot" data connection. So
> I need to handle the concept of being "connected" in my channel.
Yes, channels are single-shot things.
> SOAP doesn't appear to use channels, or stream listeners so I'm some
> what forcing a square peg into round hole.
I think SOAP uses XMLHttpRequest, which does use a Necko channel.
I'm still trying to understand your setup. You're implementing a
protocol handler, right?
> I kind of assumed all the SQLLite interfaces in the new mozStorage
interfaces
> would probably be implemented as an nsISQLChannel
Only if there is actually a networking protocol associated with it...
-Boris
_______________________________________________
Mozilla-netlib mailing list
Mozilla-netlib@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-netlib