mattclements Posted November 15, 2010 Share Posted November 15, 2010 Hello All, I have used some SOAP bits with PHP before but not sure on this one: <User> <APIKey>string</APIKey> <Details> <Title>string</Title> <FirstName>string</FirstName> <LastName>string</LastName> </Details> </User> Now I think... I should be passing 2 variables, One as the API Key, another as the array of details: require_once 'SOAP/Client.php'; $api_key="ABC"; $details={"Title","First Name","Last Name"}; $wsdl_url = 'http://testapi.org/api.asmx?wsdl'; $WSDL = new SOAP_WSDL($wsdl_url); $client = $WSDL->getProxy(); $response = $client->User($lp_api_key, $details); Is this correct? Link to comment https://forums.phpfreaks.com/topic/218743-soap-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.