簡體   English   中英

PHP NuSoap:如何在不使用xsi:type =“ xsd:string”的情況下生成wsdl

[英]PHP NuSoap: how to generate wsdl without xsi:type=“xsd:string”

我使用PHP NuSoap創建了wsdl文件。 該文件如下:

<soapenv:Body>
      <loc:register soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <msisdn xsi:type="xsd:string">?</msisdn>
         <packagecode xsi:type="xsd:string">?</packagecode>
         <username xsi:type="xsd:string">?</username>
         <password xsi:type="xsd:string">?</password>
         <channel xsi:type="xsd:string">?</channel>
         <info xsi:type="xsd:string">?</info>
      </loc:register>
   </soapenv:Body>

但我想在沒有此字符串的情況下生成xsi:type =“ xsd:string”

<soapenv:Body>
          <loc:register>
             <msisdn>?</msisdn>
             <packagecode>?</packagecode>
             <username>?</username>
             <password>?</password>
             <channel>?</channel>
             <info>?</info>
          </loc:register>
       </soapenv:Body>

謝謝。

遇到了類似的挑戰,希望我的回答可以對某人有所幫助。

在注冊方法時,添加如下文字:

$server->register("GetHelloWorld", 
 array('name' => 'xsd:string'),       
   array('return' => 'xsd:string'),   
    'urn:helloworld',           
    'urn:helloworld#GetHelloWorld',   
    'rpc',         
    'literal'    //add this to your register method
);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM