[
https://issues.apache.org/jira/browse/MUSE-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481177
]
Andrew Eberbach commented on MUSE-208:
--------------------------------------
Dan,
The title of this JIRA suggested to me that Saurabh was trying to generate
complex parameters. So the second fragment was right except it doesn't need a
name attribute on the nested complexType.
Saurabh,
We expect the message element to be defined inline, much like the properties
document. It should be a top-level element with a nested complexType and
sequence which the has elements inside of it that contain information about
cardinality (minOccurs/maxOccurs) and type.
> Wsdl2Java didn't generate proper method prototype if input parameter refers
> to some complex type
> ------------------------------------------------------------------------------------------------
>
> Key: MUSE-208
> URL: https://issues.apache.org/jira/browse/MUSE-208
> Project: Muse
> Issue Type: Bug
> Components: Tooling - Code Generation
> Affects Versions: 2.2.0
> Reporter: Saurabh Dravid
> Assigned To: Dan Jemiolo
> Priority: Minor
> Fix For: 2.2.0
>
>
> If I provide the parameters to the operation in the following way,
> codegeneration didn't generate operation with parameters.
> <xsd:element name="startApp" type="tns:startAppType"/>
> <xsd:complexType name="startAppType">
> <xsd:sequence>
> <xsd:element name="appName" type="xsd:string"/>
> <xsd:element name="port" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> Generated Interface class method appears as
> public void startApp();
> But If I moved the type definition as inline like this
> <xsd:element name="startApp">
> <xsd:complexType name="startAppType">
> <xsd:sequence>
> <xsd:element name="appName" type="xsd:string"/>
> <xsd:element name="port" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> Then it generates a proper java method.
--
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]