下载、安装之类的不解释,new soap Project 也不细说,无非输入地址,自定义名称 。谈谈request , 困扰了一下 。
首先,默认的内容
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:por="http://portwebservice.mlisp.phy.com/">
<soapenv:Header/>
<soapenv:Body>
<por:receivePortMsg>
<!--Optional:-->
<arg0>?</arg0>
</por:receivePortMsg>
</soapenv:Body>
</soapenv:Envelope>
<arg0>?</arg0> 里面写的是请求体 ,一般会加上 <![CDATA[ ?]]> ,如下面格式 :
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:por="http://portwebservice.mlisp.phy.com/">
<soapenv:Header/>
<soapenv:Body>
<por:receivePortMsg>
<!--Optional:-->
<arg0>
<![CDATA[
<ITEMS><TYPE>2</TYPE><ITEM><business_seq>11604</business_seq><msg_content>TEST001|A000|A000</msg_content></ITEM></ITEMS>
]]>
</arg0>
</por:receivePortMsg>
</soapenv:Body>
</soapenv:Envelope>
二 、如果请求参数中包含[CDATA[
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:por="http://portwebservice.mlisp.phy.com/">
<soapenv:Header/>
<soapenv:Body>
<por:receivePortMsg>
<!--Optional:-->
<arg0>
<![CDATA[
<ITEMS>
<TYPE>1</TYPE>
<ITEM>
<msg_content><![CDATA[您的无纸化业务[业务单号:SHZ2242013]已在码头受理,请等候码头处理。]]]]><![CDATA[></msg_content>
<flag>1</flag>
<business_seq><![CDATA[124953:SHZ2242011-58B184]]]]><![CDATA[></business_seq>
<certificate_no></certificate_no>
<msg_type>0</msg_type>
</ITEM>
</ITEMS>
]]>
</arg0>
</por:receivePortMsg>
</soapenv:Body>
</soapenv:Envelope>