Mark-
I use a naming convention to alleviate the need for a repository. If the service name is “updateCustomer” then the web service is called “updateCustomer”, the input document is called “updateCustomerRequest” and the output document is called “updateCustomerResponse”.
I also use the schema to import my documents and then name them as described above. As you mention, I also manually remove the extraneous root node when importing, an annoying but tolerable task.
My biggest challenge became mapping the incoming XML request (which in this example contains a root node of “updateCustomerRequest”) to the imported document type. Because I removed the root node my incoming XML does not match the document type definition. This thread provides my solution which is to introspect the document “updateCustomerRequest” and determine the array fields. It imposes the document field naming restriction also discussed in this thread, but provides the benefit of easing flow service development. I suppose I could have also removed the root node from the XML request before calling the pub.xml:mlNodeToDocument service (XQL query maybe?).
Anyway, hope this helps someone!
Fred
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods