|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (AW-479) marshalling to a xml file through the Default handlermarshalling to a xml file through the Default handler
----------------------------------------------------- Key: AW-479 URL: http://jira.codehaus.org/browse/AW-479 Project: AspectWerkz Issue Type: Wish Reporter: sathya Attachments: AxisContentHandler.java, CastorSerializer.java This is with reference to the example given in the link http://issues.apache.org/jira/browse/AXIS-1556?page=history I am trying to marshall the value object to a xml file. I added the code in the CastorSerializer class -------------------------------------------------------------------------------------------------------------------------------------------------------------- public static void main(String args[]) { Calendar value=new Calendar(); //calendar is the object to be marshalled Value.setDate("fifth"); Value.setMonth("august"); Value.setYear("twentieth"); new CastorSerializer().serialize(new QName(" "," "),null,value,new SerializationContextImpl(new PrintWriter(new FileOutputStream("/home/value.xml"); } ----------------------------------------------------------------------------------------------------------------------------------------------------------------- The result that i see is value.xml file is created but no contents are being written into it. Please say me where I went wrong. I have gone around searching web to find the fault, but I could not spot out. Reply as soon as possible friend..... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (AW-479) marshalling to a xml file through the Default handler[ http://jira.codehaus.org/browse/AW-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=144149#action_144149 ] sathya commented on AW-479: --------------------------- Adding to the post, I tried overridding public void startDocument() and endDocument() methods in AxisContentHandler class. Both these methods are not called while marshalling. I would like to know when these methods will be called. I have an understanding that these two methods will be called when the xml file is opened for marshalling the object into the file. But it seems to be wrong. Plz correct me... > marshalling to a xml file through the Default handler > ----------------------------------------------------- > > Key: AW-479 > URL: http://jira.codehaus.org/browse/AW-479 > Project: AspectWerkz > Issue Type: Wish > Reporter: sathya > Attachments: AxisContentHandler.java, CastorSerializer.java > > > This is with reference to the example given in the link > http://issues.apache.org/jira/browse/AXIS-1556?page=history > I am trying to marshall the value object to a xml file. > I added the code in the CastorSerializer class > -------------------------------------------------------------------------------------------------------------------------------------------------------------- > public static void main(String args[]) > { > Calendar value=new Calendar(); //calendar is the object to be marshalled > Value.setDate("fifth"); > Value.setMonth("august"); > Value.setYear("twentieth"); > new CastorSerializer().serialize(new QName(" "," "),null,value,new SerializationContextImpl(new PrintWriter(new FileOutputStream("/home/value.xml"); > } > ----------------------------------------------------------------------------------------------------------------------------------------------------------------- > The result that i see is value.xml file is created but no contents are being written into it. Please say me where I went wrong. > I have gone around searching web to find the fault, but I could not spot out. > Reply as soon as possible friend..... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (AW-479) marshalling to a xml file through the Default handler[ http://jira.codehaus.org/browse/AW-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=144353#action_144353 ] sathya commented on AW-479: --------------------------- Please reply to this mail, as its an important issue to be solved for me.. (Visible to jira-users group) > marshalling to a xml file through the Default handler > ----------------------------------------------------- > > Key: AW-479 > URL: http://jira.codehaus.org/browse/AW-479 > Project: AspectWerkz > Issue Type: Wish > Reporter: sathya > Attachments: AxisContentHandler.java, CastorSerializer.java > > > This is with reference to the example given in the link > http://issues.apache.org/jira/browse/AXIS-1556?page=history > I am trying to marshall the value object to a xml file. > I added the code in the CastorSerializer class > -------------------------------------------------------------------------------------------------------------------------------------------------------------- > public static void main(String args[]) > { > Calendar value=new Calendar(); //calendar is the object to be marshalled > Value.setDate("fifth"); > Value.setMonth("august"); > Value.setYear("twentieth"); > new CastorSerializer().serialize(new QName(" "," "),null,value,new SerializationContextImpl(new PrintWriter(new FileOutputStream("/home/value.xml"); > } > ----------------------------------------------------------------------------------------------------------------------------------------------------------------- > The result that i see is value.xml file is created but no contents are being written into it. Please say me where I went wrong. > I have gone around searching web to find the fault, but I could not spot out. > Reply as soon as possible friend..... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Closed: (AW-479) marshalling to a xml file through the Default handler[ http://jira.codehaus.org/browse/AW-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexandre Vasseur closed AW-479. -------------------------------- Resolution: Not A Bug this relates to Axis, not AspectWerkz. - user mistake > marshalling to a xml file through the Default handler > ----------------------------------------------------- > > Key: AW-479 > URL: http://jira.codehaus.org/browse/AW-479 > Project: AspectWerkz > Issue Type: Wish > Reporter: sathya > Attachments: AxisContentHandler.java, CastorSerializer.java > > > This is with reference to the example given in the link > http://issues.apache.org/jira/browse/AXIS-1556?page=history > I am trying to marshall the value object to a xml file. > I added the code in the CastorSerializer class > -------------------------------------------------------------------------------------------------------------------------------------------------------------- > public static void main(String args[]) > { > Calendar value=new Calendar(); //calendar is the object to be marshalled > Value.setDate("fifth"); > Value.setMonth("august"); > Value.setYear("twentieth"); > new CastorSerializer().serialize(new QName(" "," "),null,value,new SerializationContextImpl(new PrintWriter(new FileOutputStream("/home/value.xml"); > } > ----------------------------------------------------------------------------------------------------------------------------------------------------------------- > The result that i see is value.xml file is created but no contents are being written into it. Please say me where I went wrong. > I have gone around searching web to find the fault, but I could not spot out. > Reply as soon as possible friend..... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |