axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Mantuano (JIRA)" <>
Subject [jira] Created: (AXIS2-4040) Web Service with Java generic type
Date Sat, 20 Sep 2008 15:51:44 GMT
Web Service with Java generic type

                 Key: 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

in my application i want expose my spring bean's as a Web Service.
i have a problem with java generic type.

//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:element minOccurs="0" name="parameter" nillable="true" type="xs:anyType" />

<xs:complexType name="HelloRequest">
      <xs:extension base="ax21:Request">
            <xs:element minOccurs="0" name="parameter" nillable="true" type="xs:anyType"

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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message