How to Ignore or Check "SOAP-ERROR: Encoding: Violation of Encoding Rules" in PHP

Hello i am making a soap call in my php application

$options = array(
    'soap_version' => SOAP_1_1,
    'exceptions' => true,
    'trace' => 1,
    'cache_wsdl' => WSDL_CACHE_NONE,
    'local_cert' => 'my.key',
);
$client = new SoapClient('http://domain.com/my.wsdl', $options);
var_dump($client->functionName($args));

      

which results in an exception

SOAP-ERROR: Encoding: Violation of encoding rules

      

I think the problem is with server-respnse, because

$client->__getLastResponse()

      

contains a nice server answer, as per other questions, there is probably a value type mismatch.

Is it possible to find out what value is causing this error, or is it possible to disable this check?

+3
soap php


source to share


No one has answered this question yet

See similar questions:

nine
SOAP-ERROR: Encoding: violation of encoding rules?

or similar:

4353
How do I pass "Null" (real last name!) To a SOAP web service in ActionScript 3?
2776
How can I prevent SQL injection in PHP?
2024
How do you parse and process HTML / XML in PHP?
1906
How does PHP foreach work?
1624
How do I get PHP errors?
1065
Link. What does this error mean in PHP?
836
How to fix the "Headers have already been sent" error in PHP
1
How to set up SOAP client and server using php
0
PHP SOAP Client disables response validation
0
savon gem SOAP-ERROR: encoding: violation of encoding rules



All Articles
Loading...
X
Show
Funny
Dev
Pics