yii2-soap-server icon indicating copy to clipboard operation
yii2-soap-server copied to clipboard

Error

Open philippfrenzel opened this issue 10 years ago • 10 comments

image

philippfrenzel avatar Feb 13 '15 17:02 philippfrenzel

Сan you give more information?

mohorev avatar Feb 16 '15 11:02 mohorev

sorry for not coming back with more information... I'll try to debug today!

philippfrenzel avatar Feb 26 '15 06:02 philippfrenzel

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>WSDL</faultcode>
<faultstring>
SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:8080/ph-resparty/web/index.php?r=soap%2Fsearch-lists' : failed to load external entity "http://localhost:8080/ph-resparty/web/index.php?r=soap%2Fsearch-lists"
</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

philippfrenzel avatar Feb 27 '15 14:02 philippfrenzel

@philippfrenzel check your apache's error.log, it's likely a php error

maxxer avatar Mar 13 '15 10:03 maxxer

I have reproduced this error. It occurs when the enablePrettyUrl = false The problem is most likely in the library that builds WSDL. Now I am negotiating with the author of this library.

mohorev avatar Mar 13 '15 11:03 mohorev

thanks for the support! Would be great to get this working!

philippfrenzel avatar Mar 13 '15 13:03 philippfrenzel

@philippfrenzel try run the command composer update and check your code again. I hope your example will work.

mohorev avatar Mar 19 '15 06:03 mohorev

when i test webservice in yii2 it happens below error, Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] Bad Request in C:\wamp\www\1.php:3 Stack trace: #0 C:\wamp\www\1.php(3): SoapClient->__call('getHello', Array) #1 C:\wamp\www\1.php(3): SoapClient->getHello('fsd') #2 {main} thrown in C:\wamp\www\1.php on line 3 servercode:

[ 'class' => 'mongosoft\soapserver\Action', ], ]; } /** - @param string $name Your name - @return string - @soap */ public function getHello($name) { return 'Hello ' . $name; } } clientcode: getHello("fsd")); ?>

i am sorry ,i am poor in english , but i want to solve the problem, who can help me?tell why?

xiongsd avatar Mar 21 '15 02:03 xiongsd

Hi, I tested the latest version and the hello world sample works out fine! If I try to use a more complex sample with classMap it fails still.

/**
   * @inheritdoc
   */
  public function actions()
  {
      return [
          'search-lists'=>[
            'class'=>'mongosoft\soapserver\Action',
            'classMap'=> 
            [
                'SearchRequest' => 'app\models\SOAP\SearchRequest',
                'ResultRecord' => 'app\models\SOAP\ResultRecord'
            ],
          ],
          'hello'=>'mongosoft\soapserver\Action'
      ];
  }

philippfrenzel avatar Mar 21 '15 11:03 philippfrenzel

Yes, does not work with 'classMap'. Can anybody help?

Barbanyaga avatar Dec 17 '16 08:12 Barbanyaga