|
Hi, To avoid this following error: javax.xml.transform.TransformerException: Unable to convert DOM node to a Documentyou must change the JMSClient of the loan-broker example for the loan-broker-bpel example. Indeed, values for the getLoanQuoteRequest must be a XML text message instead of properties messages. Just replace Message out = requestor.getSession().createMapMessage(); out.setStringProperty("ssn", "012-24532-53254"); out.setDoubleProperty("amount", Math.random() * 100000); out.setIntProperty("duration", (int) Math.random() * 48); Message in = requestor.request(null, out); if (in == null) { System.out.println("Response timed out."); } else { System.out.println("Response was: " + in.getDoubleProperty("rate") + " from " + in.getStringProperty("bank")); } by String request = "<getLoanQuoteRequest xmlns='urn:logicblaze:soa:loanbroker'>\n" + " <ssn>102-24532-53254</ssn>\n" + " <amount>" + Math.random() * 100000 + "</amount>\n" + " <duration>" + (int) Math.random() * 48 + "</duration>\n" + "</getLoanQuoteRequest>"; TextMessage out = requestor.getSession().createTextMessage(request); TextMessage in = (TextMessage) requestor.request(null, out); if (in == null) { System.out.println("Response timed out."); } else { System.out.println("Response: " + in.getText()); } Regards. Hélène. Guillaume Nodet wrote: You should be able to use the one from the other loanbroker demo |
- Re: Loan Broker Example Hélène JOANIN
- Re: Loan Broker Example Guillaume Nodet
- Re: Loan Broker Example Hélène JOANIN
- Loan Broker Example dadade
