I just added more debug in, via:
public void rental_agreement(SOAPEnvelope req, SOAPEnvelope resp){
try {
SOAPBodyElement body = req.getFirstBody();
StreamResult result = new StreamResult( new FileOutputStream(
"agreement.raw.out" ) );
DOMSource source = new DOMSource( body );
Transformer transformer =
TransformerFactory.newInstance().newTransformer();
transformer.transform( source, result );
this.context = JAXBContext.newInstance(
"com.xerox.vanguard.rental" );
this.unmarshaller = context.createUnmarshaller();
RentalAgreement agreement =
(RentalAgreement)(unmarshaller.unmarshal( source
));
FileOutputStream file = new FileOutputStream( "agreement.out"
);
Marshaller marshaller = this.context.createMarshaller();
marshaller.marshal( agreement, file );
log.info( "Processing rental agreement number " +
agreement.getRaNumber() );
}catch( Exception e ){
log.error( "Got exception on print request", e );
}
}
Quoting [EMAIL PROTECTED]:
>
>
> I am currently using the message style service (directly processing the XML
> myself) and trying to use JAXB. When I get to actually processing the XML,
> all
> my elements that are parsed by JAXB are empty. I used tcpmon and verfied
> the
> values were ok, and also printed out the values directly in my method. Help
> please. Has anyone set this up successfully?
>
> I am using Axis 1.2 and the JAXB that comes with JWSDP 1.4
>
> I have attached my PrintService class.