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

wrong WSDL generated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.5.2
    • None
    • None
    • 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.wsdl
          14 kB
          Mitesh
        2. MwiWork.java
          8 kB
          Mitesh
        3. RegionalWorkService.java
          1.0 kB
          Mitesh

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: