Re: c and webservices?




In article <gsst83xtdt.ln2@xxxxxxxxxxxxxxxxxxxxxxx>, Flash Gordon <spam@xxxxxxxxxxxxxxxxxx> writes:
>
> The C language has absolutely no abilities for
> the most fundamental things required for a web service, such as
> communications over a network.

This is arguably true (there's a possible quibble over "fundamental"
and "required"), but not necessarily relevant. While network
communication is "fundamental" to web services, that does not mean
that a provider or consumer of web services need be responsible for
network communications.

Consider, for example, a portable C program running in an environment
where stdin and stdout are the required network communications
channel. Such environments are actually very common: inetd and its
analogues, CGI programs, and so forth. (There are client-side
examples as well.)

It might not be practical, for most applications, to provide or
consume web services entirely in portable C, in an environment where
this is possible; but I'd like to avoid the false generalization that
any task (such as using web services) which is associated with some
facility outside the C standard therefore cannot be done in portable
C. Even here we must entertain various unguaranteed expectations
about the execution environment, QoI, and so forth.

I'm of the opinion that the original question itself was marginally
topical (if considered as "can this be done in standard C?"), but
answers other than redirections to implementation-specific groups
or those that describe what standard C does not provide (eg network
communications, XML parsing, etc) would be off-topic. h's claim
of topicality for the larger question ("how can this be done in C?")
on the grounds that all C programs are topical is spurious, of
course, for the reasons you outline and we're all familiar with, but
it's legitimate (again, IMO) for someone to ask here whether some
task *can* be accomplished in standard C. And in that event I for
one would prefer to see responses that are a bit more cautious in
delimiting what is and is not covered by the standard language.

An ideal response, in my opinion, might be along the lines of "it is
possible, in some environments, to consume web services in a portable
C program, which is what we discuss here; but in practice you are
likely to want to use implementation- and environment-specific
features and facilities, and you should ask about those in a news-
group relevant to your platform".

--
Michael Wojcik michael.wojcik@xxxxxxxxxxxxxx

Unlikely prediction o' the day:
Eventually, every programmer will have to write a Java or distributed
object program.
-- Orfali and Harkey, _Client / Server Programming with Java and CORBA_
.



Relevant Pages

  • Re: c and webservices?
    ... >> communications over a network. ... > communication is "fundamental" to web services, ... The manner in which the network communications channel is associated ...
    (comp.lang.c)
  • Serious Offshore Probes Detected & Defeated
    ... An IP address that sent communications, then stopped communications and restarted the communications, continuously within a 12 hour period. ... There are seven active sites in China: ... - CNCGROUP Heilongjiang province network -Mudanjiang ... Longitude: 129°60'00" East ...
    (Security-Basics)
  • ANCS 2005 Call for Participation
    ... Architectures for Networking and Communications Systems ... Intel Corporation (Gold Sponsor) ... network processors, content addressable memories, configurable logic ...
    (comp.arch)
  • Work Toys
    ... The network I manage has redundant connections, ... The signal I wanted to send is an alarm for a high tank level ... communnications problem. ... To the idea of a communications problem, ...
    (misc.news.internet.discuss)
  • CommunicationsDirect News Daily Update - October 15, 2007
    ... construct a US$1.5-billion broadband network, ... IBM Trumps Microsoft With Unified Communications Ploy ... 2006 Leading Lights: Where Are They Now? ... Copyright 2007 PricewaterhouseCoopers. ...
    (comp.dcom.telecom)

Loading