Joshua-
AXIS has supported all WSDL Datatypes simple or complex from the projects's
inception
note message references XSD schema datatype TradePriceRequest
TradePriceRequest contains ComplexType element
element TickerSymbol which contains 1 element of type xsd:string
But you can construct ComplexTypes of ComplexTypes..
The example WSDL -
<?xml version="1.0"?>
<definitions name="StockQuote"
targetNamespace="http://example.com/stockquote.wsdl"
xmlns:tns="http://example.com/stockquote.wsdl"
xmlns:xsd1="http://example.com/stockquote.xsd"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema targetNamespace="http://example.com/stockquote.xsd"
xmlns="http://www.w3.org/2000/10/XMLSchema">
<element name="TradePriceRequest">
<complexType>
<all>
<element name="tickerSymbol" type="string"/>
</all>
</complexType>
</element>
<element name="TradePrice">
<complexType>
<all>
<element name="price" type="float"/>
</all>
</complexType>
</element>
</schema>
</types>
<message name="GetLastTradePriceInput">
<part name="body" element="xsd1:TradePriceRequest"/>
</message>
....
more infornation available at
http://www.w3.org/TR/wsdl
Nota Bene:
xsd:anyType type to represent a field/parameter which can have any type
Does this help?
Martin Gainty
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission.
(mobile) 001-603-438-5053
From: "James Clinton" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: <[email protected]>,<[EMAIL PROTECTED]>
Subject: RE: passing objects of subtypes
Date: Thu, 22 Jun 2006 19:30:37 +0100
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc6-f5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Thu, 22
Jun 2006 11:30:25 -0700
Received: (qmail 2016 invoked by uid 500); 22 Jun 2006 18:30:14 -0000
Received: (qmail 2001 invoked by uid 99); 22 Jun 2006 18:30:14 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 11:30:14 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [62.189.228.13] (HELO mail2.ins-sure.com) (62.189.228.13)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 11:30:13 -0700
Received: from isis.ins-sure.com (unverified) by mail2.ins-sure.com
(Content Technologies SMTPRS 4.2.5) with ESMTP id
<[EMAIL PROTECTED]>; Thu, 22 Jun 2006 19:28:34
+0100
Received: from hermes.ins-sure.com ([151.115.180.30]) by isis.ins-sure.com
with Microsoft SMTPSVC(5.0.2195.3779); Thu, 22 Jun 2006 19:29:50 +0100
X-Message-Info: LsUYwwHHNt1o1lL4xuVGMocMb5DANSz+aFvDUg9FR18=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:[email protected]>
List-Id: <axis-user.ws.apache.org>
Delivered-To: mailing list [email protected]
X-ASF-Spam-Status: No, hits=0.0
required=10.0tests=HTML_MESSAGE,UPPERCASE_25_50
X-Spam-Check-By: apache.org
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: passing objects of subtypes
Thread-Index: AcaWBRcgyGqzL97CQmO6y9h+2w1qmAAJM8Ng
X-OriginalArrivalTime: 22 Jun 2006 18:29:50.0811 (UTC)
FILETIME=[D92DA2B0:01C69629]
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
It is possible in Axis2 (not tried it myself)
google 'axis2 inheritance'
-----Original Message-----
From: Joshua Fox [mailto:[EMAIL PROTECTED]
Sent: 22 June 2006 15:05
To: [email protected]
Subject: passing objects of subtypes
My WSDL has type information, but to handle subtype objects
(document-literal), I need runtime type information in the serialization
of objects. .NET has the possibility of adding this; is it possible in
Axis?
For example, I want to return an object of a subtype of the
declared return type.
E.g., operation Vehicle getVehicle(String license_plate) may
return an object of subclassTruck, which has additional properties. The
client code would cast Vehicle to Truck.
Likewise, I want to pass an object of a subtype as a parameter.
E,g., when the client calls operation void
registerVehicle(Vehicle vehicle), vehicle may actually be a Truck, and
the server should be able to, if necessary, cast the argument to Truck.
Thus, the XML serialization must have the runtime class as one
of its elements, presumably in the root element.
java2wsdl generates WSDL that does not have such type
information.
I am aware of the all switch, but I don't think this gives the
runtime information I need.
How can Axis handle this?
Thanks,
Joshua
-----------------------------------------------------
THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL
AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE.
IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE
ON NOTICE OF ITS STATUS.
PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS
EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM.
YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY
PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON:
TO DO SO COULD BE A BREACH OF CONFIDENCE
EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED
AMENDMENT,
AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR
AMENDMENT OR THE CONSEQUENCES THEREOF.
WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR
VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES.
WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS
IN ANY EMAIL OR ATTACHMENT.
-----------------------------------------------
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]