0

Php Nusoap を使用して単純な Web サービスを作成しました。正しく動作していますが、唯一欠けているのは、デフォルトの xmlns 属性を応答タグに追加することです。

Response のコピーは次のとおりです。

<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
  <SOAP-ENV:Body>
    <LoginResponse xmlns="">
      <LoginResult>
        <register>
          <customer>d2ff3b88d34705e01d150c21fa7bde07</customer>
        </register>
      </LoginResult>
    </LoginResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

LoginResponse タグに名前空間を追加するにはどうすればよいですか。事前にサンクス。

4

1 に答える 1

0

register() に追加しても機能しますか?

  $server->register(
     $methodname,
     $inputparameters,
     $outputparameters,
     $namespace,//<================    
     $soapaction,
     $style,
     $use
  );
于 2010-07-19T23:21:24.507 に答える