thank you for your reply. you are right that ExmapleDoc ist not used in the WSDL directly . But since it inherits from AbstractDocument and AbstractDocument is part of the WSDL, it indirectly is used in the WSDL.
I guess the problem becomes more clear, if i explain in detail what we are trying to achive (caution: long post 
We want to add aditional processing logic to my existing services which run in AXIS2. Since we did not want to change those services, we decided to create a ‘ProxyService’ in IS, which contains the additional logic and then passes the request to the service running in AXIS2.
Clients would then call the ProxyService instead of the AXIS2-Service directly. In order to achive that we did the following:
- Import the WSDL of the AXIS2 Service as Consumer (this creates a connector).
- Import the WSDL of the AXIS2 Service as Provider (this creates a flow service, our ProxyService).
- Add the additional logic to the FlowService and at the end use the connector to pass the message to the AXIS2-Service.
- Call the ProxyService from the Client.
This usually works but with the WSDL posted it does not because of the following reasons:
- When importing the WSDL as consumer or provider, no subtype of AbstractDocument is created, although messages might actually contain one of the subtypes.
- When importing the WSDL as consumer or provider, AbstractDocument is no longer abstract. Clients may actually send a message containing an AbstractDocument to the service.
- The connecotr (more specifically the pub.client.soapClient always validates against AbstractDocument. When a messages containg a subtype are sent, it complains about the additional elements and rejects forwarding.
An additional problem is that, we use import elements to import our XSDs in the WSDLs of our AXIS-Services. When we import that WSDL to create a provider, the import sill points to our AXIS2-Serivce-XSDs. So messages containing a subtype are valid although the providing FlowService (ProxyService) only accepts AbstractDocument. This problem can be solved by disabling the validation for the flow service.
i found out that creating a document type that contains all elements of all subtypes of abstract document in IS might be solution. But i haven’t yet tried.
tom
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods