Honestly, we don't have any control over this level of serialization.  We just 
hand the jaxb objects over to the jaxb runtime and let it handle it.  
(providing you are really using JAXB and not aegis)   Thus, if this is being 
handled wrong, that would be a bug there.

Definitely check to make sure you have the latest JAXB jars.  Otherwise, you 
might need to write a simple pure jaxb example and send it off to the jaxb 
folks to debug.

Dan


On Wednesday 24 September 2008 1:56:09 am Kugaprakash Visagamani wrote:
> Hi,
> Can anyone help me with following issue:
> In the XSD I have a schema defined as follows:
>
> <complexType name="TestObject">
>       <complexContent>
>         <sequence>
>           <element name="xyz_properties" minOccurs="0"
> type="ib:bootp_props"/>
>           <element name="client_name" minOccurs="0" type="string"/>
>         </sequence>
>       </complexContent>
> </complexType>
>
> Using WsdlToJava the following is the generated class:
>
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "TestObject", propOrder = {
>     "xyzProperties",
>     "clientName"}
> public class TestObject
> {
>     @XmlElement(name = "xyz_properties")
>     protected BootpProps bootpProperties;
>     @XmlElement(name = "client_name")
>     protected String clientName;
>
> When doing on object read (SOAP) everything gets Unmarshalled correctly
> and this TestObject is filled correctly.
>
> BUT: When try do a Object Write (SOAP) the xml response instead of send
> the properties as "xyz_properties" or "client_name". It is sending as
> xyzProperties & clientName.
>
> Is there any setting we need to do to be able send it as "_" ?
> Thanks
> Kuga



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to