Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $wsdl = "http://irusalserver.dns-dns.com/eComerce/Servicio.asmx?wsdl";$wsdl = "http://irusalserver.dns-dns.com/eComerce/Servicio.asmx?wsdl";
- $client = new SoapClient($wsdl,
- array(
- 'trace' => 1,
- "cache_wsdl" => 0,
- "soap_version" => SOAP_1_1
- )
- );
- $encabezado = array();
- $encabezado[] = new SoapVar("2019-08-27T12:20:00",XSD_DATETIME,'datetime','http://www.w3.org/2001/XMLSchema','FechaEntrega');
- $encabezado[] = new SoapVar(0,XSD_DECIMAL,'decimal','http://www.w3.org/2001/XMLSchema','Amex');
- $encabezado[] = new SoapVar(899, XSD_DECIMAL, 'decimal', 'http://www.w3.org/2001/XMLSchema', 'Tarjeta' );
- $BigEncabezado = new SoapVar($encabezado,SOAP_ENC_OBJECT,null,null,'Encabezado');
- $cuerpo=array();
- $cuerpo[]=new SoapVar("013059",XSD_STRING,'string','http://www.w3.org/2001/XMLSchema','Producto_Id');
- $cuerpo[]=new SoapVar(1,XSD_DECIMAL,'decimal','http://www.w3.org/2001/XMLSchema','Cantidad');
- $cuerpo[]=new SoapVar(899,XSD_DECIMAL,'decimal','http://www.w3.org/2001/XMLSchema','Precio');
- $BigCuerpo=new SoapVar($cuerpo,SOAP_ENC_OBJECT,null,null,'Cuerpo');
- /*$FF = array(
- 'VentaDT' => array($BigEncabezado,$BigCuerpo)
- );*/
- $FF = array($BigEncabezado,$BigCuerpo);
- $FlexFields = new SoapVar($FF,SOAP_ENC_OBJECT,null,null,'venta');
- $resp = $client->GenerarVenta(
- array('venta'=>$FlexFields)
- );
- pr($resp);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement