[英]PHP SOAP generating correct schema
Hi im having some trouble creating a schmea using PHP. 嗨,我在使用PHP创建schmea时遇到了一些麻烦。
I need to generate something similar to : 我需要生成类似以下内容:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:loc="http://some-url">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://some-url">
<wsse:UsernameToken wsu:Id="UsernameToken-837" xmlns:wsu="http://some-url">
<wsse:Username>account-username</wsse:Username>
<wsse:Password Type="http://some-url">account-password</wsse:Password>
<wsse:Nonce>NuehdiIAyh==</wsse:Nonce>
<wsu:Created>2009-05-07T21:41:49.765Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<loc:getLocation>
<loc:address>some-address</loc:address>
<loc:maximumAge>
<metric>Second</metric>
<units>100</units>
</loc:maximumAge>
<loc:responseTime>
<metric>Second</metric>
<units>100</units>
</loc:responseTime>
<loc:tolerance>LowDelay</loc:tolerance>
</loc:getLocation>
</soapenv:Body>
</soapenv:Envelope>
I've had 0 luck though. 我有0运气。 I tried some examples using Soapvar,Soapparam, anyone have an idea how I can go by doing this?
我使用Soapvar,Soapparam尝试了一些示例,任何人都知道如何执行此操作?
NuSOAP is an excellent toolkit for SOAP. NuSOAP是用于SOAP的出色工具包。 It's quite easy to use, and the support is very good.
它非常易于使用,并且支持非常好。
http://sourceforge.net/project/shownotes.php?release_id=552239 http://sourceforge.net/project/shownotes.php?release_id=552239
There is an excellent documentation available on how to create SOAP Scheme's. 关于如何创建SOAP方案的文档非常丰富。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.