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

alex.guizar@jboss.com do-not-reply at jboss.com
Tue Aug 29 13:04:45 EDT 2006


I hadn't had a chance to follow this topic. Hopefully my input will still be useful before Ronald goes to Aruba :)

In general you should defer as much Java-XML binding to the web services stack as you can. Custom parsing should be avoided as it is hard to optimize. Something like:

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

maps, per JAX-RPC rules, to

class Command {
  |   String name;
  |   SOAPElement _any;
  | }

The SOAP stack parses the [any mixed content] to produce the SOAPElement. Then the application processes the SOAPElement to produce Java objects. Result: two separate binding steps!

Plus, every command is a separate contract and should have its own document. Something like Ronald's proposal:

<startProcess>
  |   <processDefinition .../>
  |   <variables ...>
  | </startProcess>

is a lot better. What is unclear to me is how to introduce new commands. Is each of them a new operation in the WSDL port type?


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

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



More information about the jboss-dev-forums mailing list