Thanks Dan, I'll give that a go today.
Andrew.
On 19 Feb 2009, at 17:48, Daniel Kulp <[email protected]> wrote:
My suggestion would be to inject the Bus into the impl in any of the
variety
of methods to do so. Then do:
Definition def =
bus.getExtension(WSDLManager.class).getDefinition("/my.wsdl");
That will get the inmemory wsdl4j version of the wsdl that we use.
For the schema, you can do:
getSchemasForDefinition(def)
but as Benson mentioned, that MAY be changing. It currently holds
both an
Element form of the schema as well as the XmlSchema SchemaCollection
form.
We'll probably be removing the Element form (so the DOMs can be
garbage
collected and use less memory) so you would need to convert the
Schemas in the
schema collection to DOM's. That said, that's pretty easy with the
newest
XmlSchema release.
Dan
On Mon February 16 2009 4:30:46 pm Andrew Clegg wrote:
Hi folks,
From inside a Provider implementation, how can I obtain the schema of
the service's request/response messages, short of reading the WSDL
myself and extracting the schema from it?
Thanks,
Andrew.
--
Daniel Kulp
[email protected]
http://www.dankulp.com/blog