[Mono-list] Two questions about .net/mono internals
lgreg.meredith at gmail.com
Thu Aug 3 18:54:57 EDT 2006
Many thanks. i found the SOAP extension stuff just a few hours before your
reply. As for the point about the formatter, i have implemented my own
formatter. But, the point is the binary formatter already does most of the
work i need to do except it adds extra information. In my specialized
formatter i just want to extract the bit i need from what the binary
formatter has already produced rather than have to write a great deal of
formatting code that has already been implemented by binary formatter.
On 8/3/06, Robert Jordan <robertj at gmx.net> wrote:
> L.G. Meredith wrote:
> > i'm in the process of writing a gateway application. It speaks SOAP out
> > one side of it's mouth and a proprietary network application protocol
> > the other.
> > My application would be much more beautiful and easy to maintain if i
> > the following two bits of interface to .net/mono capability.
> > 1. i want to trampoline incoming webmethods to invocations to send an
> > appropriately formatted message to a tcp stream connected to my app.
> > is, i would like to get the current (web) method and it's arguments. i
> > would
> > prefer not to copy the incoming arguments to an invocation but to
> > generically call an api that will return a data structure providing all
> > information associated with the method invocation, including method name
> > and
> > actuals (a.k.a. arguments). i can then pass this data structure to my
> > stream
> > formatter to format appropriately for the network stream.
> Implement a SOAP extension:
> > 2. i would like to have the format of the .net/mono binary formatter. It
> I'm not sure why you need it, but here is it:
> > does the work i need to do except that it puts some extra stuff into the
> > stream. Currently, i have a hack in which i drop markers into the stream
> > and
> > pull out the bytes between the markers to get the appropriately
> > bytes for the packet i need to send. Obviously, this is a brittle
> > If i had the format the binary serializer uses, then i could extract
> > them in
> > a better way. Even better, if i had an API that allowed me to extract
> > naturally distinct pieces, e.g. just member data, excluding class name
> > member name data or even size information, then i could have a very
> > and generic application.
> Such an API doesn't make sense, unless it's intended to be used
> by non-CLI languages (C/C++...).
> You should implement a custom formatter, if you need this level of
> If you want to intercept remoting calls, you could insert a
> custom server channel sink after the formatter sink and you'll
> be able to access the remoting messages before they get dispatched.
> Mono-list maillist - Mono-list at lists.ximian.com
505 N 72nd St
Seattle, WA 98103
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list