Runtime mapping of types?
Alan Su <[email protected]> Mon, 20 Mar 2006 12:16:25 -0500
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I'm trying to build a Java application that does the following: - using WSIFUtils.readWSDL(), i read a WSDL file, yielding me an object of type javax.wsdl.Definition - within the definition, i identify the port and operation i want to invoke - i can then drill down further to get the input and output messages, as well as their parts - i also run the Definition object through org.apache.wsif.schema.Parser.getAllSchemaTypes() to get all the dependent complex types so far, this is all working: i can output a comprehensive list of types defined in the WSDL, and i can identify the parts for both the input and output messages for a given operation. at this point, what i'd like to do is run the WSDL through the WSDL2Java utility to get the Java code for the types to which i need to map my parameters for the selected operation, compile that code, and load it. i haven't gotten that last dynamic compilation step working quite yet, but looking forward, i don't see how to obtain the name of the class i need, from each of the javax.wsdl.Message objects that i have. it seems there used to be an interface called WSDL2JavaMapper, but in the wsif-2.0 distribution that i have downloaded and installed, this interface doesn't exist. can someone clue me in as to what the "right way" to do this dynamic code generation/mapping step would be? thanks! -alan