XML & Web services: Riddle: "Dynamic Type" in XML scheme ?

  1. Riddle: "Dynamic Type" in XML scheme ? (1 messages)

    Hi, I got a little mind-puzzle for you here, and it is possible to solve this with XML and web services: a process P calls several webservices: P awaits a response message specified in responseScheme.xsd. The problem: depending on the webservice called, the response structure will vary. What is the most elegant way to specify a scheme which can hold all kinds of response structures from any webservice ? Regards, Jay
  2. You could use any type for this purpose. http://www.w3schools.com/schema/el_any.asp expects any schema element and you can also control what namespace that element should come from using namespace attribute. Ofcourse you would need to type cast it to specific type if you want to do something more with it. http://wiki.open-esb.java.net/Wiki.jsp?page=Jbicomps