开发者

Defining minoccurs and max occurs in WSDL using rails

开发者 https://www.devze.com 2023-01-15 15:57 出处:网络
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

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

精彩评论

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