0
흐름이 구현 클래스로 전혀 향하지 않습니다. Implementation 클래스로의 흐름을 어떻게 가져야합니까?
Impl 클래스 implements
서비스 클래스가 중요하지 않은지 궁금합니다.
하지만 둘 이상의 impl 클래스가 serviceClass 인터페이스를 구현하는 경우에는 또 다른 질문이 제기됩니다. 흐름은 어디로 갈 것인가?
Impl 클래스에서 일부 주석을 선언해야합니까? 또는 Impl 클래스를 인식 할 수있는 방법이 없습니다. 다른 Bean으로 처리하고 웹 서비스 경로에 추가해야합니다.
다음은 설정입니다.
applicationContext.xmlCXF SOAP 서비스가있는 Apache Camel의 문제
<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>
CXF의 인터페이스
@WebService
public interface TryWebService {
public void acceptRequest(String xmlString);
}
구현
public class ACORDWebServiceImpl implements ACORDWebService
{
public void acceptTXLife(String xmlString)
{
try
{
dosomething
그런 다음 어떻게 메소드 구현을 할 수 있습니까? –
당신은 왜 이것을 할 것입니까? 낙타 논리 과정에서 당신은 매개 변수를 경로에서 검색해야합니다. –
' '구현 빈 자체로 가져 가야합니까? 인터페이스는 매개 변수를받는 방법 일뿐입니다. 몇 가지 코드 예제를 제안 해 주시겠습니까? –