(Sorry if you get this twice) I've actually read this article and found it quite illuminating indeed. Now your problem might be that in the code provided, the WSDL file that you give to the WSDLReader has some import statements or anyway assumes that it should have. This has to do with how a scenario of a search in UDDI goes. If you provide the Reader with a straight-through WSDL file (meaning that it does not implement any interface or equivalently does not contain any import statements) tis exception you mentioned is thrown. The solution would be to comment out the code that looks for import elements. Hope that helps. Let me know how things went cos I'm interested too.
Costas ----- Original Message ----- &Agr;&pgr;&oacgr;: Ben Wyckoff <[EMAIL PROTECTED]> &EEgr;&mgr;&egr;&rgr;&ogr;&mgr;&eegr;&ngr;&iacgr;&agr;: &Pgr;&eacgr;&mgr;&pgr;&tgr;&eegr;, &PHgr;&egr;&bgr;&rgr;&ogr;&ugr;&aacgr;&rgr;&igr;&ogr;&sfgr; 20, 2003 5:57&pgr;.&mgr;. &THgr;&eacgr;&mgr;&agr;: wsdl4j compatibility > Hello, > I am a relatively new Axis user, and I have been trying to > both create and consume web services. I found an interesting > article > at > <" target="l">http://www- > 106.ibm.com/developerworks/webservices/library/ws-udax.html? dwzone=webservices> > on Dynamic Discovery and Invocation of Web Services which uses > uddi4j, wsdl4j, and Axis to discover a service, parse the WSDL, > and > then invoke using Axis. > > I'm not interested in the uddi4j now, but am very interested in > the > wsdl parsing and Axis invocation steps. Using wsdl4j to extract > the > relevant data from a wsdl file automatically would be a big help > for > me. > > Unfortunately, the only file the wsdl4j WSDLReader seems to parse > ok > is the WebMath_Impl.wsdl file that is part of the sample code for > the > article. I tried the WSDL from Axis 1.0 and 1.1RC1 .jws?wsdl > services, and also from a few services offered through > xmethods.com. > In all the failure cases, I get the following error: > > WSDLException: faultCode=OTHER_ERROR: No WSDL interface definition > found. > And yet, these services do work, and both Axis and SOAP::Lite > clients > can process the WSDL and make successful queries. > > Can anybody offer any insight or alternatives? > > thanks, > Ben >
