Skip to content

Instantly share code, notes, and snippets.

@vyper
Created April 25, 2011 18:20
Show Gist options
  • Save vyper/940940 to your computer and use it in GitHub Desktop.
Save vyper/940940 to your computer and use it in GitHub Desktop.
PHP: request anonymous object
<?php
$client = new SoapClient('http://personah.cmsw.com.br/Sale/services/Compra?wsdl');
$request = new stdClass;
$request->compra = new stdClass;
$request->compra->id_cliente = 1;
$request->compra->usuario = 'usuario';
$request->compra->...
$request->compra->...
$request->compra->...
$client->requestCompra($request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment