-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid request payload error #2
Comments
That's what I do in a project that uses this api client: use fXmlRpc\Client,
fXmlRpc\ExtensionSupportInterface,
fXmlRpc\Serializer\XmlWriterSerializer;
use OpenXApiClient\OpenXApiClient;
...
$serializer = new XmlWriterSerializer;
$serializer->disableExtension(ExtensionSupportInterface::EXTENSION_NIL);
$client = new Client($url, null, null, $serializer);
return new OpenXApiClient($client, $user, $pass); |
When I have some time, I'll speak to @Rohea about fixing some remaining bugs and moving the project to the Revive Adserver repo. |
I am not getting how is it related with my issue? any workaround of my problem? is it issue at OpenX RPC end? |
The OpenX/Revive API doesn't support NIL elements. That's why I disable them in the serializer of the client. |
But what Element is actually goin Nil? I did paste the array structure I am sending. What am I missing? |
There are quite a few things commented out, so all of them maybe? ;) |
Right, one of my dev friend was working on it, I will take care of it and test myself with payload. How do I know what fields re necessary to send and what not? |
There's currently no APi doc available, so you can either do trial & error or look up the Revive source code. But then agin, you'd currently need something like the above in order to avoid having to send the optional fields. |
@mbeccati You can grab this under the Revive project namespace whenever you want. Probably you want to rename from OpenX to Revive at the same time too? We also have a reference to this in Packagist.org so just let me know when you wish to do the change and I'll do what I can to make sure people find the official version. |
My problem was solved by following |
On adding banner I get Invalid request error. Code is given below:
It throws following exception:
Invalid request payload: xmlrpc element NIL cannot be child of VALUE
The text was updated successfully, but these errors were encountered: