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

WSDL with headers generates uncompilable code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.92
    • None
    • client-api
    • None
    • WinXP, JDK 5.0

    Description

      running WSDL2Code on a WSDL that has operations with headers generates code that doesn't compile, in addition, headers get repeated multiple times in the method signatures, e.g.

      public codegen.databindingurn_partner_soap_sforce_com.GetDeletedResponseDocument getDeleted(
      codegen.databindingurn_partner_soap_sforce_com.GetDeletedDocument param9,
      codegen.databindingurn_partner_soap_sforce_com.SessionHeaderDocument param10,
      codegen.databindingurn_partner_soap_sforce_com.CallOptionsDocument param11,
      codegen.databindingurn_partner_soap_sforce_com.SessionHeaderDocument param12,
      codegen.databindingurn_partner_soap_sforce_com.CallOptionsDocument param13,
      codegen.databindingurn_partner_soap_sforce_com.SessionHeaderDocument param14,
      codegen.databindingurn_partner_soap_sforce_com.CallOptionsDocument param15,
      codegen.databindingurn_partner_soap_sforce_com.CallOptionsDocument param16,
      codegen.databindingurn_partner_soap_sforce_com.SessionHeaderDocument param17,
      codegen.databindingurn_partner_soap_sforce_com.CallOptionsDocument param18,
      codegen.databindingurn_partner_soap_sforce_com.AssignmentRuleHeaderDocument param19,
      codegen.databindingurn_partner_soap_sforce_com.SessionHeaderDocument param20,
      codegen.databindingurn_partner_soap_sforce_com.CallOptionsDocument param21) throws java.rmi.RemoteException{

      compile errors include such things as
      Severity Description Resource In Folder Location Creation Time
      2 The method toOM(LoginDocument) in the type SoaploginDatabindingSupporter is not applicable for the arguments (SessionHeaderDocument) SoapStub.java axis2PartnerTest/codegen line 505 September 29, 2005 7:56:44 PM
      Severity Description Resource In Folder Location Creation Time
      2 The method toOM(GetDeletedDocument) in the type SoapgetDeletedDatabindingSupporter is not applicable for the arguments (AssignmentRuleHeaderDocument) SoapStub.java axis2PartnerTest/codegen line 783 September 29, 2005 7:56:44 PM

      I'll attach the WSDL.

      Attachments

        1. partner.wsdl
          78 kB
          Simon Fell

        Activity

          People

            Unassigned Unassigned
            sfell@salesforce.com Simon Fell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: