0
1つの要素(書籍)に独自の属性(タイトルとページ)が必要な場合、JAXB注釈をBeanクラス(Product)に配置するにはどうすればよいですか?JAXBで属性を持つ要素
サンプル出力
<?xml version="1.0" encoding="UTF-8"?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<S:Body>
<ns2:getProductsv2Response xmlns:ns2="http://sample.targetnamespace.org/">
<Product price="123" identifier="23423">
<Book title="Super Cool Book" pages="45"/>
</Product>
</ns2:getProductsv2Response>
</S:Body>
</S:Envelope>