Hi Martin,
I inspected your WSDL. My finding is that:
The operation int calculateBlueBookValue(VehicleDescription param0)
only use VehicleDescription as input, and it has nothing to do with
VehicleType defined in the WSDL. Is there any missing link between
VehicleDescription and VehicleType in
As far as I know, xsi:type attribute is only added for rpc style
service invocation.
I never see xsi:type in document style service. If Axis2 do this way,
it means the serializer will add the xsi:type attribute. So does it
mean that the serializer/deserializer is Axis2 dependent?
By the way,
]
Subject: Re: passing objects of subtypes
Date: Sun, 25 Jun 2006 17:06:04 +0300
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc10-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Sun,
25 Jun 2006 07:06:34 -0700
Received: (qmail 85222 invoked by uid 500); 25
Thanks, yes. It was valuable to me in learning how to do this and building the WSDL shown in my last message.
Joshua
On 6/27/06, Martin Gainty [EMAIL PROTECTED] wrote:
Joshua-I sent you the wsdl for Vehicle BaseType, Car SubType and Motorcycle subtypeon sunday
Did you not receive it?Please
Thanks for the valuable help.With that help to start me off, I managed to build a toy example using Vehicle with a subclass Truck, which adds a property
to Vehicle. Using --extraClasses on java2wsdl, I got Axis to de/serialize the runtime type correctly. (The WSDL is below.)Anne, you said I
I'm looking for the ability to pass an object of runtime type Car when the declared parameter or return type is the superclass Vehicle. For this to happen, the serializer must pass runtime type information in our document-literal SOAP (an
xsi:type attribute in the root element) saying that the
binding="ns:BlueBookValueLocalhostBinding"
name="BlueBookValueLocalhostPort"!-- soap:address
location="c:/Java/projects2/axis2-std-1.0testbed\build\wsdlBlueBookValue"/
-- soap:address
location="http://localhost:8080/axis/servlet/AxisServlet"
//wsdl:port
ws
-
From:
Joshua
Fox
To:
axis-user@ws.apache.org
Cc:
Martin Gainty ; [EMAIL PROTECTED]
Sent: Sunday, June 25, 2006 10:06
AM
Subject: Re: passing objects of
subtypes
I'm looking for the ability to pass an object of runtime type
Car when the declared parameter or
return type
Title: Message
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:05To: axis-user@ws.apache.orgSubject: passing objects
of subtypes
My WSDL has type
information,