Nicolas, Does your service class method have no in/out parameter, like this ?
public void echo () { System.out.println("hello world"); } --- Nicolas Urien <[EMAIL PROTECTED]> wrote: > Hello, > > I have successfully deployed a very simple aar archive ("hello > world") into my axis tomcat server. > I started from an implementation class and so I didn't write any wsdl > file. > > I cannot generate the axis2 client stubs. Here is the exception > I get (The entity "nbsp" was referenced, but not declared.) when > executing : > > WSDL2Java.bat -uri http://localhost.urssaf.fr:8080/axis2/services/ > SimpleService?wsdl -o c:\axis2bis\bin\ > > Using AXIS2_HOME: C:\axis2bis > Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06 > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException > : Error parsing WSDL > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat > ionEngine.java:125) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: WSDLException: faultCode=PARSER_ERROR: Parser SAX Error: > Fatal Error: > URI=http://localhost.urssaf.fr:8080/axis2/services/ Line=32: The > entity "nbsp" > was referenced, but not declared.: org.xml.sax.SAXException: Fatal > Error: URI=ht > tp://localhost.urssaf.fr:8080/axis2/services/ Line=32: The entity > "nbsp" was referenced, but not declared. > at > org.apache.axis2.util.XMLUtils$ParserErrorHandler.fatalError(XMLUtils > .java:361) > at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro > r(ErrorHandlerWrapper.java:218) > at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( > XMLErrorReporter.java:386) > at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( > XMLErrorReporter.java:316) > at > com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(X > MLScanner.java:1438) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > l.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1332) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1756) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > l.scanDocument(XMLDocumentFragmentScannerImpl.java:368) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > ML11Configuration.java:834) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > ML11Configuration.java:764) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. > java:148) > at > com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser. > java:250) > at > com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc > umentBuilderImpl.java:292) > at > org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:178) > at > org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:223) > at > org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:206) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile( > CodeGenerationEngine.java:274) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat > ionEngine.java:108) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile( > CodeGenerationEngine.java:280) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat > ionEngine.java:108) > ... 2 more > C:\axis2bis\bin>WSDL2Java.bat -uri > http://localhost.urssaf.fr:8080/axis2/service > s/ SimpleService?wsdl -o c:\axis2bis\bin\ > > > What should I do please?????? > > cheers > > Extract of the generated WSDL file: > > <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:axis2="http://ws.apache.org/axis2" > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" > xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" > xmlns:ns1="http://org.apache.axis2/xsd" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > targetNamespace="http://ws.apache.org/axis2"> > <wsdl:types /> > > <wsdl:message name="echoMessage" /> > > <wsdl:message name="echoResponse" /> > > - <wsdl:portType name="SimpleServicePortType"> > - <wsdl:operation name="echo"> > <wsdl:input message="axis2:echoMessage" /> > > <wsdl:output message="axis2:echoResponse" /> > > </wsdl:operation> > > > </wsdl:portType> > > > - <wsdl:binding type="axis2:SimpleServicePortType" > name="SimpleServiceSOAP11Binding"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http" /> > > - <wsdl:operation name="echo"> > <soap:operation style="document" soapAction="urn:echo" /> > > - <wsdl:input> > <soap:body namespace="http://ws.apache.org/axis2" use="literal" > /> > > </wsdl:input> > > > - <wsdl:output> > <soap:body namespace="http://ws.apache.org/axis2" use="literal" > /> > > </wsdl:output> > > > </wsdl:operation> > > > </wsdl:binding> > > > - <wsdl:binding type="axis2:SimpleServicePortType" > name="SimpleServiceSOAP12Binding"> > <soap12:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http" /> > > - <wsdl:operation name="echo"> > <soap12:operation style="document" soapAction="urn:echo" /> > > - <wsdl:input> > <soap12:body namespace="http://ws.apache.org/axis2" > use="literal" /> > > </wsdl:input> > > > - <wsdl:output> > <soap12:body namespace="http://ws.apache.org/axis2" > use="literal" /> > > </wsdl:output> > > > </wsdl:operation> > > > </wsdl:binding> > > > - <wsdl:binding type="axis2:SimpleServicePortType" > name="SimpleServiceHttpBinding"> > <http:binding verb="POST" /> > > - <wsdl:operation name="echo"> > <http:operation location="echo" /> > > - <wsdl:input> > <mime:content type="text/xml" /> > > </wsdl:input> > > > - <wsdl:output> > <mime:content type="text/xml" /> > > </wsdl:output> > > > </wsdl:operation> > > > </wsdl:binding> > > > - <wsdl:service name="SimpleService"> > - <wsdl:port binding="axis2:SimpleServiceSOAP11Binding" > name="SimpleServiceSOAP11port0"> > <soap:address > location="http://localhost.urssaf.fr:8080/axis2/services/SimpleService" > /> > > </wsdl:port> > > > - <wsdl:port binding="axis2:SimpleServiceSOAP12Binding" > name="SimpleServiceSOAP12port0"> > <soap12:address > location="http://localhost.urssaf.fr:8080/axis2/services/SimpleService" > /> > > </wsdl:port> > > > - <wsdl:port binding="axis2:SimpleServiceHttpBinding" > name="SimpleServiceHttpport0"> > <http:address > location="http://localhost.urssaf.fr:8080/axis2/rest/SimpleService" > /> > > </wsdl:port> > > > </wsdl:service> > > > </wsdl:definitions> > > > > > > > > > Victory favors those who take pains > > > > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]