it's supported by axis2 for example I create java from wsdl using
axis2-1.6.2, but exactly the same wsdl gives me the error if I use cxf:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
>C:\apache-cxf-2.7.14\bin\wsdl2java wsdprin
terservice.wsdl
WSDLToJava Error:
Summary: Failures: 6, Warnings: 0
<<< ERROR!
Invalid WSDL, Operation PrinterStatusConditionEvent in PortType
{http://schemas.
microsoft.com/windows/2006/08/wdp/print}PrinterServiceType not
request-response
or one-way
Invalid WSDL, Operation JobEndStateEvent in PortType
{http://schemas.microsoft.c
om/windows/2006/08/wdp/print}PrinterServiceType not request-response or
one-way
Invalid WSDL, Operation PrinterStatusConditionClearedEvent in PortType
{http://s
chemas.microsoft.com/windows/2006/08/wdp/print}PrinterServiceType not
request-re
sponse or one-way
Invalid WSDL, Operation PrinterElementsChangeEvent in PortType
{http://schemas.m
icrosoft.com/windows/2006/08/wdp/print}PrinterServiceType not
request-response o
r one-way
Invalid WSDL, Operation PrinterStatusSummaryEvent in PortType
{http://schemas.mi
crosoft.com/windows/2006/08/wdp/print}PrinterServiceType not
request-response or
one-way
Invalid WSDL, Operation JobStatusEvent in PortType
{http://schemas.microsoft.com
/windows/2006/08/wdp/print}PrinterServiceType not request-response or
one-way
C:\Users\afrosa\Desktop\work\buildXML>
the example of such wsdl I can get from microsoft:
https://msdn.microsoft.com/en-us/library/windows/hardware/dn641604(v=vs.85).aspx
just download the "Print Service Definition v1.2 for Web Services on
Devices" (or v1.0) and try to run java2wsdl.
here's the parts which throw exception
<operation name="PrinterStatusConditionEvent">
<output message="wprt:PrinterStatusConditionEventMsg"
wsa:Action="http://schemas.microsoft.com/windows/2006/08/wdp/print/PrinterStatusConditionEvent"
/>
</operation>
<operation name="PrinterStatusConditionClearedEvent">
<output message="wprt:PrinterStatusConditionClearedEventMsg"
wsa:Action="http://schemas.microsoft.com/windows/2006/08/wdp/print/PrinterStatusConditionClearedEvent"
/>
</operation>
<operation name="JobStatusEvent">
<output message="wprt:JobStatusEventMsg"
wsa:Action="http://schemas.microsoft.com/windows/2006/08/wdp/print/JobStatusEvent"
/>
</operation>
<operation name="JobEndStateEvent">
<output message="wprt:JobEndStateEventMsg"
wsa:Action="http://schemas.microsoft.com/windows/2006/08/wdp/print/JobEndStateEvent"
/>
</operation>
--
View this message in context:
http://cxf.547215.n5.nabble.com/Is-is-possible-to-have-an-operation-with-no-input-message-tp564160p5753333.html
Sent from the cxf-user mailing list archive at Nabble.com.