In the soap4r wsdl samples directory lives some client code to connect
to the google adwords service.
All seems to work ok (my object gets populated with data from xml
response), except for languageTargeting. Although I can see that
there is a valid value in the xml response, my object’s
languageTargeting is always an empty array.
I’m wondering if this is a problem with the autogen’d campaign_service
classes or whether the problem lies elsewhere.
As a slight aside, is there any way to create a local Soap object
given an xml document?
In the soap4r wsdl samples directory lives some client code to connect
to the google adwords service.
All seems to work ok (my object gets populated with data from xml
response), except for languageTargeting. Although I can see that
there is a valid value in the xml response, my object’s
languageTargeting is always an empty array.
I’m wondering if this is a problem with the autogen’d campaign_service
classes or whether the problem lies elsewhere.
Can you send me a wiredump of xml response? Please ensure to delete
private information in it before sending. I’ll look into it.
As a slight aside, is there any way to create a local Soap object
given an xml document?
0% cat foo.rb
xml = <<XML
baz
XML
require ‘xsd/mapping’
obj = XSD::Mapping.xml2obj(xml)
p [obj.class, obj[“bar”]]
require ‘soap/processor’
obj = SOAP::Processor.unmarshal(xml)
p [obj.class, obj[“bar”]]