You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Sagara Gunathunga (JIRA)" <ji...@apache.org> on 2010/12/29 08:05:46 UTC

[jira] Resolved: (WODEN-218) User Guide examples do not correspond with current API

     [ https://issues.apache.org/jira/browse/WODEN-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  resolved WODEN-218.
--------------------------------------

    Resolution: Fixed
      Assignee: Sagara Gunathunga   (was: John Kaputin)

Already fixed. 

> User Guide examples do not correspond with current API
> ------------------------------------------------------
>
>                 Key: WODEN-218
>                 URL: https://issues.apache.org/jira/browse/WODEN-218
>             Project: Woden
>          Issue Type: Bug
>          Components: Website
>         Environment: http://ws.apache.org/woden/userguide.html#Getting+Started
>            Reporter: Sebb
>            Assignee: Sagara Gunathunga 
>             Fix For: M9
>
>         Attachments: WODEN-218.diff
>
>
> The User Guide includes the following code samples:
>        WSDLFactory factory = WSDLFactory.newInstance();
>        WSDLReader reader = factory.newWSDLReader();
>        reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
>        DescriptionElement descElem = reader.readWSDL(wsdlurl);  // WRONG readWSDL returns a Description
>        Description descComp = descElem.toComponent(); 
> It's not clear how to get the descElem from the reader; this makes many of the following method calls impossible to use.
> ...
>         InterfaceElement interfaceElem = interfaces[0];
>         InterfaceFaultElement[] faults = interfaceElem.getInterfaceFaultElements();
>         XmlSchemaElement xsElem = faults[0].getElement(); // WRONG should be getXmlSchemaElement()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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