Forum Discussion

jusbat's avatar
jusbat
Occasional Contributor
12 years ago

Web Service - "Unable to find an element definition with the name..."

Hi, I'm trying to test a web service using TestComplete. When selecting the web service I receive the error "Unable to find an element definiton with the name "[*Name of one function*]." in the WSDL Import Log. 



The definition is correct, it has just been copied and pasted from a test project in SOAPUI which works perfectly. 



Can anyone give me any insight as to why this is happening?



Thank you.
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Justine,



    I'm not sure what you meant by "copied and pasted from a test project in SOAPUI"...

    Have you followed the creation of Web Service test item procedure (http://support.smartbear.com/viewarticle/27116/#Adding)?

    Where are you selecting web service ("When selecting the web service...") ?

    What version of TestComplete are you using?

    What code do you try to execute to test your web service?
  • jusbat's avatar
    jusbat
    Occasional Contributor
    Hi, thanks for your reply.



    The web service definiton URL has been copied and pasted from SOAPUI, as in the text "http://BlaBlaWebService.svc?wsdl", so it is definitely correct.



    Yes I had this article open when attempting to add this web service. I have been able to add other services no problem, so is it possibly some sort of security feature that TestComplete doesn't support?



    I'm adding it by clicking the 'Select' button beside "Web Service Definiton URL" in a child Web Service test.



    TestComplete version 9.20.2460.7 30 day trial on Windows XP. 



    I can't execute anything, because I can't add the web service. Is that what you're asking?



    Thanks,



    Justine





  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Justine,



    Well... Your information made it more clear for me where you are :), but unfortunately did not provide with the idea of what might be wrong... :(

    Yes, it might be a problem related to some security or/and authentication... Can you obtain web service WSDL in the browser if you enter "http://BlaBlaWebService.svc?wsdl" in its adress bar and hit Enter? Does it show the WSDL or some error (likewise TestComplete does)?