フローは実装クラスにはまったく行きません。実装クラスへのフローをどのように取得する必要がありますか? Impl クラスがサービス クラス
であることは問題ではないのだろうか。しかし、複数の impl クラスが serviceClass インターフェースを実装している場合はどうなるかという別の疑問が生じます。流れはどこへ向かうのか?
Impl クラスでいくつかの注釈を宣言する必要がありますか? または、Impl クラスを認識する方法がありません。それを別の Bean として扱い、Web サービス ルートに追加するだけです。
これがセットアップです。applicationContext.xmlimplements
<cxf:cxfEndpoint id="tryWebService" address="http://localhost:15080/PORTAL/webservices/tryWebService"
serviceClass="webservice.TryWebServiceImpl"
/>
<route>
<from uri="cxf:bean:tryWebService"/>
<to uri="stream:out"/>
</route>
インターフェース
@WebService
public interface TryWebService {
public void acceptRequest(String xmlString);
}
実装
public class ACORDWebServiceImpl implements ACORDWebService
{
public void acceptTXLife(String xmlString)
{
try
{
dosomething