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

Ticket #394 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

Abstract classes not being included in output - wsdsl2ruby, netsuite wsdl

Reported by: nahi Assigned to: nahi
Priority: normal Milestone: 1.5.8
Component: wsdl4r Version: 1.5
Keywords: Cc:

Description

from soap4r-ml

I've just started using soap4r to work with the netsuite wsdl -
https://webservices.netsuite.com/wsdl/v2_0_0/netsuite.wsdl - to work
on an ecommerce site.  Unfortunately, when I start to work with the
searching classes - namely, SearchRequest, the abstract SearchRecord
class, and the *SearchBasic classes (ItemSearchBasic,
CustomerSearchBasic, etc.) it seems like soap4r ignores the inheritor
of the abstract SearchRecord class when sending output.

The method I used to try and do this is ( assuming $driver ):

sr = SearchRequest.new(ItemSearchBasic.new)
$driver.search(sr)

The output from wiredump_dev looks like:
<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <env:Body>
    <n1:search
xmlns:n1="urn:messages_2_0.platform.webservices.netsuite.com">
      <n1:searchRecord></n1:searchRecord>
    </n1:search>
  </env:Body>
</env:Envelope>

I've tried to recreate this just using the
DefaultMappingRegistry::LiteralRegistry  and the SOAP::SOAPGenerator -
I get the same xml output.  Am I just missing something or is soap4r
ignoring the inherited class at soap conversion time?

Change History

07/30/07 23:59:38 changed by nahi

Recent soap4r supports inheritance but I found that it only supports complexType definition inheritance. The patch should add support for element definition inheritance.

07/31/07 00:02:21 changed by nahi

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

(In [1907]) * added supports of complexType definition inheritance. soap4r supported only element definition inheritance. closes #394.