i have created a very simple document structure containing two document types. One (MyDocWrapper) merely wraps the actual document (MyDoc). See pictures attached Picutres Pic1 and Pic2 as well as attached Package-Zip.
I’ve given all properties of all documents the same xml namespace. Then i created a FlowService with MyDocWrapper as InputSpec and published it as a Web Service. When trying to test the service using soapui i noticed that the element ‘document’ in MyDoc must not have any value. Looking at the wsdl i found that IS is creating an “element ref” for that property ‘document’ (see picutre Pic3).
I then changed the name of the property to ‘renamed’ and everything looked as i would have expected it (see picutre Pic4).
So my conclusion is that IS thinks that there is a clash of property names in the same namespace. I am not an xml schema expert but unitl now i thought that complex types may contain elements with the same name in the same namspace. I’ve tested the service in AXIS2 ans it generates (in my view) the proper wsdl.
So what do you think ? Is the behavior of IS correct ? Or is this a ‘feature’ ?
thanks in advance for your input.
TestElement.zip (11.2 KB)