Er du tilfreds med indholdet i denne her guide?
Hvis ikke, så vil vi meget gerne høre dine kommentarer.
Skriv dem herunder, så gør vi det bedste, vi kan for at forbedre manualen.
Tak for din kommentar!
To connect to a solution a new SoapClient object is created. The path to the WSDL (Web Service Description Lanugage) file for the SmartWeb API is given as the argument.
The file can be accessed at https://api.smart-web.dk/service.wsdl, but it makes good sense to download the file and use it locally, as it gives developement tools such as Zend Studio the possibility to give hints to functionnames and the possibility to autocomplete the the methodnames which can be invoked on the client.
It should be noted that all examples in this section is using the standard PHP soap client. Using the PHP soap client to connect to our api requires all arguments to be wrapped in an array, which can also be seen in the examples in this section.
The documentation at https://api.smart-web.dk/doc/ displays arguments in normal style (posibility for multiple arguments)
The convention for calling via the PHP soap client in general is to wrap arguments in an array with the argument name as key and the value as the value. For example:
Category_UpdateTitle (int $CategoryId, string $Title, string $LanguageISO)
in the documentation is called like this via the PHP soap client:
Category_UpdateTitle (['CategoryId' => int, 'Title' => string, 'LanguageISO' => string])