php webservice问题
以下是抓包抓出来的数据,请问用php写出这个webservice
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<GIP:ClientInfo xmlns:GIP="http://webservice.gip.sinosoft.com">
<GIP:UserCode>EFORM</GIP:UserCode>
<GIP:QueueName>EFORM</GIP:QueueName>
<GIP:Tradetype>04</GIP:Tradetype>
<GIP:Tradecode/>
<GIP:Function/>
<GIP:Action></GIP:Action>
<GIP:XMLNeed>1</GIP:XMLNeed>
</GIP:ClientInfo>
</soapenv:Header>
<soapenv:Body>
<recive xmlns="http://webservice.gip.sinosoft.com">
<arg0 xmlns=""/>
</recive>
</soapenv:Body>
</soapenv:Envelope>
想养布偶的时颜
10 years, 11 months ago
Answers
我使用了以下代码来实现这个webservice头,这个方法整可谓是无坚不摧。
$objRequest = '<GIP:ClientInfo xmlns:GIP="http://webservice.gip.sinosoft.com">
<GIP:UserCode>EFORM</GIP:UserCode>
<GIP:QueueName>EFORM</GIP:QueueName>
<GIP:Tradetype>04</GIP:Tradetype>
<GIP:Tradecode></GIP:Tradecode>
<GIP:Function></GIP:Function>
<GIP:Action> </GIP:Action>
<GIP:XMLNeed>1</GIP:XMLNeed>
</GIP:ClientInfo>';
$soapvar = new SoapVar($objRequest, XSD_ANYXML);
萝莉捡苹果
answered 10 years, 11 months ago