Y
Y
Yevgeniy Kisselyov2017-01-20 13:32:25
PHP
Yevgeniy Kisselyov, 2017-01-20 13:32:25

What tools are there to validate a wsdl file?

Hello everybody!
There is a task to make a SOAP client for one application, the application developers sent me their wsdl file.
The problem is that, for example, when trying to create a client in php
$client = new SoapClient("my.wsdl");
, an error occurs:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: unexpected <annotation> in complexType

I tried to open the file through SoapUI - also an error, but a different one:
Error: The value '' is an invalid name.
I tried apache xcf (wsdlvalidator)
gives:
WSDLValidator Error : org.apache.ws.commons.schema.XmlSchemaException: Attempt to set empty name.

There is a service https://www.wsdl-analyzer.com/
But the file is not loaded there because it is quite large ~2mb
Actually the question is:
What do you use to validate wsdl files, what tools, maybe there are tools that show at least on which line in wsdl file has an error (an empty element for example)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question