You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-dev@ws.apache.org by sc...@apache.org on 2005/04/25 16:25:20 UTC

svn commit: r164579 - /incubator/hermes/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt

Author: scamp
Date: Mon Apr 25 07:25:20 2005
New Revision: 164579

URL: http://svn.apache.org/viewcvs?rev=164579&view=rev
Log: (empty)

Added:
    incubator/hermes/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt

Added: incubator/hermes/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt?rev=164579&view=auto
==============================================================================
--- incubator/hermes/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt (added)
+++ incubator/hermes/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt Mon Apr 25 07:25:20 2005
@@ -0,0 +1,58 @@
+ <!-- WS-METADATA EXAMPLE -->   
+    <service name="sushi">  
+    
+       <!-- Here is where the normal resource definition block is. -->
+    
+    
+       <!-- Add an ADDITIONAL resource block to the service, for which you would like to associate metadata,
+            with the name "metadata" and type called "org.apache.ws.util.jndi.tools.MetadataConfig" 
+            
+            The org.apache.ws.util.jndi.tools.MetadataConfig object containing the metadata is available via
+            JNDI using a Context lookup of "wsrf/services/{sevice_name}/metadata" .. i.e. ctx.lookup("wsrf/services/sushi/metadata");
+       -->
+            
+       <!-- Example Metadata Resource -->     
+       <resource name="metadata" type="org.apache.ws.util.jndi.tools.MetadataConfig">
+         
+         <!-- Required metadata-config tag -->
+         <metadata-config> 
+      
+           <!-- 
+               Each of the following blocks represent different ways of configuring where your metadata files are located.             
+          The files should be "reachable" at the configured locations.                
+           -->   
+           
+           <!-- classpath -->
+           <metadata Dialect="http://www.w3.org/2001/XMLSchema" Identifier="http://ws.apache.org/resource/properties/test/sushi_classpath">
+            <Location>org/apache/ws/resource/properties/SushiProperties.xsd</Location>
+           </metadata>
+            
+           <!-- file -->
+           <metadata Dialect="http://www.w3.org/2001/XMLSchema" Identifier="http://ws.apache.org/resource/properties/test/sushi_file">
+            <Location>C:/Projects/apache/apollo/trunk/src/test/org/apache/ws/resource/properties/SushiProperties.xsd</Location>
+           </metadata>
+            
+           <!-- http url -->
+           <metadata Dialect="http://www.w3.org/2001/XMLSchema" Identifier="http://ws.apache.org/resource/properties/test/sushi_url">
+            <Location>http://localhost:8080/wsrf/SushiProperties.xsd</Location>
+           </metadata>
+            
+           <!-- file url -->
+           <metadata Dialect="http://www.w3.org/2001/XMLSchema" Identifier="http://ws.apache.org/resource/properties/test/sushi_fileurl">
+            <Location>file://C:/Projects/apache/apollo/trunk/src/test/org/apache/ws/resource/properties/SushiProperties.xsd</Location>
+           </metadata>
+            
+           <!-- EndpointReference -->
+           <metadata Dialect="http://www.w3.org/2001/XMLSchema" Identifier="http://ws.apache.org/resource/properties/test/sushi_epr">           
+             <MetadataReferece>
+               <wsa:Address xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" >http://localhost:8080/wsrf/services/sushi</wsa:Address>
+               <wsa:ReferenceProperties xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
+                 <s:ResourceID xmlns:s="http://ws.apache.org/resource/properties/test/sushi">1</s:ResourceID>
+               </wsa:ReferenceProperties>
+             </MetadataReferece>                           
+           </metadata>                   
+         
+          </metadata-config>         
+        </resource>      
+    </service>
+ <!-- END WS-METADATA EXAMPLE -->  
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: hermes-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: hermes-dev-help@ws.apache.org