php处理xml soap数据的一些小工具

由于要编写MMS彩信服务,搜索了一些php上关于WebService soap处理的相关工具,虽然最后没有使用php直接来处理彩信的收发,但是资料工具整理一下,供以后类似需要的地方使用。

处理Soap数据

处理wsdl 的辅助工具

Popularity: 6% [?]

Related

带附件内容的Soap数据包格式分析

MMS彩信发送在正常的soap xml包体外还需要附加彩信数据,经过抓包分析,发现采用 multipart/related 方式发送。
start部分发送的是Soap的数据包,其他为附加的彩信文件, 采用头部的boundary设定来做多块数据的分隔。
一个抓下来的部分包
post的header头部分

POST /wespa_mms/services/SendMessage HTTP/1.1
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_31E20DB13F6FA8BB9A1234336210043;
  type="text/xml"; start="<0.urn:uuid:31E20DB13F6FA8BB9A1234336210044@apache.org>"
SOAPAction: ""
User-Agent: Axis2
Host: 127.0.0.1:5555
Transfer-Encoding: chunked

post的数据体部分

--MIMEBoundaryurn_uuid_31E20DB13F6FA8BB9A1234336210043
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <0.urn:uuid:31E20DB13F6FA8BB9A1234336210044@apache.org>

<?xml version='1.0' encoding='UTF-8'?>xml包体内容
--MIMEBoundaryurn_uuid_31E20DB13F6FA8BB9A1234336210043
Content-Type: text/plain
Content-Transfer-Encoding: binary
Content-ID: <att_file2>

file2文件内容
--MIMEBoundaryurn_uuid_31E20DB13F6FA8BB9A1234336210043
Content-Type: text/plain
Content-Transfer-Encoding: binary
Content-ID: <file_1>

file_1文件内容
--MIMEBoundaryurn_uuid_31E20DB13F6FA8BB9A1234336210043--

Popularity: 6% [?]

Related