Axis2 (+ XMLBeans) cannot properly handle C-style comments inside 
<documentation> tag
-------------------------------------------------------------------------------------

                 Key: AXIS2-4982
                 URL: https://issues.apache.org/jira/browse/AXIS2-4982
             Project: Axis2
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.5.4
         Environment: Linux + Sun JDK 1.6
            Reporter: David Tonhofer


I'm new to this SOAP business, so this may be confusing.

I have a WSDL which has C-style comments inside the "portType" declaration:

<portType name="SomethingServicePortType">
  <operation name="SomethingService.AuthenticationHeader">
    <documentation>/**
     * @param AuthenticationHeader $header
     */</documentation>
    <input message="tns:SomethingService.AuthenticationHeaderRequest"/>
    <output message="tns:SomethingService.AuthenticationHeaderResponse"/>
  </operation>
  ...etc....

Running "wsdl2java.sh" (with "-d xmlbeans", I haven't tried others yet), the 
generated SomethingServiceStub.java cannot be compiled. The generator tries to 
put the contents of <documentation> inside a C-style comment. As this type of 
comment does not support recursion, mayhem ensues:

            
                    /**
                     * Auto generated method signature
                     * /**
     * @param AuthenticationHeader $header
     */
                     * @see 
com.biz.something.SomethingService#somethingServiceAuthenticationHeader
                     * @param somethingServiceAuthenticationHeader
                    
                     */

--> The generator has to scan the to-be-included text for C-style comment 
closing sequences and remove them.



--
This message is automatically generated by JIRA.
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]

Reply via email to