I have created a simple web service using CXF (deployed to JBoss).  However
it seemed that when my service method would get called (with a Person
object) the "firstName" property would be set but the "lastName" property is
null.  I wasn't sure where the problem was so I created a subclass of
CXFServlet so that I could print out the SOAP request to the console.  Here
is what I see coming into the servlet...

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <SOAP-ENV:Body>
    <tns:addPerson xmlns:tns="http://service.foo.com/";>
      <tns:addPerson>
        <person>
          <firstName>Bob</firstName>
          <id>NaN</id>
          <lastName>Tester</lastName>
        </person>
      </tns:addPerson>
    </tns:addPerson>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Should be good from what I can see.  Any ideas what is happening?  It seems
that whatever part of CXF takes this SOAP XML and turns it into a Java
object is messing up.

I'm using CXF 2.1 and JBoss 4.2.2 (if that matters).
-- 
View this message in context: 
http://www.nabble.com/Service-Implementation-Receives-Object-with-Null-property-tp18155785p18155785.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to