Author: sagara
Date: Sat Apr  3 13:37:56 2010
New Revision: 930522

URL: http://svn.apache.org/viewvc?rev=930522&view=rev
Log:
Corrections for User guide (Woden -218 ).

Modified:
    webservices/woden/Site/build/site/userguide.html

Modified: webservices/woden/Site/build/site/userguide.html
URL: 
http://svn.apache.org/viewvc/webservices/woden/Site/build/site/userguide.html?rev=930522&r1=930521&r2=930522&view=diff
==============================================================================
--- webservices/woden/Site/build/site/userguide.html (original)
+++ webservices/woden/Site/build/site/userguide.html Sat Apr  3 13:37:56 2010
@@ -428,21 +428,21 @@ document.write("Last Published: " + docu
        The following code example shows how to obtain a <span 
class="codefrag">WSDLFactory</span> object which is then used to obtain
        a <span class="codefrag">WSDLReader</span> object (the WSDL parser). 
        WSDL validation is then enabled on the reader, before the 
<em>readWSDL</em> method reads a WSDL document
-       from the specified URL and returns the WSDL as a <span 
class="codefrag">DescriptionElement</span> object. 
-       The <span class="codefrag">DescriptionElement</span> represents the 
WSDL &lt;description&gt; element and along with
+       from the specified URL and returns the WSDL as a <span 
class="codefrag">Description</span> object. 
+       The <span class="codefrag">Description</span> represents the 
Description component from the WSDL 2.0
+       Component model. The API declared by <span 
class="codefrag">Description</span> and its contained objects will be
+       referred to as the <strong>Component</strong> API. 
+       The <em>toElement</em> method on <span 
class="codefrag">Description</span> returns the WSDL as a 
+       <span class="codefrag">DescriptionElement</span> object, which 
represents the WSDL &lt;description&gt; element and along with
        its contained objects, it declares an API that maps to the XML elements 
and attributes in the 
        WSDL 2.0 namespace. This will be referred to as the 
<strong>Element</strong> API.
-       The <em>toComponent</em> method on <span 
class="codefrag">DescriptionElement</span> returns the WSDL as a 
-       <span class="codefrag">Description</span> object, which represents the 
Description component from the WSDL 2.0
-       Component model. The API declared by <span 
class="codefrag">Description</span> and its contained objects will be
-       referred to as the <strong>Component</strong> API.
        </p>
 <pre class="code">
        WSDLFactory factory = WSDLFactory.newInstance();
        WSDLReader reader = factory.newWSDLReader();
        reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
-       DescriptionElement descElem = reader.readWSDL(wsdlurl);        &lt;-- 
the &lt;description&gt; element
-       Description descComp = descElem.toComponent();                 &lt;-- 
the Description component</pre>
+       Description descComp = reader.readWSDL(wsdlurl);        &lt;-- the 
Description component
+       DescriptionElement descElem = descElem.toComponent();   &lt;-- the 
&lt;description&gt; element</pre>
 <p>
        The parameter <span class="codefrag">wsdlurl</span> is the String 
representation of a URL, e.g.:
        </p>
@@ -464,7 +464,7 @@ document.write("Last Published: " + docu
 <pre class="code">
        InterfaceElement interfaceElem = interfaces[0];
        InterfaceFaultElement[] faults = 
interfaceElem.getInterfaceFaultElements();
-       XmlSchemaElement xsElem = faults[0].getElement();</pre>
+       XmlSchemaElement xsElem = faults[0].getXmlSchemaElement();</pre>
 <p>
        Where the WSDL is composed of multiple WSDL documents via WSDL 
&lt;import&gt; and 
        &lt;include&gt;, you can navigate the WSDL modules using the methods



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to