摘要:
Web sites are modeled using mappings from paths to expressions. A mapping data structure of expressions represents a web site's hierarchical structure, and an enumerator, an array of characters, or an array of bytes represents the web site's content. Expressions are written in a declarative programming language, and are lazily evaluated to provide results used in HTTP responses. A mapping may be recursive. An expression may contain a function call which returns contents of a file named in the HTTP request path, or the expression may evaluate to a text string, for example. Expressions may call functions which produce side-effects. An expression may recursively map a directory name to a mapping of a file name. Scalability is promoted by concurrently evaluating expression(s) on different machines in a stateless middle tier, and by streaming results. An arbitrarily large web site may be implemented in this manner.
摘要:
Transforming portions of a message to a destination via a communication protocol. A message is received. It is detected whether the received message includes an encoded envelope. The encoded envelope includes a stack defining parameters including information for handling the received message in an original format. If the received message includes the encoded envelope, the defined parameters are transformed to coded parameters in a common format. The coded parameters express the same information for handling the received message in the communication protocol. The encoded envelope is encapsulated in the received message, and the received message in the common format is delivered to the destination. If the received message does not include an encoded envelope, coded parameters are generated in the common format for the received message by encoding addressing information from the received message. The received message having the coded parameters in the common format is delivered to the destination.
摘要:
A web services namespace pertains to an infrastructure for enabling creation of a wide variety of applications. The infrastructure provides a foundation for building message-based applications of various scale and complexity. The infrastructure or framework provides APIs for basic messaging, secure messaging, reliable messaging and transacted messaging. In some embodiments, the associated APIs are factored into a hierarchy of namespaces in a manner that balances utility, usability, extensibility and versionability.
摘要:
Transforming portions of a message to a destination via a communication protocol. A message is received. It is detected whether the received message includes an encoded envelope. The encoded envelope includes a stack defining parameters including information for handling the received message in an original format. If the received message includes the encoded envelope, the defined parameters are transformed to coded parameters in a common format. The coded parameters express the same information for handling the received message in the communication protocol. The encoded envelope is encapsulated in the received message, and the received message in the common format is delivered to the destination. If the received message does not include an encoded envelope, coded parameters are generated in the common format for the received message by encoding addressing information from the received message. The received message having the coded parameters in the common format is delivered to the destination.
摘要:
Transforming portions of a message to a destination via a communication protocol. A message is received. It is detected whether the received message includes an encoded envelope. The encoded envelope includes a stack defining parameters including information for handling the received message in an original format. If the received message includes the encoded envelope, the defined parameters are transformed to coded parameters in a common format. The coded parameters express the same information for handling the received message in the communication protocol. The encoded envelope is encapsulated in the received message, and the received message in the common format is delivered to the destination. If the received message does not include an encoded envelope, coded parameters are generated in the common format for the received message by encoding addressing information from the received message. The received message having the coded parameters in the common format is delivered to the destination.
摘要:
Transforming portions of a message to a destination via a communication protocol. A message is received. It is detected whether the received message includes an encoded envelope. The encoded envelope includes a stack defining parameters including information for handling the received message in an original format. If the received message includes the encoded envelope, the defined parameters are transformed to coded parameters in a common format. The coded parameters express the same information for handling the received message in the communication protocol. The encoded envelope is encapsulated in the received message, and the received message in the common format is delivered to the destination. If the received message does not include an encoded envelope, coded parameters are generated in the common format for the received message by encoding addressing information from the received message. The received message having the coded parameters in the common format is delivered to the destination.
摘要:
Selectively modifying a message delivery requirement of a datagram message at an intermediary network node between an origin and a destination. A message delivery requirement is defined for a particular message. The message delivery guarantee defines how to transmit the particular message. A downgrading intent of the particular message is provided for the message at the origin. The downgrading intent of the particular message indicates that the message delivery requirement can be bypassed. The defined message delivery guarantee, the network delivery requirement, and the provided downgrading intent of the particular message are processed at the intermediate network node. The message delivery requirement of the particular message is ignored based on the provided downgrading intent. The message is delivered via a network protocol according to the provided downgrading intent.
摘要:
Web sites are modeled using mappings from paths to expressions. A mapping data structure of expressions represents a web site's hierarchical structure, and an enumerator, an array of characters, or an array of bytes represents the web site's content. Expressions are written in a declarative programming language, and are lazily evaluated to provide results used in HTTP responses. A mapping may be recursive. An expression may contain a function call which returns contents of a file named in the HTTP request path, or the expression may evaluate to a text string, for example. Expressions may call functions which produce side-effects. An expression may recursively map a directory name to a mapping of a file name. Scalability is promoted by concurrently evaluating expression(s) on different machines in a stateless middle tier, and by streaming results. An arbitrarily large web site may be implemented in this manner.
摘要:
A mechanism for sending structured data using a corresponding byte stream. Upon accessing structured data such as a Simple Object Access Protocol (SOAP) envelope, a byte stream is generated. The byte stream includes bytes that represent the structured data, as well as a collection of bytes that represents properties about the byte stream such as, for example, a mode of communication. The byte stream may then be passed to a communication module (e.g., a TCP or Named Pipes module) capable of receiving and transmitting the byte stream.
摘要:
The present invention extends to using Simple Object Access Protocol (“SOAP”) to exchange typed objects, such as, for example, parameters for invoking methods. A computer system accesses typed object parameters corresponding to a typed object. The typed object is annotated with one or more message contract attributes of a message contract model defining a mapping between typed object parameters and corresponding SOAP elements. The computer system utilizes the message contract attributes to map the typed object parameters into a SOAP element and inserts the SOAP element into a SOAP envelope. A receiving computer system accessing the SOAP element and utilizes the message contract attributes to map the SOAP element back into the typed object parameters.