⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sca.examples.obtaining-wsdl.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Obtaining the WSDL for an SCA component offering a Service as   a Web service</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="SCA.examples.deploy.html">Deploying an SCA component</a></div> <div class="next" style="text-align: right; float: right;"><a href="SCA.examples.understanding-wsdl.html">Understanding how the WSDL is generated</a></div> <div class="up"><a href="sca.examples.html">Examples</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="SCA.examples.obtaining-wsdl" class="section">  <h2 class="title">Obtaining the WSDL for an SCA component offering a Service as   a Web service </h2>    <p class="para">    SCA components that expose a Web service interface (i.e. have   an @binding.soap annotation) will return their WSDL definition in   response to an HTTP request with a get parameter of &quot;wsdl&quot;. The usual   way to obtain this is with &quot;?wsdl&quot; on the end of a URL. The example   below uses   <a href="function.file-get-contents.html" class="function">file_get_contents()</a> to obtain WSDL from a   service and writes it to a temporary file before then obtaining a   proxy for the service in the usual way. You could of course also   obtain the WSDL in a browser, or by some other means, and save the file   yourself.   </p>    <p class="para">   <div class="example">    <p><b>Example #1  Generated WSDL </b></p>    <div class="example-contents"><div class="cdata"><pre>&lt;?php$wsdl = file_get_contents(&#039;http://www.example.com/Services/Example.php?wsdl&#039;);file_put_contents(&quot;service.wsdl&quot;,$wsdl); //write the wsdl to a file$service = SCA::getService(&#039;service.wsdl&#039;); ?&gt;</pre></div>    </div>   </div>  </p>    <p class="para">   NOTE: If the wsdl requires imported xsds, these will need to be   fetched separately.   </p>   </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="SCA.examples.deploy.html">Deploying an SCA component</a></div> <div class="next" style="text-align: right; float: right;"><a href="SCA.examples.understanding-wsdl.html">Understanding how the WSDL is generated</a></div> <div class="up"><a href="sca.examples.html">Examples</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -