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 "Glen Daniels (JIRA)" <ji...@apache.org> on 2009/06/13 17:09:07 UTC
[jira] Reopened: (AXIS2-4040) Web Service with Java generic type
[ https://issues.apache.org/jira/browse/AXIS2-4040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Glen Daniels reopened AXIS2-4040:
---------------------------------
"fixed" was an inappropriate resolution.
> Web Service with Java generic type
> ----------------------------------
>
> Key: AXIS2-4040
> URL: https://issues.apache.org/jira/browse/AXIS2-4040
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Affects Versions: 1.4.1
> Environment: JDK 1.5
> Reporter: Antonio Mantuano
> Priority: Blocker
>
> Hi,
> in my application i want expose my spring bean's as a Web Service.
> i have a problem with java generic type.
> Example:
> //generic Inteface of my class
> //the method execute receive a Request object
> public interface IService {
> //the method execute receive a Request object
> public void execute(Request request);
> }
> public class Request {
> private Input parameter;
> public void setParameter(Input parameter) {
> this.parameter = parameter;
> }
> public Input getParameter() {
> return parameter;
> }
> }
> The implementation of IService specify the correct type of the fiels parameter:
> public class HelloWorldService implements IService {
> public void execute(Request request) {
> // implementation //
> }
> }
> The wsdl generated have'nt references to the HelloInput class
> In the wsdl the field paramater is declared as anyType
> <xs:complexType name="Request">
> <xs:sequence>
> <xs:element minOccurs="0" name="parameter" nillable="true" type="xs:anyType" />
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="HelloRequest">
> <xs:complexContent>
> <xs:extension base="ax21:Request">
> <xs:sequence>
> <xs:element minOccurs="0" name="parameter" nillable="true" type="xs:anyType" />
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> How is possible to obtain a wsdl with the correct type HelloInput?
> You can help me?
> thank you
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.