我有Restful webservice以xml样式返回数据 我在浏览器中的网址如下:
http://localhost:3085/BasicService.svc/sess_details?subject = 999

它给了我
<subjectDetails xmlns="http://schemas.datacontract.org/2004/07/CA_WCF" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<CommitteeId>121</CommitteeId>
<IsCommittee>true</IsCommittee>
<Name>new employees</Name>
<Number>six</Number>
<subjectDate>10/02/1434</subjectDate>
<subjectId>999</subjectId>
<Status>5</Status>
<UserId>0</UserId>
</subjectDetails>
&#13;
如何在javascript变量中调用webservice并存储结果(此xml数据)?