Author: sagara
Date: Sat Apr  3 13:34:41 2010
New Revision: 930518

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

Modified:
    webservices/woden/Site/src/documentation/content/xdocs/userguide.xml

Modified: webservices/woden/Site/src/documentation/content/xdocs/userguide.xml
URL: 
http://svn.apache.org/viewvc/webservices/woden/Site/src/documentation/content/xdocs/userguide.xml?rev=930518&r1=930517&r2=930518&view=diff
==============================================================================
--- webservices/woden/Site/src/documentation/content/xdocs/userguide.xml 
(original)
+++ webservices/woden/Site/src/documentation/content/xdocs/userguide.xml Sat 
Apr  3 13:34:41 2010
@@ -214,20 +214,20 @@
        The following code example shows how to obtain a 
<code>WSDLFactory</code> object which is then used to obtain
        a <code>WSDLReader</code> 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 
<code>DescriptionElement</code> object. 
-       The <code>DescriptionElement</code> represents the WSDL 
&lt;description&gt; element and along with
+       from the specified URL and returns the WSDL as a 
<code>Description</code> object. 
+       The <code>Description</code> represents the Description component from 
the WSDL 2.0
+       Component model. The API declared by <code>Description</code> and its 
contained objects will be
+       referred to as the <strong>Component</strong> API. 
+       The <em>toElement</em> method on <code>Description</code> returns the 
WSDL as a 
+       <code>DescriptionElement</code> 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 <code>DescriptionElement</code> 
returns the WSDL as a 
-       <code>Description</code> object, which represents the Description 
component from the WSDL 2.0
-       Component model. The API declared by <code>Description</code> and its 
contained objects will be
-       referred to as the <strong>Component</strong> API.
        </p><source>
        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</source>
+       Description descComp = reader.readWSDL(wsdlurl);        &lt;-- the 
Description component
+       DescriptionElement descElem = descElem.toComponent();   &lt;-- the 
&lt;description&gt; element</source>
        
        <p>
        The parameter <code>wsdlurl</code> is the String representation of a 
URL, e.g.:
@@ -249,7 +249,7 @@
        </p><source>
        InterfaceElement interfaceElem = interfaces[0];
        InterfaceFaultElement[] faults = 
interfaceElem.getInterfaceFaultElements();
-       XmlSchemaElement xsElem = faults[0].getElement();</source>
+       XmlSchemaElement xsElem = faults[0].getXmlSchemaElement();</source>
        
        <p>
        Where the WSDL is composed of multiple WSDL documents via WSDL 
&lt;import&gt; and 



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

Reply via email to