I have been playing around with this example in Eclipse and it appears to be 
failing due to the following line returning nothing.  There is a context so the 
resource injection appears to have succeeded.  I saw a couple of JIRA posts 
that get(MessageContext.REFERENCE_PARAMETERS)  coming up empty was a problem in 
the past that was supposedly fixed before the release of 1.4.  
List list = 
(List)getContext().getMessageContext().get(MessageContext.REFERENCE_PARAMETERS);



If this code is removed from the sample it will work.

if (list.isEmpty()) {

AddNumbersException faultInfo = new AddNumbersException();

faultInfo.setMessage("No ticket found.");

throw new AddNumbersException_Exception(faultInfo.getMessage(), faultInfo);

}

Element element = (Element) list.get(0);


if (!"123456789".equals(element.getTextContent())) {

AddNumbersException faultInfo = new AddNumbersException();

faultInfo.setMessage("Invalid ticket: " + element.getTextContent());

throw new AddNumbersException_Exception(faultInfo.getMessage(), faultInfo);

}



Regards,

Bill

Reply via email to