如何使用PHP发出POST请求?
wsdl: http://abc.vendor.com/webservices/servicealpha?wsdl
username: u01
password: p01
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns="http://abc.vendor.com/webservices/servicealpha">
<soap:Header/>
<soap:Body>
<ProcessAlpha>
<!--Optional:-->
<xmlJob>
<anything>
<Field name="id" value="C001"/>
<Field name="name" value="One" />
</anything>
</xmlJob>
</ProcessAlpha>
</soap:Body>
</soap:Envelope>
我看到有两个选项,使用curl和SOAPClient,但是不确定推荐哪个。但是我不确定这两种方式,尤其是在SOAPClient中如何发送自定义xml
谢谢。