우리는 Apache CXF
을 기반으로하는 웹 서비스를 개발했습니다.Apache CXF 웹 서비스가 AJAX 호출에 실패했습니다
정상적으로 액세스 할 때 APIGEE
을 사용하거나 JaxWsProxyFactoryBean
(Apache CXF
의 경우)을 사용하면 정상적으로 작동합니다. 내가 전화를 AJAX를 통해 SOAP 주소를 제공함으로써 액세스하려고 할 때 그러나 나에게 다음과 같은 예외주고있다 :
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(URIMappingInterceptor.java:77)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)
...
이 내 AJAX 호출 코드가 버튼의 클릭에서 발생됩니다
<a onclick="sendRequest('GET','http://localhost:8080/tata-ws-1.0/services/TataWeb')"href="#">
가져 오기 데이터 :
function sendRequest(method, url)
{
method == 'POST';
{
http.open(method,url,true);
http.onreadystatechange = handleResponse;
http.send(null);
}
}
내가 http://localhost:8080/tata-ws-1.0/services/TataWeb?wsdl
를 사용할 때 그 웹 서비스에 대한 WSDL을 보여주기 때문에 WSDL의 URL이 정확합니다.
입력 사항을 공유하십시오. 감사합니다. .