[
https://issues.apache.org/jira/browse/AXIS2-5191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241050#comment-13241050
]
Sagara Gunathunga commented on AXIS2-5191:
-------------------------------------------
Your observation is correct but this issue addresses a different problem. Once
you provide your own WSDL file within the META-INF directory
WSDL20ToAxisServiceBuilder uses details on provided WSDL file to construct a
Axis2 service hence those details available on auto generated WSDL file too,
Axis2 use AxisService2WSDL20 class to generate WSDL from a service. Above
described procedure results into your observation but there is a separate
option called "useOriginalwsdl" which returns provided WSDL file without
executing AxisService2WSDL20 class. Refer the
AxisService#printWSDL(OutputStream out, String requestIP) method to understand
this logic, it is required to apply same logic to printWSDL2() method.
In WSDL 1.1 we use WSDLConstants.WSDL_4_J_DEFINITION to retrieve the document,
in WSDL 2.0 you have to use WSDLConstants.WSDL_20_DESCRIPTION to retrieve
the document then it should be serialized through the Woden WSDLWriter.
Few weeks ago I have merged Woden read/write API to the trunk but still didn't
have time to check its stability. For the moment you can forget about
"modifyUserWSDLPortAddress" option.
> Axis2 should support to use "useOriginalWSDL" property for WSDL 2.0
> -------------------------------------------------------------------
>
> Key: AXIS2-5191
> URL: https://issues.apache.org/jira/browse/AXIS2-5191
> Project: Axis2
> Issue Type: Improvement
> Components: kernel
> Reporter: Sagara Gunathunga
> Assignee: Sagara Gunathunga
>
> Axis2 runtime ignore "useOriginalwsdl" property for WSDL 2.0 but it should
> support for this.
> <parameter name="useOriginalwsdl">true</parameter>
> <parameter name="modifyUserWSDLPortAddress">true</parameter>
> Also it is required to formalize use of this property.
> e.g - Specify "useOriginalwsdl" property in services.xml but don't put any
> WSDL file there :
> In this case ?wsdl generate correct error message but ?wsdl2 generate
> incorrect and partial WSDL 2.0 content. Here error message should be
> generated for both cases.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]