[jboss-dev-forums] [Design of JBoss jBPM] - Re: web services question

tom.baeyens@jboss.com do-not-reply at jboss.com
Tue Aug 29 04:52:05 EDT 2006


why do you mention the xsd.  if i look at your examples (which is very similar to what i want), i see a very limited schema that is fixed for all commands:

<command name="[xsd:string]" [other attibutes optional]>
  |   [any mixed content]
  | </command>
  | 

then at the server side, we would need a mapping command names and ParsableCommand classes.

do you think it would be suitable if we would use DOM for this parsing/generation of XML ?

then a ParsableCommand parser interface could look like this:

public interface ParsableCommand {
  |   Element execute(Element element);
  | }

then we need to write the infrastructure for 1 document style webservice with one method that unwraps these command from the SOAP envelopes, extract the command DOM element, lookup/instantiate the appropriate parsable command and invoke the execute method.

is that close to what you had in mind too ?

but i don't know yet which java WS technology we can use to implement this kind of infrastructure.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968018#3968018

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968018



More information about the jboss-dev-forums mailing list