Hello,
I need an opinion about this WSDL file; i don't know if i implement
correctly the interface in the wsdl file of the Instance Service.
This is the interface:
*public interface FindActorFilmography{
Filmography getMovies(String name, String surname);
}*
Give in input the actor's name and surname, the method returns the actor's
Filmography with title and year of the implemented films.
I've to implement the WS-Resource Factory Pattern e take information about
the last research.
The FilmographyService wsdl file:
*<?xml version="1.0" encoding="UTF-8">
<definitions name="FilmographyService"
targetNamespace="http://namespace/di/FilmographyService"
xmlns="http://namespace/di/xmlns"
xmlns:tns="http://namespace/di/FilmographyService"
xmlns:wsdl="http://namespace/di/wsdl"
xmlns:wsdlpp="http://namespace/del/preprocessore"
xmlns:wsrp="http://namespace/delle/RPs"
xmlns:wsrpw="http://namespace/delle/RPs"
xmlns:xsd="http://namespace/di/XMLSchema">
<wsdl:import
namespace="http:/importo/il/file/wsdl/per/la/specifica/WS-ResourceProperties"
location="indico/dove/si/trova/il/file/wsdl/della/specifica/sul/WS-container"/>
<!-- Type definitions -->
<types>
<xsd:schema targetNamespace="http://namespace/di/FilmographyService"
xmlns:tns="http://namespace/di/FilmographyService"
xmlns:xsd="http://namespace/di/XMLSchema">
<!-- Request and Response -->
<xsd:element name="getMovies">
<xsd:complexType>
<xsd:seqence>
<xsd:element ref="name"/>
//QUESTION1: It's exact?
//QUESTION2:i must specify the min/maxOccurs?
<xsd:element ref="surname"/> // also here?
</xsd:seqence>
</xsd:complexType>
</xsd:element>
//** QUESTION**: betwean the two declarations of getMovieResponse, who is
exact? <xsd:element name="getMoviesResponse">
<xsd:complexType>
<xsd:seqence>
<xsd:element ref="year"/> //QUESTION:Also here is the same
thing?
<xsd:element ref="title"/>
</xsd:seqence>
</xsd:element>
// OR
<xsd:element name="getMoviesResponse"
type="xsd:FilmographyResourceProperties">
</xsd:element>
<!-- Resource Properties -->
<xsd:element name="title" type="xsd:String"/>
<xsd:element name="year" type="xsd:int"/>
<xsd:element name="name" type="xsd:
<xsd:element name="surname" type="xsd:String"/>
<xsd:element name="FilmographyResourceProperties">
<xsd:complexType>
<xsd:seqence>
<xsd:element ref="tns:name" type="xsd:String" minOccurs="1"
maxOccurs="1"/>
<xsd:element ref="tns:surname" type="xsd:String"
minOccurs="1" maxOccurs="1"/>
<xsd:element ref="tns:title" type="xsd:String" minOccurs="1"
maxOccurs="unbounded"/>
<xsd:element ref="tns:year" type="xsd:int" minOccurs="1"
maxOccurs="unbounded"/>
</xsd:seqence>
</xsd:complexType>
</xsd:element>
<!--Message Definition -->
<message name="GetMoviesInputMessage">
<part name="request" element="tns:getMovies"/>
</message>
<message name="GetMoviesOutputMessage">
<part name="response" element="tns:getMoviesResponse"/>
</message>
<!-- PortType definition -->
<portType name="FilmographyPortType"
wsdlpp:extend="wsrpw:GetResourceProperty"
wsrpw:ResourceProperties="tns:FilmographyResourceProperties">
<operation name="getMovies">
<input message="tns:GetMoviesInputMessage">
<output message="tns:GetMoviesOutputMessage">
</operation>
</portType>
</definitions>*
Someone can help me with wsdl?
Thanks