Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.5
-
Fix Version/s: None
-
Component/s: Generator
-
Labels:None
-
Number of attachments :
Description
I have a problem with Lists while generating code from WSDL
When you look at the code below the return type of the method is Datastream. I aspect a List of Datastream objects. Is this a bug?
wsdl:
<element name="getDatastreams">
<complexType>
<sequence>
<element name="pid" type="xsd:string"/>
<element name="asOfDateTime" type="xsd:string"/>
<element name="dsState" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="getDatastreamsResponse">
<complexType>
<sequence>
<element name="datastream" minOccurs="0" maxOccurs="unbounded" type="fedora-types:Datastream"/>
</sequence>
</complexType>
</element>
in 1.2.5:
@WebMethod(operationName = "getDatastreams", action = "http://www.fedora.info/definitions/1/0/api/#getDatastreams")
@WebResult(name = "datastream", targetNamespace = "")
public Datastream getDatastreams(
@WebParam(name = "pid", targetNamespace = "")
String pid,
@WebParam(name = "asOfDateTime", targetNamespace = "")
String asOfDateTime,
@WebParam(name = "dsState", targetNamespace = "")
String dsState);
four wsdl files demonstrating problem
echo.wsdl with ref
echo1.wsdl without ref
echo2.wsdl with list reponse without ref
echo3.wsdl with list reponse with ref