我们正在尝试连接到:
http://resellertest.enom.com/interface.asp?command=nameofcommand&uid=yourloginid&pw=yourpassword¶mname=paramvalue&nextparamname=nextparamvalue
在这里,我们需要将参数附加到HTTP URL,并且站点的响应是XML。
XML响应示例:
<?xml version="1.0" ?>
<interface-response>
<Contact>
<RegistrantPartyID>{FFD61956-8D43-45FB-BC38-E0EE23331503}</RegistrantPartyID>
</Contact>
<Command>ADDCONTACT</Command>
<Language>en</Language>
<IsLockable>True</IsLockable>
<IsRealTimeTLD>True</IsRealTimeTLD>
<TimeDifference>+03.00</TimeDifference>
<ExecTime>0.3164063</ExecTime>
<Done>true</Done>
<debug>
<![CDATA [ ] ]>
</debug>
</interface-response>
我们试图从Java连接到这些服务。
有没有一种方法可以像传统的WebServices那样自动生成Java类(对应XML)?
提前谢谢。