开发者

Defining minoccurs and max occurs in WSDL using rails

I have generated WSDL with complex types usin开发者_高级运维g action webservice in rails.

Now I need to add minoccurs and maxoccurs in complex type definitions using ruby on rails

Defined complex type in API file(SampleApi.rb).

Any suggestions on adding min and maxoccurs?


I wrapped all needed arguments by ActionWebService::Simple classes

example

class SoapRequestComplex <  ActionWebService::Struct     
end

TelephoneNumber < ActionWebService::Simple
    base :string
end

class SoapRequest < SoapRequestComplex
  member :number, TelephoneNumberInfo, :nillable => true, :minOccurs => 0
end
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜