3
Nusoap PHPでの名前空間接頭辞を追加することは、私が期待していものです、私は <p>このnusoap</p>の私の生成要求に接頭辞<strong>骨壷</strong>を追加しようとしている私はnusoapのV 1.123を使用してい
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:mnop:acceptor:contract">
<soapenv:Header>
<urn:authenticationHeader>
<urn:name>abctest</urn:name>
<urn:userid>dddd</urn:userid>
<urn:pass>errerere</urn:pass>
</urn:authenticationHeader>
</soapenv:Header>
と、このコードが
<SOAP-ENV:Header>
<authenticationHeader>
<name>abctest</urn:name>
<userid>dddd</urn:userid>
<pass>errerere</urn:pass>
</authenticationHeader>
</SOAP-ENV:Header>
$header = new SoapHeader($wsdl, 'authenticationHeader',$headerParam);
$soapAction='urn:mnop:acceptor:contract';
$client = new nusoap_client($wsdl);
$client->setHeaders($headerParam);
$data=$client->call('myoperation',$bodyParam,$namespace,$soapAction,null,null,'document', 'literal');
URN接頭辞が欠落しているとSOAP-ENV生成されたものです:soapenvと交換する必要が:、親切にこの私を解決するために教えてくださいssue。
おかげ
誰かがplsはこのスレッドに返信この問題を解決する方法ですか? – MZH
ちょっと@MZH、私は経験したのと同じ問題を抱えていますが、あなたの実装は私のものとは異なります。あなたが書いたコードをまだ持っている可能性はありますか? P.S.あなたの答えを投稿していただきありがとうございます、非常に感謝します。 – Ali