2
2
2462015-07-16 18:56:35
PHP
246, 2015-07-16 18:56:35

How to solve the "element already defined" problem at the application level?

Hello
I ran into a problem: when initializing the soap client

$options = array(
    'trace' => 1,
    'location' => $location
 );

$this->client = new \SoapClient($this->wsdl, $options);

I get an error like
Error: SOAP-ERROR: Parsing Schema: element ' test.ru/products/common/rr:CommonException ' already defined
As I understand it, somewhere among wsdl and related xsd there are two imports of the same namespace. Can you please tell me if it is possible to solve the problem at the application level (for example, ignoring all imports or setting a less strict parsing mode)?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2015-07-25
@27cm

$options = array(
    'trace' => 1,
    'location' => $location,
    'exceptions' => false
 );

$this->client = new \SoapClient($this->wsdl, $options);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question