Situation here is very similar to the Rest Api. Just use ready request objects to get responses.
Wsdl mapping was made with wsdl2phpgenerator/wsdl2phpgenerator
- Request classes
- Create AllegroClient object
- Send request / get response
- sessionId, sessionHandle, webapiKey in requests
- Exceptions
All classes generated from wsdl are here but you can find it hard to search there. Just use good IDE to get autocompletion. If you know the name of the method you want to use, it's quite simple.
For example - start typing in PHPStorm new DoGet... and you will get beautiful hints.
Same as HERE
Short and simple example to get user login:
use Imper86\AllegroRestApiSdk\Model\SoapWsdl\DoGetUserLoginRequest;
$req = new DoGetUserLoginRequest(1, 12345);
$response = $allegroClient->soapRequest($req, $sessionId);
Here you can be a little bit lazy - if your request requires webapiKey, you can leave it with null, AllegroClient will check if setWebapiKey method is in request object, and will set the value for you.
Also, if you put sessionId in the second argument of $allegroClient->soapRequest($req, $sessionId), lib will check for setSessionId and setSessionHandle methods and will handle it for you.
Sending request may lead to a standard \SoapFault. Nothing special here.