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 "Carlos Valiente (JIRA)" <ax...@ws.apache.org> on 2005/01/26 21:27:17 UTC

[jira] Commented: (AXIS-1707) AXIS RC2 DOC/LIT wsdl2java problem

     [ http://issues.apache.org/jira/browse/AXIS-1707?page=comments#action_58107 ]
     
Carlos Valiente commented on AXIS-1707:
---------------------------------------

I've managed to work around that issue by doing something similar to this:

<xsd:element name="ArrayOfCors" type="tns:CorArray" />

<xsd:simpleType name="CorArray">
    <xsd:list itemType="tns:corDataObject" />
</xsd:simpleType>

<wsdl:message name="osndSearchResponse">
   <wsdl:part name="osndSearchReturn" element="tns:ArrayOfCors" />
</wsdl:message>

> AXIS RC2 DOC/LIT wsdl2java problem
> ----------------------------------
>
>          Key: AXIS-1707
>          URL: http://issues.apache.org/jira/browse/AXIS-1707
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC2
>  Environment: windows XP, java 1.4.2, JEE1.4
>     Reporter: Elobilo Franklin

>
> The return type of the WSDL2JAVA generated service interface should be an array of CorDataObject, but is a single CorArray .
> Defining an array method return type as per the WS-I recommendations (http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html figure 4.3.4) results in 
> public interface Cms extends java.rmi.Remote {
>     public com.company.cms.webservices.service.CorArray getCicsOsndResults(java.lang.String osnd) throws java.rmi.RemoteException;
> }
> but should be: 
> public interface Cms extends java.rmi.Remote {
>     public com.company.webservices.service.CorDataObject[] getCicsOsndResults(java.lang.String osnd) throws java.rmi.RemoteException;
> }
> The wsdl entry:
>   <xsd:element name="ArrayOfCors" type="tns:CorArray" />
>   <xsd:complexType name="CorArray">
>     <xsd:sequence>
>       <xsd:element name="x" type="tns:corDataObject" minOccurs="0" maxOccurs="unbounded" />
>     </xsd:sequence>
>   </xsd:complexType>
> ...
>   <wsdl:message name="osndSearchResponse">
>     <wsdl:part name="osndSearchReturn" element="tns:ArrayOfCors" /> 
>   </wsdl:message>
> tns:corDataObject is a standard bean
> I think that this is a bug in WSDL2JAVA

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