创建一个带有清除的可重用类型我注意到它创建了一个具有空名称属性的复杂类型?无论如何,这似乎会生成无效的 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>