Issue Details (XML | Word | Printable)

Key: AXIS2-248
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Simon Fell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Axis 2.0 (Axis2)

WSDL with headers generates uncompilable code

Created: 30/Sep/05 01:00 PM   Updated: 01/Oct/05 12:49 AM
Return to search
Component/s: client-api
Affects Version/s: 0.92
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
XML File partner.wsdl 2005-09-30 01:00 PM Simon Fell 78 kB
Environment: WinXP, JDK 5.0

Resolution Date: 01/Oct/05 12:49 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Simon Fell made changes - 30/Sep/05 01:00 PM
Field Original Value New Value
Attachment partner.wsdl [ 12314638 ]
Ruchith Udayanga Fernando made changes - 01/Oct/05 12:49 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]