When I try to compile the provider class, in this example, this java file: package tesi; import java.io.*; import java.util.*; import prova.*;
public class application_controller { public GetComp() { servizio s = new servizio(); composizione c = new composizione( s.c_Nomefile1, s.c_Nomefile2, s.c_Nomefile ); } } I receive this error: application_controller.java:8: invalid method declaration; return type required public GetComp() { ^ 1 error HOW CAN I SOLVE THIS PROBLEM? ----- Original Message ----- From: "Scott Nichol" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 13, 2004 2:08 PM Subject: Re: problem in deploying a web service With Apache SOAP 2.3.1, you cannot have whitespace in the faultListener element. The problem is fixed in the current code base. You need to change <isd:faultListener> org.apache.soap.server.DOMFaultListener </isd:faultListener> to <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene r> then re-deploy (undeploy followed by deploy with new dd file) the service. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Francesco Dipalo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 13, 2004 7:49 AM Subject: problem in deploying a web service I want to deploy a service. I executed the following operations: - deploying with Apache SOAP using a deployment descriptor file named WebService: <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" id="urn:CompService"> <isd:provider type="java" scope="Application" methods="getComp"> <isd:java class="tesi.application_controller" static="false"/> </isd:provider> <isd:faultListener> org.apache.soap.server.DOMFaultListener </isd:faultListener> <isd:mappings> </isd:mappings> </isd:service> - invoking the getCount method using this java file named GetCompApp package tesi; import java.net.*; import org.apache.soap.*; import org.apache.soap.rpc.*; public class GetCompApp { public static void main(String[] args) throws Exception { URL url = new URL( "http://localhost:8080/soap/servlet/rpcrouter"); Call call = new Call(); call.setTargetObjectURI("urn:CompService"); call.setMethodName("getComp"); try { Response resp = call.invoke(url, ""); Parameter ret = resp.getReturnValue(); Object value = ret.getValue(); System.out.println("Result is " + value); } catch (SOAPException e) { System.err.println("Caught SOAPException (" + e.getFaultCode() + "): " + e.getMessage()); } } } but I received this exception: Caught SOAPException (SOAP-ENV:Protocol): Unsupported response content type &quo t;text/html; charset=ISO-8859-1", must be: "text/xml". Response w as: <html><head><title>Apache Tomcat/4.1.30 - Error report</tit le><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color : white ;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : w hite;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;col or : black;background-color : white;} B{color : white;background-color : #0086b2 ;} HR{color : #0086b2;} --></STYLE> </head><body><h1> HTTP Status 500 - </h1><HR size="1" noshade><p><b >type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>T he server encountered an internal error () that prevented it from fulfilling thi s request.</u></p><p><b>exception</b> <pre>j avax.servlet.ServletException: Error building response envelope: java.lang.NullP ointerException at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet. java:418) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:19 9) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ssConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) </pre></p><HR size="1" noshade><h3>Apache Tomc at/4.1.30</h3></body></html> HOW CAN I RESOLVE THE PROBLEM???? -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Vuoi risparmiare sulla tua polizza RCAuto? Fai un preventivo online e blocca * il prezzo ottenuto! Puoi risparmiare fino al 40%! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid'12&d-10 -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Natsabe.it significa Natura, Salute e Bellezza ... ma non solo! * Vasta scelta di articoli da regalo. Belli e originali. Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1306&d=13-10