I have a web-service, defined by writing its WSDL and underlaying XSD, and the java server code classes / java bindings were generated using JAXB/xjc.Everything looks fine service is running properly... but for every request (looking well-formed after receiving when looking on log-output) the nested elements seem to be always null when accessing through my java code.Can someone figure out why customerId.getCustomer() always returns null?My XSD (partly):\[code\]<?xml version="1.0" encoding="UTF-8"?><schema xmlns:tip="http://example.org/tip" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org/tip/pro"><complexType name="id"> <attribute name="id" type="int" use="required"/> <attribute name="name" type="string" use="optional"/></complexType><complexType name="customer_id"> <sequence> <element name="customer" type="tip:id" minOccurs="0"/> </sequence></complexType><element name="get_customer_request" type="tip:customer_id"/></schema>\[/code\]The generated class CustomerId:\[code\]@XmlAccessorType(XmlAccessType.FIELD)@XmlType(name = "customer_id", propOrder = {"customer"})public class CustomerId { protected Id customer; public Id getCustomer() { return customer; } public void setCustomer(Id value) { this.customer = value; }}\[/code\]The generated class for Id look similar, I don't think there is something special.In my request handler I got the following extract:Handler:\[code\]JAXBElement<?> request = requestHandler.unmarshallRequest(inputStream);Object jaxbClass = request.getDeclaredType();expectedClass = CustomerId.class;// next line does not throw exception with given XMLif (jaxbClass != expectedClass) throw new IllegalArgumentException();CustomerId customerId = (CustomerId)request.getValue();if (customerId == null) { logInfo("customerId: null");} else if (customerId.getCustomer() == null) { // this is the part that always will be executed... why? logInfo("customerId.customer: null");} else { logInfo("customer id: " + customerId.getCustomer().getId()); // return mbean.getCustomer(customerId);}\[/code\]And finally an example request XML:\[code\]<?xml version="1.0" encoding="ISO-8859-1"?><m:get_customer_request xmlns:m="http://example.org/tip/pro"> <customer id="0" name="help"/></m:get_customer_request>\[/code\]I stripped out SOAP envelope and body tags, since this is not causing any trouble.Can anyone see, what I am doing wrong? (I am pretty sure, I do...)Thanks for your effords!