Are you trying this by typing http://yourmachine:port/axis2/services/customerservice/getCustomer?id=foo in the browser or programatically... If it's the later, what do you get when you type that in the browser? Normally I experience this working directly from the browser without doing any configuration changes.
Can you see the service wsdl in the following location.. http://yourmachine:port/axis2/services/customerservice?wsdl thanks, Thilina On Sun, May 18, 2008 at 2:04 PM, <[EMAIL PROTECTED]> wrote: > Hello together, > > I have the problem, that I can not send HTTP requests without SOAP to my > Axis2 Server. > > Im my "axis2.xml" I have configured the following: > > <parameter name="enableRESTInAxis2MainServlet" >true</parameter> > <parameter name="disableSeparateEndpointForREST">true</parameter> > <parameter name="disableREST">false</parameter> > > It's for getting REST and SOAP at the same Endpoint. > > Now I have a simple method like this : > > > > public > String getCustomer(String id){ > > return id; } > > > And this is the error returning from from the server: What does that means? > > org.apache.axis2.AxisFault: The service cannot be found for the endpoint > reference (EPR) /axis2/services/customerservice/getCustomer at > org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:62) > at org.apache.axis2.engine.Phase.invoke(Phase.java:308) at > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at > org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) > at > org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:78) > at > org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:788) > at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:193) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:619) > > > > Please, help me . It is very urgent for me to get started with REST ... > > Thanks a lot. > > Jörn > > > > > > -- Thilina Gunarathne - http://thilinag.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
