A couple of comments about the current implementation of different soap schemas
(aka 1999 and 2000):
I was heartened to see that the support for different soap schemas is much more
extensive in 2.2. However, there still isn
't a way to set the type of schema
generated without recompiling the entire soap source. Even more
tantalizing/hopeful/irritating is the constructor for SOAPMappingRegistry which
takes a schema uri. This works quite well for the registry, so the final
message is half whatever you set, and half the hardcoded defaults. oops.
Just my opinion here, but I think it should be possible to set the schema on a
per-call basis, as in
protected Call call = new Call();
call.setSchema( Constants.NS_URI_2000_SCHEMA );
Note that this constant does not exist right now: setting it would cause both
the XSD and XSI constants to be updated properly. Picture the scenario where I
am making calls to 2 third party services, one which is 2001 and one which is
still 1999.
Just to get more technical, imho the current schema is not a constant and does
not belong in the constants class; it is a state and belongs in a properties
class. It was a particularly nice touch to make NS_URI_CURRENT_SCHEMA_XSD and
NS_URI_CURRENT_SCHEMA_XSI "final" so you can't just recompile that class, you
have to recompile everything.
Is there someone in the know who can comment on future support for this?
thanks,
-doug thompson
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]