S
S
Shurik2020-04-24 15:41:23
PHP
Shurik, 2020-04-24 15:41:23

Why is the soap client throwing an error?

Good afternoon. I am picking Sopa service (I am doing data exchange, i.e. I am trying to implement both the server and the client). Made wsdl file, server and client.
When starting the client, it gives the following error:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'myservice.ru/soap/test.wsdl' : Premature end of data in tag definitions line

2 The file is downloaded and not opened in the browser. It should be? I tried to open wsdl files of other services - they opened in the browser.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nokimaro, 2020-04-24
@svisch

complexTypedoes not have a closing tag

Picture
5ea2eb7b950e3226189026.png

S
Shurik, 2020-04-24
@svisch

SOAP-ERROR: Parsing WSDL: Unexpected WSDL element Understood
this error. In wsdl element was not wrapped in complexType.
Everything basically works, but only if in the client, when calling the function, explicitly pass a parameter to it. I don’t understand how and where this whole system should take data from the xml request file.
If someone can chew it, I will be grateful))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question