我收到服务器无法编辑的请求。我需要从正文中获取和xml。从标准的multipart / form-data中,我可以通过Content配置获得数据,但是请求中不存在该数据。如何在Spring Boot中实现这一目标?谢谢。
POST /SendToWIB.jsp HTTP/1.1
Content-Type: multipart/related;
boundary=asdlfkjiurwghasf;
type="application/xml"
Host: wigserver:5012
Content-Length: 791
X-WAP-Payment-Info: content-value-class=167
--asdlfkjiurwghasf
Content-Type: application/xml
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP
2.0//EN"
"http://www.wapforum.org/DTD/pap_2.0.dtd">
<pap>
<push-message push-id="9fjeo39jf084@contentprovider.com"
ppg-notify-requested-to="www.contentprovider.com/pushlog.jsp">
<address address-value="+46123456789"/>
<quality-of-service deliverymethod="confirmed"/>
</push-message>
</pap>
--asdlfkjiurwghasf
Content-Type: text/vnd.wap.wml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE wml PUBLIC "-//SmartTrust//DTD WIG-WML
4.0//EN"
"http://www.smarttrust.com/DTD/WIGWML4.0.dtd">
<wml>
<card>
<p>
You have received a push message!
<go href="www.contentprovider.com/pushresponse.jsp"/>
</p>
</card>
</wml>
--asdlfkjiurwghasf