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.jav
a:78) at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLR
equest(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(Application
FilterChain.java:290) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va: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(Http
11Protocol.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