Employee

Data Service & soapUI

Hi guys,
I'm trying to test a Data Service from soapUI and it seems that the generated WSDL is malformed :
ERROR:javax.wsdl.WSDLException: WSDLException (at /HTML): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.
My data service is quite simple :
tESBProdiverRequest --> tESBProdiverResponse
All default component parameters, nothing configure..
Thanks,
Bahaaldine

  • ESB
6 REPLIES
Employee

Re: Data Service & soapUI

That's interesting, can you attach the WSDL generated by Data Service.
Where do you run your service in Studio or in the Runtime?
Please make sure you see the WSDL by the URL you give in the SOAP UI.
Employee

Re: Data Service & soapUI

Hi Renat,
I run the service directly in the studio and
I see the WSDL when I copy & paste the URL in my web browser.
Below the generated WSDL.





































Employee

Re: Data Service & soapUI

BTW, there is also a missing namespace alias (for the targetNamespace) in the generated WSDL :



The namespace for alias "tns" is not defined.
Employee

Re: Data Service & soapUI

That's very strange. In your first post SOAPUI were not able to find '{http://schemas.xmlsoap.org/wsdl/}definitions'' which is a root WSDL element. It was apparently getting an HTML response from the server (404?). I was able to reproduce the missing namespace issue, however it is not the issue you have, could you please recheck and post the exception from the SOAPUI again?
Employee

Re: Data Service & soapUI

Ok I think that we can forget the first issue because it was due to my customer network ...
But as you saw the namespace issue is still there Smiley Sad
Employee

Re: Data Service & soapUI

Yup. Good that you found it! I created a JIRA: https://jira.sopera.de/browse/TESB-2125 I still have a feeling that undeclared namespace prefix in the name of the operation does not disturb anyone, I mean SOAPUI works with it, as well as CXF consumers. It just don't feel right but in practice still works. Going to fix it anyway.