Forum Discussion

afitterling's avatar
afitterling
Occasional Contributor
14 years ago

Error loading valid WSDL file

Hello everyone,

loading a valid and given WSDL from a service gives some error code in soapUI:

Error: maxOccurs must not be less than minOccurs.
Error: An all group can contain only element particles with maxOccurs = 1

Is that for some reason avoidable. I wish to generate stub files and simulator?

Best regards,
Alex Fitterling

8 Replies

  • tjdurden's avatar
    tjdurden
    Frequent Contributor
    Hi Alex,

    Are you able to provide the WSDL please? Something does not sound right.

    Kind regards,
    Tim
  • afitterling's avatar
    afitterling
    Occasional Contributor
    Hi Tim,

    thanks for your kind offer. Actually I retrieved the WSDL from link directly:

    http://seamlesslywiredcom.plenty-test-d ... on106/?xml
    (It is a PlentyMarket SOAP-API)

    I really appreciate your help.

    Hopefully I did nothing wrong receiving the file via wget and with link parameter above.

    Can I do something, e.g. force supressing the errors, etc... ?

    Sincerely,
    Alex
  • tjdurden's avatar
    tjdurden
    Frequent Contributor
    Hi Alex,

    Unfortunately, the WSDL is not valid. There's a whole bunch of validation errors thrown, but the first instance relates to the 'maxOccur' attribute being used on <xsd:element> elements (starting with Username on line 7, then 8... 12, 13, 24, 25 etc). In fact, there's over 2300 instances of this. And then there's the 'minOccurs' attribute on line 3705 which shouldn't be there.

    I'd have a word with the developer!

    Kind regards,
    Tim
  • afitterling's avatar
    afitterling
    Occasional Contributor
    Hi Tim,
    thank you very much. I wish to contact him myself due to Plenty Markets Support.
    Can you send me your contact information: info@seamlesslywired.com
    I'd like to put you CC.
    Where are you living?
    I am from Germany,
    sincerely,
    Alex
  • afitterling's avatar
    afitterling
    Occasional Contributor
    Hi Tim,
    one more. I haven't filled in the content yet. Means the specific system behind the WSDL runs with empty data.
    As I state you, it is the WSDL-Format/Structure that is invalid?
    Right?
    Unbelievable. (and not you actually)
    Sincerely,
    Alex
  • tjdurden's avatar
    tjdurden
    Frequent Contributor
    Hi Alex,

    You're welcome. Feel free to give me a shout on LinkedIn. I'm reluctant to get involved with the support ticket personally, as I'm merely advising here (and have my own job/projects to work on), but by all means keep me in the loop on their response.

    In short, the WSDL itself is not valid. It contains a number of issues relating to the use of 'minOccurs' and 'maxOccur'. Ask them to run it through an XML validator (XML Spy for example), and they'll see.

    Kind regards,
    Tim
  • afitterling's avatar
    afitterling
    Occasional Contributor
    Hi Tim,

    I has just opened another ticket at PlentyMarkets support.
    See how they reacht. Also would like to get to the errors myself, trying to install XMLSpy.
    I'll let you know,
    yes, I'd like to get in touch in Linkedin as well.

    Sincerely,
    Alex
  • tjdurden's avatar
    tjdurden
    Frequent Contributor
    Hi Alex,

    Sure, keep me posted. I've accepted your LI request.

    Kind regards,
    Tim