我需要写一个 rails app,然后要支持一个客户端发过来的 soap 数据,要能够解析并且回复,请问有什么技术能做到吗?? 客户端发过来的 http 数据大致如下:
POST /ftacs-acs/acs HTTP/1.1
Accept: */*
Host: acs-tech.com
Connection: Keep-Alive
Content-type: text/xml; charset=UTF-8
Content-length: 233
SOAPAction: ""
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<SOAP-ENV:Header>
<cwmp:ID SOAP-ENV:mustUnderstand="1">291188</cwmp:ID>
</SOAP-ENV:Header>
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/">
<cwmp:Inform>
<DeviceId>
<Manufacturer>Arcadyan</Manufacturer>
<OUI>0E0908</OUI>
<ProductClass>HGW</ProductClass>
<SerialNumber>JM20130922</SerialNumber>
</DeviceId>
</cwmp:Inform>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
目前我想到的就是在 ftacs-acs/acs 这个 controller 里面支持解析这么一大串数据,但是不知道要怎么解析,求教一下各位,谢谢。