Hi all, I'm trying to find out the place where the WSDL fault names are converted to Java names (and the classes arround it).
In company we want to use AXIS2 and XMLBeans. So, we have a WSDL and we are able generate stub and beans, but there's a request to "hack" stub generator to generate stub methods with faults as exceptions not as xml beans. I've played with it a bit and found way to "hack" AXIS2 stub generator to do that, but there's "missing" the support from the XMLBeans side. The fault type definition is something like this: <xsd:schema targetNamespace="http://exc.pat" elementFormDefault="qualified" attributeFormDefault="qualified"> <xsd:complexType name="Exception"/> </xsd:schema> </wsdl:types> ---the original package is pat.exc The method definition is: <wsdl:operation name="methodString"> <wsdl:input message="tns:methodStringRequest" name="methodStringRequest"/> <wsdl:output message="tns:methodStringResponse" name="methodStringResponse"/> <wsdl:fault message="tns:Exception" name="Exception"/> </wsdl:operation> When I run XMLBeans generator the final package structure generated is: pat.exc.Exception - an interface pat.exc.impl.ExceptionImpl - the interface implementation pattest.ExceptionDocument - an interface pattest.impl.ExceptionDocumentImpl - the interface implementation This is still acceptable. The pronlem starts in the SchemaTypeSystem, because in the STS the bundle between QName({http://pattest}Exception) and the real Java name contains only information about pattest.ExceptionDocument, but I need to push the STS to return pat.exc.Exception for the QName({http://pattest}Exception). Where is the place to "hack" the STS - I've dabug a lot, but without luck :-\ I'm using methods STS.documentTypes().getDocumentElementName() and STS.documentTypes().getFullJavaName() for getting QName and Java name Can someone help me ??? Thanks to all. Pat --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

