Thanks Hélène.
Could you please raise a JIRA and provide a patch for this ?

On 10/3/06, Hélène JOANIN <[EMAIL PROTECTED]> wrote:

 Hi,

 To avoid this following error:

javax.xml.transform.TransformerException: Unable to convert
DOM node to a Document
 you 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
 without any problems.

 On 10/3/06, dadade <[EMAIL PROTECTED]> wrote:


 Hmm. I see that the loan broker example in the ServiceMix 3.0 (source
 version) is actually the loan broker bpel example in the binary downloaded
 version.

 Where is the client to run the loan broker bpel example?

 Thanks


 dadade wrote:
 >
 > Hi,
 >
 > I am looking at the ServiceMix 3.0 loan broker example (binary
 > downloaded).  I don't see any WSDL files there.  However, when I
 > downloaded ServiceMix 3.0 loan broker example (source downloaded), I see
 > the WSDL files, but I don't see the java files like the
 > LenderGateyway.java, Constants.java.  What are the differences between
the
 > loan broker example in the binary vs the source downloaded version?
 >
 > How do I run the loan broker example?
 >
 > Thanks
 >
 >

 --
 View this message in context:
http://www.nabble.com/Loan-Broker-Example-tf2373700.html#a6613372
 Sent from the ServiceMix - User mailing list archive at Nabble.com.








--
Cheers,
Guillaume Nodet

Reply via email to