[Mono-devel-list] .NET Web services in Perl?

Rafael Teixeira monoman at gmail.com
Thu Aug 12 17:25:58 EDT 2004


So what do you want to do is to publish some Web Services written in
Perl to being consumed from a .NET client (That is the current
official wording for such a thing).

As long as you present good WSDL, it should have no problem, unless
your client wants support for newer features like WS-Security that may
not be available in your Perl modules, and may be hard to write code
to support correctly.

Write your services, describe them in wsdl, and use mono's wsdl tool
to generate the proxy classes in C# that correctly call your services,
and can be used by the client code.

Good developments,

On Thu, 12 Aug 2004 17:09:35 -0400, Vsevolod (Simon) Ilyushchenko
<simonf at cshl.edu> wrote:
> Rafael,
> 
> Thanks for the quick answer. Strangely enough, there is a fourth
> interpretation. I don't want use .NET on the server side at all. I do,
> however, want to use .NET on the client (MS discontinues SOAP support
> soon). Hence, I'd like to catch .NET requests on the server in a
> language of my choice and respond without using .NET at all.
> 
> Web Services are a protocol, right? Are they just an RPC mechanism
> similar to SOAP or are they a more involved thing that requires a very
> specific smart server program that utilizes specific .NET classes?
> 
> Thanks,
> Simon
> 
> 
> 
> Rafael Teixeira wrote:
> > Well, you are mixing things.
> >
> > First, Perl isn't a Mono/.NET language, so if you want to write web
> > services in Mono, it is better to use the many languages already
> > available in Mono (C#, Nemerle, Boo, IronPython, ...). Just to be
> > completely fair, ActiveState had an effort to mix Perl and .NET, but
> > it was a mixed environment (Perl Interpreter alongside the CLR
> > (virtual machine)) with some bridging, so the results weren't as good
> > as using some of the above mentioned languages.
> >
> > Second, if you just want to be able call Mono classes from Perl,
> > that's is feasible using the embedding APIs but in your case not very
> > worthy, because Mono/ASP.NET Web Services Infrastructure does a lot
> > for you and then calls your code and then does a lot of other things,
> > not the reverse. So unless you wan't to rewrite large portions of that
> > infrastructure in Perl.
> >
> > Finally, you may be tempted to write a Perl Interpreter in C#/Mono, or
> > call the Perl executable by shelling out to it, so that you'd be able
> > to execute Perl Scripts inside Web Services hosted by Mono, but the
> > glue logic you'll need to write to make it simple to use is enormous
> > or else custom glue logic would be needed to be written for every web
> > service.
> --
> 
> Simon (Vsevolod ILyushchenko)   simonf at cshl.edu
>                                http://www.simonf.com
> 
> Terrorism is a tactic and so to declare war on terrorism
> is equivalent to Roosevelt's declaring war on blitzkrieg.
> 
> Zbigniew Brzezinski, U.S. national security advisor, 1977-81
> 


-- 
Rafael "Monoman" Teixeira
---------------------------------------
Cognition is not a representation of an objectively existing world
but is a bringing forth of a world in the process of living.
-- Fritjof Capra, citing 
   Humberto Maturana and Francisco Varella's "Santiago Theory of Cognition"



More information about the Mono-devel-list mailing list