Forum Discussion

BenD's avatar
BenD
New Contributor
4 years ago
Solved

WSDLException Encountered illegal extension element '{http://schemas.xmlsoap.org/wsdl/}annotation'

I'm getting this WSDLException and have no clue where to start looking.  I looked at soapui-errors.log and pasted the stack trace below the WSDLException text.   WSDLException (at /definitions/mess...
  • richie's avatar
    richie
    4 years ago
    Hey BenD,

    I understand you're using a tool to dynamically build the .wsdl but that doesnt necessarily mean the .wsdl is built with zero issues.

    I've done a bit of googling and there are a number of reasons why this could occur.

    There's a possible problem with incorrect capitalisation of element so all words in an node name were lower case rather than lower camel case (e.g.porttype rather than portType, targetnamespace rather than targetNamespace, etc.), inclusion of an erroneous element <document>, someone else reckomed they removed ampersnd characters which they say fixed it (although i dont believe that), ensuring all elements had the appropriate namespace prefix, ensuring all elements included a namespace prefix if >1 xmlns is included and to an xmlns prefix is not required.
    If i were you i'd focus on the namespace and make sure the elements are referenced by the correct xmlns as that's whst your error message is saying

    Ta

    Rich