3

Apache CXF を使用しているときに、次のようなポート タイプを定義したいと思います。

<wsdl:portType name="CustomerNotificationPort">
    <wsdl:operation name="changeNotification">
        <wsdl:output message="tns:NotificationMessage"/>
    </wsdl:operation>
</wsdl:portType>

しかし、wsdl2java を実行すると、次のエラーが発生します。

Invalid WSDL, Operation changeNotification in PortType {http://blah.com/Customer/CustomerService/v1}CustomerNotificationPort not request-response or one-way

これは、Apache CXF (および/または wsdl2java) が「出力のみ」または「通知」スタイルのサービスをサポートしていないことを意味すると解釈しています。

これは正しいですか、何か不足していますか?

問題があれば、私のポート タイプは実際には HTTP ではなく JMS トランスポートにバインドされています。

4

0 に答える 0