Combine JAXB and JAXWS for an imported XML Schema

后端 未结 3 1297
遇见更好的自我
遇见更好的自我 2021-01-07 07:50

How can I specify a JAXB Binding for an imported XSD within a WSDL when using wsimport?

I tried following binding, which causes the error \"XPath evaluation of //xs:

3条回答
  •  清歌不尽
    2021-01-07 08:16

    I did something similar ages ago, I think you need to specify the node to select with XPath as follows:

    //xs:element[@name='isFoobar']/xs:complexType
    

    Or replace xs:complexType with whatever kind of type you are using here. Hopefully it will fix your probelm.

提交回复
热议问题