📄 function.soap-soapclient-construct.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>SoapClient constructor</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.soap-soapclient-call.html">SoapClient->__call</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.soap-soapclient-dorequest.html">SoapClient->__doRequest</a></div> <div class="up"><a href="ref.soap.html">SOAP Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.soap-soapclient-construct" class="refentry"> <div class="refnamediv"> <h1 class="refname">SoapClient->__construct</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">SoapClient->__construct</span> — <span class="dc-title"> SoapClient constructor </span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="classsynopsis"> <div class="ooclass"><b class="classname">SoapClient</b></div> <div class="constructorsynopsis dc-description"> <span class="methodname"><b><b>__construct</b></b></span> ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$wsdl</tt></span> [, <span class="methodparam"><span class="type">array</span> <tt class="parameter">$options</tt></span> ] )</div> </div> <p class="para"> This constructor creates <b class="classname">SoapClient</b> objects in <i>WSDL</i> or <i>non-WSDL</i> mode. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">wsdl</tt></i></span> <dd> <p class="para"> URI of the <i>WSDL</i> file or <b><tt>NULL</tt></b> if working in <i>non-WSDL</i> mode. </p> <blockquote><p><b class="note">Note</b>: During development stage, you may want to disable WSDL caching by the mean of the <i>soap.wsdl_cache_ttl</i> <var class="filename">php.ini</var> setting, otherwise changes made to the WSDL file will have no effect until <i>soap.wsdl_cache_ttl</i> is expired. <br /> </p></blockquote> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">options</tt></i></span> <dd> <p class="para"> An array of options. If working in WSDL mode, this parameter is optional. If working in non-WSDL mode, you must set the <i>location</i> and <i>uri</i> options, where <i>location</i> is the URL to request and <i>uri</i> is the target namespace of the SOAP service. </p> <p class="para"> The <i>style</i> and <i>use</i> options only work in non-WSDL mode. In WSDL mode, they come from the WSDL file. </p> <p class="para"> The <i>soap_version</i> option specifies whether to use SOAP 1.1, or SOAP 1.2 client. </p> <p class="para"> For HTTP authentication, you may use the <i>login</i> and <i>password</i> options. For making an HTTP connection through
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -