You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Chris Rose (JIRA)" <ji...@apache.org> on 2007/10/18 17:33:51 UTC
[jira] Commented: (AXIS2-3199) Java2WSDL output for no parameters
or void return type
[ https://issues.apache.org/jira/browse/AXIS2-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535945 ]
Chris Rose commented on AXIS2-3199:
-----------------------------------
I'm seeing the same issue: Our application has a number of basic information retrieval methods, for example:
VersionBean getVersion();
Our WSDL for this is:
<xs:element name='getVersion'>
<xs:complexType />
</xs:element>
<xs:element name='getVersionResponse' type='tns:getVersionResponse'/>
<xs:complexType name='getVersionResponse'>
<xs:sequence>
<xs:element minOccurs='0' name='return' type='ns2:versionBean'/>
</xs:sequence>
</xs:complexType>
<xs:complexType name='version'>
<xs:sequence>
<!-- ... various version fields -->
</xs:sequence>
</xs:complexType>
<xs:complexType name='versionBean'>
<xs:complexContent>
<xs:extension base='ns1:version'>
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<message name='Service_getVersion'>
<part element='ns1:getVersion' name='parameters'/>
</message>
<message name='Service_getVersionResponse'>
<part element='ns1:getVersionResponse' name='getVersionResponse'/>
</message>
<portType name='Service'>
<operation name='getVersion' parameterOrder='getVersion'>
<input message='ns1:Service_getVersion'/>
<output message='ns1:Service_getVersionResponse'/>
</operation>
</portType>
>From this we get a Service skeleton interface with a getVersion method, which is good, but instead of a getVersion() method, we have a getVersion(GetVersion) method, and the GetVersion class is a bean... with no properties. This does not correspond to the implementation of the method at all.
> Java2WSDL output for no parameters or void return type
> ------------------------------------------------------
>
> Key: AXIS2-3199
> URL: https://issues.apache.org/jira/browse/AXIS2-3199
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Reporter: Deepal Jayasinghe
> Assignee: Deepal Jayasinghe
>
> Deepal,
> Per the wrapped convention, if you have the following interface:
> public String foo();
> java2wsdl should generate an input element called "foo":
> <w:message name="fooRequest">
> <w:part name="parameters" element="t:foo"/>
> </w:message>
> And "foo" must be defined as:
> <s:element name="foo">
> </s:complexType>
> </s:element>
> See the JAX-WS spec for the specific requirements of the wrapped
> convention, or my blog for a quick overview:
> http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html
> Anne
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org