표준 eclipse java 프로젝트에서 cxf.xml 구성 파일의 올바른 위치는 어디입니까? 독립형 jar 형식의 클라이언트 ws 소비자에서 로깅 비누 메시지를 사용하려면 노력하고있어. wsdltojava 유틸리티를 사용하여 산출물을 생성하고 자동 생성 된 시작 지점 테스트 클라이언트를 사용하여 실제로 작동합니다. 설명서마다 설정 파일을 만들었지 만, 내 회의에서는 아무 일도 일어나지 않습니다.CXF : 비누 메시지를 로깅 할 수 없습니다
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation="
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="abstractLoggingInterceptor" abstract="true">
<property name="prettyLogging" value="true"/>
</bean>
<bean id="loggingInInterceptor" class="org.apache.cxf.interceptor.LoggingInInterceptor" parent="abstractLoggingInterceptor"/>
<bean id="loggingOutInterceptor" class="org.apache.cxf.interceptor.LoggingOutInterceptor" parent="abstractLoggingInterceptor"/>
<cxf:bus>
<cxf:inInterceptors>
<ref bean="loggingInInterceptor"/>
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="loggingOutInterceptor"/>
</cxf:outInterceptors>
<cxf:outFaultInterceptors>
<ref bean="loggingOutInterceptor"/>
</cxf:outFaultInterceptors>
<cxf:inFaultInterceptors>
<ref bean="loggingInInterceptor"/>
</cxf:inFaultInterceptors>
</cxf:bus>
</beans>
내가 프로젝트 루트와 SRC 아무것도하지만, 아래에 넣어 시도 : 이 내 cxf.xml 파일 내용입니다. 내가 뭘 놓치고있어?
공공 최종 클래스 ClientMHttps {
private static final QName SERVICE_NAME = new QName("http://thecompany/service-b", "myendpoint-v1");
private myendpointPortType port ;
public ClientMHttps() throws java.lang.Exception {
URL wsdlURL = myendpointV1.WSDL_LOCATION;
myendpointV1 ss = new myendpointV1(wsdlURL, SERVICE_NAME);
port = ss.getmyendpointPortTypeEndpointHttpsM();
}
public DeleteMarkedStatusResponse do_DeleteMarkedStatus(DeleteMarkedStatusRequest _deleteMarkedStatus_body) throws java.lang.Exception
{
System.out.println("Invoking deleteMarkedStatus...");
javax.xml.ws.Holder<HeaderType> _header = this.HeaderFarm();
DeleteMarkedStatusResponse _deleteMarkedStatus__return = port.deleteMarkedStatus(_deleteMarkedStatus_body, _header);
System.out.println("deleteMarkedStatus.result=" + _deleteMarkedStatus__return);
return _deleteMarkedStatus__return;
}
절대! 내가 cxf.xml everyware하지만 나던 작업을 이동하려! 서블릿이 아닌 독립 실행 형 클라이언트를 만들었 음을 명심하십시오. 따라서 src 아래에 앱 패키지 (it.bla.etc)가 있습니다. – Muflo
또한 독립 실행 형 클라이언트가 있고 잘 기록됩니다. cxf.xml을 src/main/resources /로 이동하려고 했습니까? 폴더를 만들고 파일을 저장 한 다음 로그해야합니다. –
나는 그것을했지만 아무것도하지 않았다. 비누 메시지 로깅은 기본 로그 수준과 관련이 있습니까? 로그 로깅 기능의 내 로깅 수준이 FINE으로 설정되었습니다. – Muflo