14 years ago
[Resolved] Schema validation fails for MockService
I have created a MockService in soapUI 4.0.1 (and 4.5), based on an existing WSDL. Now that I'm connecting to this webservice through my application, it errors on the following line:
I'm getting the following error:
After some searching, I found that the generated WSDL of the MockService contains these lines:
Now the keen eyes sees that it contains &interface=, where & should be & amp;. I did not generate this, soapUI does and the original WSDL does not have this either. How can I make soapUI generate a proper WSDL? Or what am I doing wrong?
SchemaValidationFeature feature = new SchemaValidationFeature();
WSInterface connection = cdctService.getWSPort(feature);
I'm getting the following error:
org.xml.sax.SAXParseException: The reference to entity "interface" must end with the ';' delimiter.
After some searching, I found that the generated WSDL of the MockService contains these lines:
<xsd:import namespace="http://schemas.company.com/Messages/ServiceRequest-v0103" schemaLocation="/MockService?WSDL&interface=WS-Binding&part=ServiceRequest-v0103-b00.xsd" />
Now the keen eyes sees that it contains &interface=, where & should be & amp;. I did not generate this, soapUI does and the original WSDL does not have this either. How can I make soapUI generate a proper WSDL? Or what am I doing wrong?