-
1. Re: artifacts from wsconsume serializable?
dmitry.kudrenko Jul 10, 2008 6:14 AM (in response to regget)Hello, I think it should be supported based on bossws-native-3.0.2.GA change log. I didn't notice your post and created the similar:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138784
Unfortunately, no answers.
Based on Feature Request:
* [JBWS-1278] - WSDL To Java, add a configuration option so all generated types can implement java.io.Serializable
Look to the jira thread for details:
http://jira.jboss.org/jira/browse/JBWS-1278
Really, I don't understand how to generate serialisable artifacts by wsdl and which tool you for this. Please, let me know if you have a progress with this. Thank you for any help. -
2. Re: artifacts from wsconsume serializable?
dmitry.kudrenko Jul 24, 2008 3:22 AM (in response to regget)Use binding file to generate serializable artifacts:
1. create the file, for example, jaxb-bindings.xml
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" elementFormDefault="qualified" attributeFormDefault="unqualified"
jaxb:extensionBindingPrefixes="xjc" jaxb:version="1.0">
<xs:annotation>
<xs:appinfo>
<jaxb:globalBindings>
<xjc:serializable />
</jaxb:globalBindings>
</xs:appinfo>
</xs:annotation>
</xs:schema>
2. Use -b key to specify binding file for wsconsume. Unfortunately, this key didn't work for me with wsconsume. It is why I used JAX-WS wsimport instead of wsconsume. It generates the same code but binding works and it has maven plugin to work with.
Hope this information will help you.