Displaying 2 results from an estimated 2 matches for "shapeapi".
Did you mean:
shaderapi
2006 Jan 09
0
Problem with publishing subclasses by AWS API specification
...Here is an example of what I mean for better illustration:
class Shape < ActionWebService::Struct
member :color, :string
end
class Square < Shape
member :length, :int
end
class Circle < Shape
member :radius, :int
end
class Rectangle < Square
member :height, :int
end
class ShapeApi < ActionWebService::API::Base
api_method :store_shape,
:expects => [Shape]
end
WSDL:
...
<xsd:complexType name="Shape">
<xsd:all>
<xsd:element name="color_id" type="xsd:string"/>
</xsd:all>
</xsd:complexType>...
2006 Jan 11
0
HELP!! - Problem with AWS and subclasses
...Here is an example of what I mean for better illustration:
class Shape < ActionWebService::Struct
member :color, :string
end
class Square < Shape
member :length, :int
end
class Circle < Shape
member :radius, :int
end
class Rectangle < Square
member :height, :int
end
class ShapeApi < ActionWebService::API::Base
api_method :store_shape,
:expects => [Shape]
end
WSDL:
...
<xsd:complexType name="Shape">
<xsd:all>
<xsd:element name="color_id" type="xsd:string"/>
</xsd:all>
</xsd:complexType>...