Community
Participate
Working Groups
What follows are two snippets of XMLSchema taken from a WSDL file: Both are valid syntax and pass validation. When generating Java classes in Eclipse wsdlfile.wsdl=>right-click=>Web Service=>Generate Client:... This first snippet correctly generates a class named InputLinesType <s:element name="Input-Lines" type="tns:Input-LinesType" /> <s:complexType name="Input-LinesType"> <s:sequence> <s:element minOccurs="0" maxOccurs="20000" name="Input-Line"> <s:simpleType> <s:restriction base="s:string"> <s:maxLength value="80" /> </s:restriction> </s:simpleType> </s:element> <s:element minOccurs="0" maxOccurs="1" name="Input-LineEnd"> <s:simpleType> <s:restriction base="s:string"> <s:maxLength value="80" /> </s:restriction> </s:simpleType> </s:element> </s:sequence> </s:complexType> This second snippets is accepted by the generator without complaint, however it fails to generate the Java class. It then generates many references to the missing class: <s:element name="Input-Lines" type="tns:Input-LinesType" /> <s:complexType name="Input-LinesType"> <s:sequence> <s:element minOccurs="0" maxOccurs="20000" name="Input-Line"> <s:simpleType> <s:restriction base="s:string"> <s:maxLength value="80" /> </s:restriction> </s:simpleType> </s:element> </s:sequence> </s:complexType> It is important to note that both versions pass WSDL validation. We need to use the second version because we can't control the definition of the service we are calling. Note that version validates correctly in both Eclipse and VS Studio. Visual Studio generates the InputLinesType type in both cases and calls can be successfully made to the service. At this point we are blocked from moving forward, unless we switch to C# and VS. -- Configuration Details -- Product: Eclipse 4.7.3.20180405-1200 (org.eclipse.epp.package.jee.product)Installed Features: org.eclipse.wst.xml_ui.feature 3.9.2.v201803221834
Hi Thomas, what web service runtime are you using?
Hi Thomas, I'm going to lower the severity on this. Are you using CXF JAX-WS?