Hi, this is great. I haven't read the patch yet though ... please would you open a JIRA as there is a mechanism there to say you "grant license to ASF for inclusion in ASF works".
Many thanks, Jeremy On 6/5/06, Oshani Seneviratne <[EMAIL PROTECTED]> wrote:
Hi Devs, I am doing a Google Summer of Code project to provide WSDL2.0 support for Axis2/Java. During the past few weeks I've been experimenting with Woden and found it to be very much pluggable to Axis2 in providing WSDL2.0 functionality as it has been discussed on this list before. However, I did come across a small bottleneck in my work so far. The problem was the readWSDL method which only accepts the URI of the WSDL document. Since service deployment in Axis2 is done as an AAR (Axis ARchive) file, IMHO providing the URI is very inefficient. Since other types of overloaded readWSDL methods are not currently provided in the WSDLReader interface, the only solution which came to my mind was to extract the WSDL from the archive and write it as a file to a particular location on the local file system, and then give that location as the argument to the readWSDL. I believe this involves a lot of unnecessary overhead! Therefore, taking the WSDL4J API as an example, I implemented a method which will take a DOM document element as an additional argument to the readWSDL method and return the DescriptionElement. I have attached the patch, and would really appreciate if someone could review it and apply it at http://svn.apache.org/repos/asf/incubator/woden/java/ Also, if required please let me know whether I would need to open a JIRA for this. After applying the patch you should be able to obtain a DescriptionElement with the following code snippet: ---------- WSDLReader reader = WSDLFactory.newInstance().newWSDLReader(); Document doc = org.apache.axis2.util.XMLUtils.newDocument(in); //here 'in' is an InputStream Element element = doc.getDocumentElement(); DescriptionElement desc = reader.readWSDL(null,element); //Note: the WSDL Uri could be null ---------- Thanks and Regards, Oshani. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
