【发布时间】:2014-05-13 11:16:38
【问题描述】:
我正在尝试使用 nusoap 在 php 中制作 .net soap 服务的存根服务器。我无法验证我的 PHP 代码中的标头。 样本 Xml 是
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<AuthenticationHeader xmlns="http://tempuri.org/">
<UserName>string</UserName>
<Password>string</Password>
</AuthenticationHeader>
</soap:Header>
<soap:Body>
<getUserPackDetails xmlns="http://tempuri.org/" />
</soap:Body>
</soap:Envelope>
我应该将soap头解析为复杂类型还是有其他方法?
【问题讨论】: