Apache CXF
に基づいてWebサービスを開発しました。Apache CXF WebサービスがAJAXコールで失敗する
通常それはAPIGEE
を使用するかJaxWsProxyFactoryBean
(Apache CXF
用clinet)を使用してアクセスされたときに正常に動作しています。私はそれを呼び出す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
を使用する場合、それはそのWebサービスのWSDLを示しているため、WSDLのURLが正しいです。
あなたの意見をお寄せください。おかげさまで