SOAP_WRAPPED ,'trace' => 1 ,'exceptions' => true ,'cache_wsdl' => WSDL_CACHE_NONE , 'features' => SOAP_SINGLE_ELEMENT_ARRAYS )); // Set the connection address (we don't use the one stored in the WSDL file) $client->__setLocation("http://".$_SERVER['SERVER_NAME']."/index.php?option=com_vxc&controller=soap&task=service"); // Sample parameters $obj =new stdclass(); $obj->OrderType = 'wellness'; $obj->FootType = 'pronated'; $obj->ShoeSizeType = 'EU'; $obj->ShoeSize = 65.32; $obj->BrandSoleType = 'slim'; $obj->BlockColor = 'red'; $obj->HasPodotrack = false; $obj->HasFoambox = true; $obj->Weight = 80; $obj->Activity = "Sedentary"; $obj->ShoeType = "3222-3424"; $obj->Cover = "Gold"; $obj->CustomerName = "John Curtis"; $obj->CustomerStoreId = "32424"; $obj->Quantity = 4; $obj->AddressStreet = "Spain Avenue, 32 3ยบ"; $obj->AddressProvince = "Washington D.C."; $obj->AddressPCode = "34324"; $obj->AddressCountry = "U.S.A"; switch($_SERVER['SERVER_NAME']) { case 'production.voxelcare.com': $pass = '2001-09-11'; break; default: $pass = '364789328'; } $obj->AccessNumber = $pass; // Create the request $params = array(); $params['request'] = $obj; // Make SOAP call try { $ret = $client->createJJOrder($params); } catch (Exception $ex) { var_dump($ex->faultcode, $ex->faultstring, $ex->faultactor, $ex->detail, $ex->_name, $ex->headerfault); } // Print debug data print "
\n"; 
	print "Request :\n@".htmlspecialchars($client->__getLastRequest()) ."@\n"; 
	print "Response:\n@".htmlspecialchars($client->__getLastResponse())."@\n"; 
	print "Response Headers:\n".htmlspecialchars($client->__getLastResponseHeaders())."\n"; 


	print "Result: ". print_r($ret->returnValue,true);
	print "
"; ?>