[
https://issues.apache.org/jira/browse/AXIS2-4838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Udayanga Wickramasinghe updated AXIS2-4838:
-------------------------------------------
Attachment: WSDL2javacodegen.patch
i attached the following patch to resolve the
issue...org.apache.axis2.wsdl.templates.java InterfaceTemplate.xslt does not
check null complex types for wrapped parameters resulting in this faulty code
generation...(i am not exactly sure about the specification here but i guess
for any message type that has null ComplexType parameters shud not be code
generated )
> Code-generation failure in wsdl documents for complex types with null
> sequence
> --------------------------------------------------------------------------------
>
> Key: AXIS2-4838
> URL: https://issues.apache.org/jira/browse/AXIS2-4838
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.2, 1.5.1, 1.5, 1.4.1, 1.4
> Environment: jdk 1.6 Ubuntu OS 10.4
> Reporter: Udayanga Wickramasinghe
> Attachments: SampleService.wsdl, WSDL2javacodegen.patch
>
>
> WSDL2java Code-generation is faulty for WSDL documents with Null sequence
> Complex Types
> ie:- <xsd:element name="echoString">
> <xsd:complexType>
> <xsd:sequence/>
> </xsd:complexType>
> </xsd:element>
> This happens when binding Operation contains soap Headers as inputs...a
> sample generated code is shown below...
> /**
> * SampleService.java
> *
> * This file was auto-generated from WSDL
> * by the Apache Axis2 version: SNAPSHOT Built on : Aug 07, 2010 (07:59:55
> IST)
> */
> package org.apache.axis2.sample.wsdl.client;
> /*
> * SampleService java interface
> */
> public interface SampleService {
>
> /**
> * Auto generated method signature
> *
> * @param echoString2
>
> * @param string3
>
> */
> //faulty code generation
> public java.lang.String echoString(
> ,java.lang.String string3)
> throws java.rmi.RemoteException
> ;
>
> /**
> * Auto generated method signature for Asynchronous Invocations
> *
> * @param echoString2
>
> * @param string3
>
> */
> public void startechoString(
> java.lang.String string3,
>
> final
> org.apache.axis2.sample.wsdl.client.SampleServiceCallbackHandler callback)
> throws java.rmi.RemoteException;
>
> /**
> * Auto generated method signature
> *
> * @param echoProject6
>
> */
>
> public org.apache.axis2.sample.wsdl.types.Project
> echoProject(
> org.apache.axis2.sample.wsdl.types.Project param7)
> throws java.rmi.RemoteException
> ;
>
> /**
> * Auto generated method signature for Asynchronous Invocations
> *
> * @param echoProject6
>
> */
> public void startechoProject(
> org.apache.axis2.sample.wsdl.types.Project param7,
> final
> org.apache.axis2.sample.wsdl.client.SampleServiceCallbackHandler callback)
> throws java.rmi.RemoteException;
>
>
> //
> }
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]