The property "wsgen.cannot.gen.wsdl.for.soap12.binding" in properties file
jaxws/drop/jaxws_src/src/com/sun/tools/internal/ws/resources/wscompile.properties
has a value with embedded \n characters. When parsing this value the property is truncated at the first newline, and the error message is not displayed with the intended effect.
For example: use any SEI and unsupported transport protocol such as
wsgen.exe -wsdl:soap1.1/HTTP_MTOM -cp . com.ibm.was.wssample.sei.echo.EchoService12PortImpl
The observed result is:
wsgen can not generate WSDL for SOAP 1.2 binding: http://www.w3.org/2003/05/soap/bindings/HTTP/ on class: com.ibm.was.wssample.sei.echo.Echo
Service12PortImpl.
The expected result is:
wsgen can not generate WSDL for SOAP 1.2 binding: http://www.w3.org/2003/05/soap/bindings/HTTP/ on class: com.ibm.was.wssample.sei.echo.Echo.Please specify "-extension" and "-wsdl:protocol XSoap1.2" switches. For
example:wsgen -wsdl:protocol XSoap1.2 -extension com.ibm.was.wssample.sei.echo.Echo
The proposed fix is to remove the \n chars:
161,162c161,162
< wsgen.cannot.gen.wsdl.for.soap12.binding=wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}.\n
< Please specify \"-extension\" and \"-wsdl:protocol XSoap1.2\" switches. For example:\n\n
---
> wsgen.cannot.gen.wsdl.for.soap12.binding=wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}. \
> Please specify \"-extension\" and \"-wsdl:protocol XSoap1.2\" switches. For example: \
jaxws/drop/jaxws_src/src/com/sun/tools/internal/ws/resources/wscompile.properties
has a value with embedded \n characters. When parsing this value the property is truncated at the first newline, and the error message is not displayed with the intended effect.
For example: use any SEI and unsupported transport protocol such as
wsgen.exe -wsdl:soap1.1/HTTP_MTOM -cp . com.ibm.was.wssample.sei.echo.EchoService12PortImpl
The observed result is:
wsgen can not generate WSDL for SOAP 1.2 binding: http://www.w3.org/2003/05/soap/bindings/HTTP/ on class: com.ibm.was.wssample.sei.echo.Echo
Service12PortImpl.
The expected result is:
wsgen can not generate WSDL for SOAP 1.2 binding: http://www.w3.org/2003/05/soap/bindings/HTTP/ on class: com.ibm.was.wssample.sei.echo.Echo.Please specify "-extension" and "-wsdl:protocol XSoap1.2" switches. For
example:wsgen -wsdl:protocol XSoap1.2 -extension com.ibm.was.wssample.sei.echo.Echo
The proposed fix is to remove the \n chars:
161,162c161,162
< wsgen.cannot.gen.wsdl.for.soap12.binding=wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}.\n
< Please specify \"-extension\" and \"-wsdl:protocol XSoap1.2\" switches. For example:\n\n
---
> wsgen.cannot.gen.wsdl.for.soap12.binding=wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}. \
> Please specify \"-extension\" and \"-wsdl:protocol XSoap1.2\" switches. For example: \
- relates to
-
JDK-8065870 Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
-
- Resolved
-