apache > ws.apache
Apache Muse
 

Apache Muse - Simple Sample Project

This sample project provides an introduction to the Muse programming model: aggregation of capabilities into resource types. As noted in the programming model discussion, aggregation of capabilities is generic and does not require WSRF, WSDM, or any other web services spec. The only public spec that this example includes is WS-MetadataExchange.

The user-defined capabilities in this project - FirstCapability and SecondCapability - have operations with different signatures and they perform trivial tasks to show that things are working properly. These capabilities are added to a larger list of capabilities that make up a resource type. The complete resource type definition is communicated to clients using the WSDL (/wsdl/SimpleResource.wsdl).

The test client for this project invokes each operation on the resource type with tracing turned on - the SOAP messages that are being sent and received should appear in the console. The last operation executed is the WS-MetadataExchange GetMetadata - with this call, the client gets the resource's WSDL and then runs it through WSDL4J's WSDL parser to make sure that it is valid.