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?