我已经按照http://netbeans.org/kb/docs/websvc/rest.html上的 REST Netbeans 教程进行操作,但是在调用客户服务时得到的结果是:
<customers>
<customer>
<addressline1>111 E. Las Olas Blvd</addressline1>
<addressline2>Suite 51</addressline2>
<city>Fort Lauderdale</city>
<creditLimit>100000</creditLimit>
<customerId>1</customerId>
<discountCode>
<discountCode>78</discountCode>
<rate>0.00</rate>
</discountCode>
<email>jumbocom@gmail.com</email>
<fax>305-777-4635</fax>
<name>JumboCom</name>
<phone>305-777-4632</phone>
<state>FL</state>
<zip>
<areaLength>955.666</areaLength>
<areaWidth>923.556</areaWidth>
<radius>1876.766</radius>
<zipCode>33015</zipCode>
</zip>
</customer>
<customer>
....
</customer>
</customers>
预期结果将与教程中的相同(使用折扣码而不是数据的 uri):
我该如何做到这一点?我多次仔细检查了教程。将 Netbeans 7.2.1 与 mysql 示例数据库 Glasfish 3.1.2.2 一起使用。也尝试使用 Netbeans 7.1.2,但结果相同。