Error: Code-SOAP-ENV:ClientError String: error in msg parsing: XML error parsing SOAP payload on line 1: Space requiredArray ( )

Error: Code-SOAP-ENV:ClientError String: error in msg parsing: XML error parsing SOAP payload on line 1: Space requiredArray ( )

If you are getting the above error code and error string in the client.php file while hitting the service in soap.

This Occurs when you call function and there is space in calling the server function :

Example


$response = $client ->call(' getUserData ');

it will produce the error. To fix it remove the space between the single quotes and the name of the function.

Correct way to call the function .


$response = $client ->call('getUserData');

Advertisements

Add Comment

📖 Read More