I
I
ivanchik19862015-03-28 14:57:08
PHP
ivanchik1986, 2015-03-28 14:57:08

WSDL SOAP can't get response. How?

Good afternoon friends!
Either my skis don't work, or I have a problem with my hands!
WSDL: https://www.thelotter.com/__ajax/__homepage.asmx?WSDL
As I read, I started:
$client = new SoapClient(' https://www.thelotter.com/__ajax/__homepage.asmx?WSDL ');
var_dump($client->GetRecentNewsModel());
Shoveled, all that I could not get an answer. Maybe I don't understand something?!?!
Answer:
Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. ---> There was an error generating the XML document. ---> The type TheLotter.RecentNews.RecentNewsViewModel was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.
in ... Stack trace: #0 ...: SoapClient->__call(' GetRecentNewsMo ...', Array) #1 ... NewsModel() #2 {main} thrown

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Romanyuk, 2015-04-03
@lllypynby

GetRecentNewsModel(GetRecentNewsModel $parameters )
Why don't you pass parameters to the request?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question