Aodr9XHr69 (1) [Avatar] Offline
Ch. 4, PDF p. 72: "Extending this infrastructure—to deal with XML objects, for example—is a simple
matter of creating an XmlMessageAdapter (or using the XmlObject that we created in
chapter 2) and adding a new endpoint that can accept it."

What is your suggested way to do this with XML? I implemented XmlMessageAdapter similar to XmlObject from Chapter 2 (i.e. implementing IQuackFu), but since customer_id is returned as a string (i.e. InnerText), a "Specified cast is not valid" exception is thrown when the NewOrderMessage constructor is called, since it's expecting an int. Seems like JSON is more amenable to IQuackFu than XML since it's more strongly typed with respect to numbers and arrays.