DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15153>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15153 Exception classes not mapped in client stub ------- Additional Comments From [EMAIL PROTECTED] 2002-12-10 13:44 ------- It's definitely running under 1.1 beta 1. Here is a test case. It's not integrated into the Axis build - I am not sure how to do that, especially the details on how to run 1) wsdl2java 2) java2wsdl and 3) the axis server under junit. Instead, I distilled from *our* build a small case that builds the server classes, generates the client classes, installs the whole thing under tomcat. I also provided a .jsp client to exercise the test case. Also, the 'svc' script in the build (that generates the client classes) is a shell script. It depends on bash/cygwin. It will probably work on unix, but I've never tried it. To build the test case: - extract the tar archive someplace (/tmp is a good choice) with "tar xzf bug15153.tgz" - cd utl - edit build.xml to reflect where your tomcat lives - ant - ant gen-client [generates into axis-generated directory, then copies into src] - ant install - start tomcat - access http://localhost:8080/bug15153 - click the bug15153Exception button The server throws a com.cotagesoft.api.Bug15153Exception. What I think should happen (but doesn't) is that the client stub should see this and throw a com.cotagesoft.client.Bug15153Exception, because that stub was generated with a namespace-2-package mapping that specified that translation. To see how that mapping is specified, see how the svc script generates a namespace to package mapping file for use with wsdl2java Instead, the client throws a com.cotagesoft.api.Bug15153Exception, untranslated. I've also included a TCPMon capture Directories: src/com/cotagesoft/api - the server java files src/com/cotagesoft/client - the client files generated by wsdl2java src/webapps/bug15153 - the jsp page and web.xml for the service src/webservices/bug15153 - where the generated .wsdd files are kept utl - scripts, build.xml lib - the libraries I am using axis-generated - the temp directory with the generated WSDL and client files Let me know if you have trouble building this. [EMAIL PROTECTED] -- bob