这是我需要的wsdl:生成wsdl时我想要的
this.displayMap.subscribe(map => {
this.loading = map.loading;
setTimeout( () => {
this.drawAxialMapCanvas();
this.loading = false;
)};
});
现在,上面的代码在“ xs:complextype:”中包含“ xs:complex-type”,这在Java中表示类中的一个类,即:
以下是Java代码
JAVA代码开始:>>>
<xs:complexType name="library.body">
<xs:sequence>
<xs:element name="library.bank" type="xs:string" />
<xs:element name="library.books.info">
<xs:complexType>
<xs:choice>
<xs:element name="book.type0" type="book.type0" />
<xs:element name="book.type1" type="book.type1"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
JAVA代码结束
现在,以下是wsdl生成的内容:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "library.body")
public class LibBody
{
@XmlElement(nillable = false, required = true, name = "library.bank")
public String librarybank;
//Following code generates the choice
@XmlElements({
@XmlElement(name = "book.type0", type = type0.class),
@XmlElement(name = "book.type1", type = type1.class),
})
public LibBody.libraryobj libraryobj;
//Following code is supposed to add that <xs:complextype>, but
unfortunately.... result is not as expected.
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "library.books.info")
public static class libraryobj {
@XmlElement(nillable = false, required = true, name = "book.type0")
type0 hey= new type0();
@XmlElement(nillable = false, required = true, name = "book.type1")
type1 heyy= new type1();
}
}
我生成的-wsdl完成......
现在,如您所见: 我的wsdl不包含内部“ complextype”和该“ element” library.books.info。
谁能引导我正确的方向...
谢谢