是否可以通过 PHP 将 SOAP 请求发布到服务器 url 并接收结果?
网址,用于发布参数:
http://example.com/stockChart.svc
帖子参数:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<getStockWeeklyChart xmlns="http://www.example.com/1">
<request xmlns:d4p1="http://www.example.com/2" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<d4p1:msInstrumentID>0</d4p1:msInstrumentID>
<d4p1:symbol>FB</d4p1:symbol>
<d4p1:indexSymbol>0S&P5</d4p1:indexSymbol>
<d4p1:dateInfo xmlns:d5p1="http://www.example.com/3">
<d5p1:startDate>2012-05-18T00:00:00</d5p1:startDate>
<d5p1:endDate>2013-09-16T00:00:00</d5p1:endDate>
<d5p1:frequency>Weekly</d5p1:frequency>
<d5p1:frequencyUnit>1</d5p1:frequencyUnit>
<d5p1:tickCount>0</d5p1:tickCount>
</d4p1:dateInfo>
</request>
</getStockWeeklyChart>
</s:Body>
</s:Envelope>