请问各位高手们:
我通过php post xml到服务器报如下错误
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
<faultstring>no SOAPAction header!</faultstring>
<detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">imusic-gw1</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>是咋个回事啊?
我通过php post xml到服务器报如下错误
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
<faultstring>no SOAPAction header!</faultstring>
<detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">imusic-gw1</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>是咋个回事啊?
把你发的XML内容发出来。
肯定是发的内容有错
<msag:MessageHeader soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="1" xmlns:msag="http://www.msag.com">
<msag:spid>111111</msag:spid>
<msag:password>1324sdf45s</msag:password>
<msag:timestamp>2008.09.09 10:10:30</msag:timestamp>
</msag:MessageHeader>
<SOAP-ENV:Body>
<m:SMSSend xmlns:m="http://music.msag.com/smsSend/service">
<m:req>
<m0:spid>01028004</m0:spid>
<m0:phone>15308180093</m0:phone>
<m0:information>test</m0:information>
<m0:sourceType>0</m0:sourceType>
<m0:channelID>123456</m0:channelID>
</m:req>
</m:SMSSend>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>