创建一个带有清除的可重用类型我注意到它创建了一个带有空名称属性的复杂类型?反正是因为它似乎生成了无效的WSDL。
<xsd:complexType name="">
<xsd:sequence>
<xsd:element name="universe" type="tns:universe"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="universe">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="age" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
示例代码
class Fluffy < WashOut::Type
map :universe => {
:name => :string,
:age => :int
}
end
class FluffyContainer < WashOut::Type
type_name 'fluffy_con'
map :fluffy => Fluffy
end
模块
module soapActions
def self.sample_request()
{ :fluffy => Fluffy }
end
end
控制器
soap_action "SampleReqest", :args => SbActions.sample_request(), :return => :string
我应该期望它呈现
<xsd:complexType name="universe">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="age" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>