SoapUI error loading wsdl - org.apache.xmlbeans.XmlException error: Unexpected element: CDATA
Error in SoapUI when creating a new SOAP Project
When creating a new SOAP Project in SoapUI following error was given (as shown in the screenshot below) after providing the Project Name and URL of the wsdl.
It was expected to get the service on the Left hand side pane along with the operations of the SOAP Web Services. However the error was about loading of the WSDL as the above screenshot shows.
So the WSDL url that was being provided was from the example below what you can see as below.
So when creating a new SOAP Project in the SoapUI I was providing above URL which was as visible inside the Request screen shown in the above screenshot.
The error message was "SoapUI error loading wsdl - org.apache.xmlbeans.XmlException error: Unexpected element: CDATA". Stackoverflow and SoapUI blogs have several instances of this error message and none of the use case nor resolution steps worked.
Here are few examples from Stackoverflow and SoapUI blogs with similar error message -
This pointed to a corrupt file
This talks about perhaps Microsoft added elements or check the correct wsdl etc
This stackoverflow post is talking of a xsd schema tag
This stackoverflow post is talking about same error but after running a test
There are several such posts with the same error message but none of the solutions resolved the issue.
Now the resolution was simple. Turns out when creating a new SOAP Project, the URL to be given should not be as shown below. Even though this URL is visible in one of the Request screens as shown below with surrounded red line.
The correct WSDL url would be of the form ending with calculator.asmx?wsdl (note the ?wsdl)
In short the above URL (shown in screenshot) is not correct as it is not the actual wsdl path. So when creating a new SOAP Project, always check the full path to a WSDL and use that to create the SOAP Project (typically ends with ?wsdl)
Resolution: After using the full path of WSDL the Project was successfully created and all the Service Operations were loaded and visible on the Left pane of SoapUI.
When creating a new SOAP Project in SoapUI following error was given (as shown in the screenshot below) after providing the Project Name and URL of the wsdl.
It was expected to get the service on the Left hand side pane along with the operations of the SOAP Web Services. However the error was about loading of the WSDL as the above screenshot shows.
So the WSDL url that was being provided was from the example below what you can see as below.
So when creating a new SOAP Project in the SoapUI I was providing above URL which was as visible inside the Request screen shown in the above screenshot.
The error message was "SoapUI error loading wsdl - org.apache.xmlbeans.XmlException error: Unexpected element: CDATA". Stackoverflow and SoapUI blogs have several instances of this error message and none of the use case nor resolution steps worked.
Here are few examples from Stackoverflow and SoapUI blogs with similar error message -
This pointed to a corrupt file
This talks about perhaps Microsoft added elements or check the correct wsdl etc
This stackoverflow post is talking of a xsd schema tag
This stackoverflow post is talking about same error but after running a test
There are several such posts with the same error message but none of the solutions resolved the issue.
Now the resolution was simple. Turns out when creating a new SOAP Project, the URL to be given should not be as shown below. Even though this URL is visible in one of the Request screens as shown below with surrounded red line.
The correct WSDL url would be of the form ending with calculator.asmx?wsdl (note the ?wsdl)
In short the above URL (shown in screenshot) is not correct as it is not the actual wsdl path. So when creating a new SOAP Project, always check the full path to a WSDL and use that to create the SOAP Project (typically ends with ?wsdl)
Resolution: After using the full path of WSDL the Project was successfully created and all the Service Operations were loaded and visible on the Left pane of SoapUI.
Thanks for sharing such a great post. It is very useful and informative. Valuable information you have shared. Also, check out
ReplyDelete<a href="https://www.akku.work/product/multi-factor-authentication.html>Multi-Factor Authentication</a>
no me sirvio la info
ReplyDeleteHey, If you want learn about PMP then you must have read this - PMBOK® Guide: Top Differences Between PMBOK 7th vs 6th Edition!
ReplyDelete