> This is my AJAX call code happens on click of a button
>
> * # Get Data:
> function sendRequest(method, url)
> {
> method == 'POST';
> {
> http.open(method,url,true);
> http.onreadystatechange = handleResponse;
> http.send(null);
> }
> }*
It looks like the "send(null)" is turning the request into a GET instead of a
POST. In anycase, if this is a SOAP service (which, since you have a WSDL, I
assume it is), you would need to post a valid SOAP message to the service.
If you have the cxf-rt-javascript lib in the services path, you may be able to
do a ?js on the URL to get a javascript based client that can call on the
service. That may be usable for you.
Dan
On Wednesday, December 14, 2011 2:35:07 AM [email protected] wrote:
> Hi ,
>
> we have developed a webservice based on Apache CXF .
>
> This is working fine when accessed normally that is using APIGEE or by using
> a JaxWsProxyFactoryBean (A clinet for Apache CXF)
>
> But when i tried to access this by providing the SOAP Address through AJAX
> call it is giving me the following exception
>
> *INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: No such operation: (HTTP GET PATH_INFO:
> /tata-ws-1.0/TataWeb)
> at
> org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage(URIMappingInt
> erceptor.java:77) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain
> .java:236) at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationOb
> server.java:89) at
> org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestinatio
> n.java:99) at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servlet
> Controller.java:357) at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.
> java:183) at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServle
> t.java:163) at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet
> .java:145) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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:191) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
> ) 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:291)
> at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
> 877) at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
> ttp11AprProtocol.java:594) at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
> at java.lang.Thread.run(Thread.java:662)*
>
> This is my AJAX call code happens on click of a button
>
> * # Get Data:
> function sendRequest(method, url)
> {
> method == 'POST';
> {
> http.open(method,url,true);
> http.onreadystatechange = handleResponse;
> http.send(null);
> }
> }*
>
> The URL for WSDL is correct because when i use
> http://localhost:8080/tata-ws-1.0/services/TataWeb?wsdl it shows the WSDL
> for that webservice .
>
> Please share your inputs .
>
> Thanks .
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Apache-CXF-Webservice-failing-on-AJAX-call-
> tp5074124p5074124.html Sent from the cxf-user mailing list archive at
> Nabble.com.
--
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com