[rt-devel] rt SOAP server
Michael Lausch
mla+ml.rt-devel at lausch.at
Sat Jun 28 12:17:52 EDT 2003
On Sat, 2003-06-28 at 17:52, Jesse Vincent wrote:
> I'm somewhat of a SOAP newbie, so I apologize if I've gotten it wrong.
> Would it be possible to see a chunk of a WSDL file for what we're doing
> now and what we "should" be doing?
>
> Thanks,
> Jesse
what i've done is to define a XML schema for a ticket (it's not complete
yet, but a start)
<xsd:complexType name="Ticket">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="id" type="xsd:int"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Subject"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Owner"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Cc" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="AdminCc"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Requestors"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="DependsOn"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="DependedOnBy"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="MemberOf"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Members"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Refersto"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="ReferredToBy"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Transactions"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Starts"
type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Started"
type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Due"
type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Resolved"
type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Created"
type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Told"
type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="0" name="LastUpdated"
type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Creator"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="LastUpdatedBy"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Queue"
type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="Type"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
then i'm able to define the createTicketRequest message like this:
<message name="ticketCreateRequest">
<part name="ticket" type="xsd:Ticket"/>
</message>
and use the same type for the response message of the getTickets()
function and as the input parameter for updateTicket()
this means that the type (or XML Schema) 'Ticket' can be reused for
different functions (input and output parameters). It's also easier to
define a 'ListofTickets type.
More information about the Rt-devel
mailing list