Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4846

wrong WSDL generated

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.5.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Win XP, Apache Axis2 1.5.2

      Description

      Hi
      I have attached one of the data class used on my service as a return type. When i generate WSDL using java2WSDL as well as with eclipse plugin tool of codegen, it is unnecessary appending extra element as shown below.

      <xs:element minOccurs="0" name="ttlgCode" nillable="true" type="xs:string"/>

      This element is not at all there in my class and when i deploy and call service it is causing error with an exception:

      org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: can not find read method for : ttlgCode

      I have attahed the wsdl generated, and the java file also. I feel this is bug. If not can you please let me know how to solve this?

      btw, if i take out ttlgCode from the java file then some other elements cause similar error.

      Regards,
      Mitesh

        Attachments

        1. RegionalWorkService.java
          1.0 kB
          Mitesh
        2. MwiWork.java
          8 kB
          Mitesh
        3. RegionalWorkService.wsdl
          14 kB
          Mitesh

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mrvora Mitesh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: