Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Customer {
- public $ID;
- public $CompanyName;
- public $contacts;
- }
- class Contact {
- public $ID;
- public $contactType;
- }
- class ContactType {
- public $ID;
- public $Name;
- }
- $ct = new ContactType();
- $ct->ID = 1;
- $ct->Name = "email";
- $con1 = new Contact();
- $con1->ID = 1;
- $con1->contactType = $ct;
- $con2 = new Contact();
- $con2->ID = 2;
- $con2->contactType = $ct;
- $c = new Customer();
- $c->ID = 1;
- $c->CompanyName = "compname";
- $c->contacts = Array($con1, $con2);
- $client = new SoapClient("http://ws.dev.savvy.cz/service/TestLadon/soap/description", array('trace' => 1));
- $ret = $client->test($c);
- echo "Request:\n" . htmlentities($client->__getLastRequest()) . "<br><br>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement