Jump to content

SOAP Help


mattclements

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.