From 200a40b332420f94992eb39a6d0ea1cf1490ffc4 Mon Sep 17 00:00:00 2001 From: coreyg Date: Fri, 21 Nov 2014 09:30:19 +0000 Subject: Adding tuscany's website to their svn repo for svnpubsub git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1640879 13f79535-47bb-0310-9956-ffa450edef68 --- site/trunk/site-publish/sca-java-tools-guides.html | 176 +++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 site/trunk/site-publish/sca-java-tools-guides.html (limited to 'site/trunk/site-publish/sca-java-tools-guides.html') diff --git a/site/trunk/site-publish/sca-java-tools-guides.html b/site/trunk/site-publish/sca-java-tools-guides.html new file mode 100644 index 0000000000..89fb33d91c --- /dev/null +++ b/site/trunk/site-publish/sca-java-tools-guides.html @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + Apache Tuscany : SCA Java Tools Guides + + + + + + + + + + + + + + + +
+ + + + +   + +
+ + +
+
+ + + + + + + + + +
+  Apache Tuscany > Home > SCA Overview > SCA Java > Java SCA Documentation Menu > SCA Java Tools Guides + + User List | Dev List | Issue Tracker   +
+ + + + + + + +
+ + +
+ +
+
+

contrib2wsdl

+ +

Usage

+ +
+
+java org.apache.tuscany.tools.contrib2wsdl.Contrib2WSDL -c ./MyContribution -o ./myOutputDir
+
+
+ +

Description

+ +

When you use binding.ws as a service binding you can ask the runtime to generate a WSDL description of the service endpoint. For example, given the component description...

+ +
+
+<component name="Component1">
+  <implementation.java class="test.ComponentImpl"/>
+  <service name="ComponentService">
+    <binding.ws uri="http://localhost:8080/Component1/ComponentService"/>
+  </service>
+</component>
+
+
+ +

Then when you point your browser at http://localhost:8080/Component1?wsdl you will get the WSDL document that describes the Component1/ComponentService service.

+ +

The contrib2wsdl tool generates WSDL documents for all such service endpoints in the composite at the same time and writes the resulting WSDL documents to the specified directory. Given a contribution of the following structure...

+ +
+
+MyDirectory
+  MyContribution
+    test
+      CompoentImpl.class
+    mycomposite.composite
+      <composite>
+        <component name="Component1">
+          <implementation.java class="test.ComponentImpl"/>
+          <service name="ComponentService">
+            <binding.ws uri="http://localhost:8080/Component1/ComponentService"/>
+          </service>
+       </component>
+        <component name="Component2">
+          <implementation.java class="test.ComponentImpl"/>
+          <service name="ComponentService">
+            <binding.ws uri="http://localhost:8080/Component1/ComponentService"/>
+          </service>
+       </component>
+     </composite>
+
+
+ +

WSDL files can be generated using the commands as follows...

+ +
+
+cd MyDirectory
+java org.apache.tuscany.tools.contrib2wsdl.Contrib2WSDL -c MyContribution -o MyOutput
+
+
+ +

This results in two WSDL files in the MyOutput directory. One for the Component1/ComponentService and one for the Component2/ComponentService.

+ +

Both -c and -o default to the current directory.

+
+
+
+ + +
+ + + + + + website stats + + + + + + -- cgit v1.2.3