[
https://issues.apache.org/jira/browse/WODEN-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521155
]
John Kaputin commented on WODEN-65:
-----------------------------------
Hi John,
As you said I have fixed the problems with patch files and modified codes
according to JIRA (WODEN-177). Also I have removed the woden.internal.DOMUtils
class. But I didn't touch rest of the code because still I'm having basic
questions to solve. Here I have listed below.
(1)
> > > As a beginning I have studied how serialization is implemented in
> > > WSDL4J and Apache AXIOM projects. If I summarized what I realized is
> > >
> > >
> > > (1) In WSDL4J? WSDLWriterImpl use basic Java java.io.PrintWriter
> > > to actual writing tasks and DOMUtils, DOM2Writer used to traversing > >
> > > > and formatting tasks.
> > >
> > > (2) In AXIOM - javax.xml.stream.XMLStreamWriter is used to writing
> > task.
> > >
> > >
> > > Then I came up with 2 ideas for Woden serialization implementation
> > >
> > > (1) Use an approach that similar to WSDL4J, means
> > > java.io.PrintWriter for writing task and use of DOMUtils, DOM2Writer
> > > and OMUtil, OM2Writer for other works. (In this case necessity of two
> > > Writer implementation is a question?)
> > >
> > >
> > > (2) Use one writer (may be java.io.PrintWriter or any other
> > > available writer on DOM) for DOMWriterImplemanatation and use
> > > javax.xml.stream.XMLStreamWriter for OMWrterImplematation.
(2) parseXXX () methods of WSDLWriter take XMLElement as a parameter. In my
case I use Woden Elements as parameters for printXXX() methods. I'm
interesting to have some comments on this issue also. I think this issue is
relevant to the point you mentioned in your last mail.
> Note that DOM elements (and OMElement)
> are represented in Woden by XMLElement and many of the element access
> method available via DOMUtils are now available via the XMLElement
> interface. We might need to think about how to access and use XMLElement
> objects to serialize the WSDL.
It is much easy to me go forward, If you can provide a descriptive comments for
above issues .
thanks
sagara
> Woden elements must have serialize methods
> ------------------------------------------
>
> Key: WODEN-65
> URL: https://issues.apache.org/jira/browse/WODEN-65
> Project: Woden
> Issue Type: Improvement
> Components: Parser
> Reporter: Eran Chinthaka
> Assignee: Sagara Gunathunga
> Attachments: BaseWSDLWriter.java.txt, DOMUtils.java.txt,
> DOMWSDLFactory.java.txt, DOMWSDLWriter.java.txt, OMWSDLFactory.java.txt,
> OMWSDLWriter.java.txt, sample1.java, test.wsdl, WriterFeatures.java.txt,
> WSDLFactory.java.txt, WSDLWriter.java.txt
>
>
> When we load a WSDL in to Woden object model, there is no way to serialize
> the object model in to an output stream. This is very much useful when some
> one wants to make sure Woden can properly spit out what it has read.
> And there is a requirement from Axis2 also to make Woden element serializable
> to cater for ?wsdl2 requests.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]