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 "Len Trigg (JIRA)" <ax...@ws.apache.org> on 2005/01/28 02:40:17 UTC

[jira] Created: (AXIS-1789) Java2WSDL doesn't correctly accept interfaces in method signatures

Java2WSDL doesn't correctly accept interfaces in method signatures
------------------------------------------------------------------

         Key: AXIS-1789
         URL: http://issues.apache.org/jira/browse/AXIS-1789
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2RC1    
 Environment: Linux, java 1.4.2
    Reporter: Len Trigg


I would like to have my service defined initially entirely by interfaces, that is, using interfaces for the both the service and for the method parameters and return types. If I return a type which is an interface I have defined, I get the following message when I run java2wsdl:

[axis-java2wsdl] Java2WSDL com.reeltwo.webservices.scexample.Service
[axis-java2wsdl] 28/01/2005 13:44:19 org.apache.axis.wsdl.fromJava.Types isBeanCompatible
[axis-java2wsdl] WARNING: The class com.reeltwo.webservices.scexample.Dummy does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file. 

The Dummy interface just looks like this:

package com.reeltwo.webservices.scexample;
public interface Dummy {
  String getDummy();
}

AXIS should be able to create a xml schema type for this without resorting to anyType.

Other people have had this problem, see:

http://java2.5341.com/msg/7810.html


Cheers,
Len.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1789) Java2WSDL doesn't correctly accept interfaces in method signatures

Posted by "Ias (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1789?page=comments#action_58213 ]
     
Ias commented on AXIS-1789:
---------------------------

FYI,

According to JAX-RPC 1.1 Section 5.1 "JAX-RPC Supported Java Types",

The following are the JAX-RPC supported Java types:
1 One of the Java primitive types as specified in the section 5.1.1
2 A subset of the standard Java classes (as specified in the J2SE APIs) as specified in
the section 5.1.3
3 An array of a supported Java type as specified in the section 5.1.2
4 An exception class as specified in the section 5.2.1
5 A JAX-RPC value type as specified in the section 5.4

And there's no requirement for interfaces. In fact, Axis expects JAX-RPC value type based on JavaBeans architecture in your case.

> Java2WSDL doesn't correctly accept interfaces in method signatures
> ------------------------------------------------------------------
>
>          Key: AXIS-1789
>          URL: http://issues.apache.org/jira/browse/AXIS-1789
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1
>  Environment: Linux, java 1.4.2
>     Reporter: Len Trigg

>
> I would like to have my service defined initially entirely by interfaces, that is, using interfaces for the both the service and for the method parameters and return types. If I return a type which is an interface I have defined, I get the following message when I run java2wsdl:
> [axis-java2wsdl] Java2WSDL com.reeltwo.webservices.scexample.Service
> [axis-java2wsdl] 28/01/2005 13:44:19 org.apache.axis.wsdl.fromJava.Types isBeanCompatible
> [axis-java2wsdl] WARNING: The class com.reeltwo.webservices.scexample.Dummy does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file. 
> The Dummy interface just looks like this:
> package com.reeltwo.webservices.scexample;
> public interface Dummy {
>   String getDummy();
> }
> AXIS should be able to create a xml schema type for this without resorting to anyType.
> Other people have had this problem, see:
> http://java2.5341.com/msg/7810.html
> Cheers,
> Len.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira