cxf.xml構成ファイルの正しい場所はどこですか? スタンドアロンの jar 形式のクライアント ws コンシューマーでの SOAP メッセージのログ記録を有効にしようとしています。wsdltojava ユーティリティでアーティファクトを生成し、自動生成された開始点テスト クライアントを使用すると、非常にうまく機能します。ドキュメントに従って構成ファイルを作成しましたが、コンソールでは何も起こっていません。これは私の cxf.xml ファイルの内容です:
<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の下に配置しようとしましたが、何もしませんでした。私は何が欠けていますか?
私のクライアントコードは次のようなものです:
public final class 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;
}