WSDL with ref= "S:schema" in the

Source: Internet
Author: User

DOS window, when generating the client code, there is an error as shown:

Java is parsing the WSDL file through JAXB, the reason for this error is:

Is that JAXB does not currently support the parsing of ref elements

S:schema is the outermost element within the types, and ref points to it, which is actually equivalent to <s:any/>

Solution:

<s:any minoccurs= "2" maxoccurs= "2"/> Replace <s:element ref= "S:schema"/><s:any/>

These two sentences are in fact equivalent. <s:element ref= "S:schema"/> is actually said here can be used in the s:schema of any kind of element type to replace, <s:any/> is played this role.

<s:any minoccurs= "2" maxoccurs= "2"/> is just the two <s:any/> written in a sentence.

WSDL with ref= "S:schema" in the

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.