"Unmarshalling Error: null" Response

1,824 views
Skip to first unread message

Ami Assayag

unread,
Mar 20, 2014, 11:50:21 AM3/20/14
to google-doubleclick...@googlegroups.com
I am constructing the SOAP xml and sending with a valid access token. The transaction looks similar to the samples found in the NoClientLibrary for dot net. but I am getting this bad response back:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Unmarshalling Error: null </faultstring></soap:Fault></soap:Body></soap:Envelope>
 
Here is my body:

<?xml version="1.0" encoding="UTF-8"?>
<env:envelope
  xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <env:Header>
    <RequestHeader
      xmlns="https://www.google.com/apis/ads/publisher/v201403">
      <networkCode
        xmlns="https://www.google.com/apis/ads/publisher/v201403">MyNetworkCodeHere
      </networkCode>
      <applicationName
        xmlns="https://www.google.com/apis/ads/publisher/v201403">DFP Integration Test
      </applicationName>
      <authentication xsi:type="OAuth"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance>"
        xmlns="https://www.google.com/apis/ads/publisher/v201403">
        <parameters>My.Access.Token.Here</parameters>
      </authentication>
    </RequestHeader>
  </env:Header>
  <env:Body>
    <getCompaniesByStatement
      xmlns="https://www.google.com/apis/ads/publisher/v201403">
      <filterStatement>
        <query>WHERE name = 'XYZ' LIMIT 1</query>
      </filterStatement>
    </getCompaniesByStatement>
  </env:Body>
</env:envelope>
Is there a way to get more detailed description of what's wrong with the transaction?
Did anybody see this problem before? How did you fix it?
Thanks!

Ami Assayag

unread,
Mar 20, 2014, 3:40:41 PM3/20/14
to google-doubleclick...@googlegroups.com
Finally got this right.. See the xml below.

If anybody from Google reads this... The documentation on how transactions should look like is missing, outdated, and in some places wrong. I understand that you want developers to use client libraries, but there are other developers (like me) that don't code in languages that have client library support, and need all the tiny details.


Ami Assayag

unread,
Mar 20, 2014, 3:45:09 PM3/20/14
to google-doubleclick...@googlegroups.com
Here is how a good transaction should look like...

<?xml version="1.0" encoding="UTF-8"?>
<env:envelope
  xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <env:Header>

    <ns1:RequestHeader         actor="http://schemas.xmlsoap.org/soap/actor/next"         mustUnderstand="0" xsi:type="ns1:SoapRequestHeader"
      xmlns:ns1="https://www.google.com/apis/ads/publisher/v201403"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <ns1:authentication xsi:type="ns1:OAuth"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <ns1:parameters>Bearer My.Access.Token</ns1:parameters>
      </ns1:authentication>
      <ns1:networkCode xsi:type="xsd:string"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">MyNetWorkCode
      </ns1:networkCode>
      <ns1:applicationName xsi:type="xsd:string"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">app.name      
      </ns1:applicationName>
    </ns1:RequestHeader>

  </env:Header>
  <env:Body>
    <getCompaniesByStatement
      xmlns="https://www.google.com/apis/ads/publisher/v201403">
      <filterStatement>

        <query>WHERE name = 'xyz' LIMIT 1</query>

Chris Seeley (DFP API Team)

unread,
Mar 21, 2014, 11:05:26 AM3/21/14
to google-doubleclick...@googlegroups.com
Hi Ami,

I'll make sure the dot net example gets updated. For the record, what language are you using? 

Thanks,
Chris Seeley, DFP API Team

Ami Assayag

unread,
Mar 22, 2014, 9:19:09 AM3/22/14
to google-doubleclick...@googlegroups.com
I'm using apex. Unfortunately I can't use the wsdl because the conversion program does not work well (also, just eyeballing the wsdl, I it doesn't look like the authentication node has a parameters child, which i think is required). Now I'm writing XML to a string and sending as an http request and my hang up was strictly related to formatting.
Message has been deleted
Message has been deleted

Chris Seeley (DFP API Team)

unread,
Mar 27, 2014, 1:47:07 PM3/27/14
to google-doubleclick...@googlegroups.com
The NoClientLibrary page has been updated on the github wiki:

For anyone looking for more details on SOAP requests, there's also this guide in our documentation that has an example request/response: 

Thanks,
Chris Seeley, DFP API Team

Reply all
Reply to author
Forward
0 new messages