yii2-soap-server
yii2-soap-server copied to clipboard
Error

Сan you give more information?
sorry for not coming back with more information... I'll try to debug today!
<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 check your apache's error.log, it's likely a php error
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.
thanks for the support! Would be great to get this working!
@philippfrenzel try run the command composer update and check your code again.
I hope your example will work.
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?
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'
];
}
Yes, does not work with 'classMap'. Can anybody help?