Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #360 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Array or Struct is not properly marshalled through stub definition for literal service

Reported by: nahi Assigned to: nahi
Priority: highest Milestone: 1.5.7
Component: soap4r Version: 1.5
Keywords: Cc:

Description

<xsd:element name="Classification">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="nbnq:Band" maxOccurs="3"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

wsdl2ruby.rb generates following mapping_registry from above schema definition.

  LiteralRegistry.register(
    ...
    :schema_element => [
      ["Band", [nil, XSD::QName.new("http://webservices.searchnbn.net/query", "Band")], [1, 3]]
    ]
  )

which should be;

  LiteralRegistry.register(
    ...
    :schema_element => [
      ["Band", ["Band[]", XSD::QName.new("http://webservices.searchnbn.net/query", "Band")], [1, 3]]
    ]
  )

LiteralRegistry? cannot detect "Band" as array so class "Classification" is not properly serialized.

Attachments

nbn.patch (0.7 kB) - added by nahi on 06/17/07 08:09:53.

Change History

06/17/07 08:09:53 changed by nahi

  • attachment nbn.patch added.

06/18/07 22:19:19 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [1852]) * Array or Struct was not properly marshalled when literal service + generated stub combination. closes #360.