<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=359932&amp;view=findpost&amp;p=3161733</guid>
        <pubDate>Wed, 27 Jun 2012 17:39:26 +0000</pubDate>
        <title>ПОмогите составить WSDL</title>
        <link>https://forum.sources.ru/index.php?showtopic=359932&amp;view=findpost&amp;p=3161733</link>
        <description><![CDATA[Tishaishii: Вот WSDL:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&#60;!--</div><div class="code_line">http://core.xxx.net/get/wsdl.xml</div><div class="code_line">--&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&#60;wsdl:definitions xmlns:ns1=&quot;http://org.apache.axis2/xsd&quot; xmlns:wsdl=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:http=&quot;http://schemas.xmlsoap.org/wsdl/http/&quot; xmlns:ns0=&quot;http://core.xxx.net/core&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:mime=&quot;http://schemas.xmlsoap.org/wsdl/mime/&quot; xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot; xmlns:soap12=&quot;http://schemas.xmlsoap.org/wsdl/soap12/&quot; xmlns:wsaw=&quot;http://www.w3.org/2006/05/addressing/wsdl&quot; xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:ns=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; targetNamespace=&quot;http://core.xxx.net/XXX/CORE/Plugin/Controller/Authorization&quot; xmlns:auth=&quot;http://core.xxx.net/XXX/CORE/Plugin/Controller/Authorization&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;wsdl:documentation&#62;New Business System SOAP Service&#60;/wsdl:documentation&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;wsdl:types&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:schema attributeFormDefault=&quot;unqualified&quot; elementFormDefault=&quot;unqualified&quot; targetNamespace=&quot;http://core.xxx.net/XXX/CORE/Plugin/Controller/Authorization&quot; id=&quot;schema1&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:element name=&quot;sc_agent_install_link&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;!-- Получить ссылку для загрузки установки --&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:complexType&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:sequence&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:element name=&quot;id_agent&quot; type=&quot;xs:string&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:element name=&quot;install_key&quot; type=&quot;xs:string&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:element name=&quot;sign&quot; type=&quot;xs:string&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/xs:sequence&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/xs:complexType&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/xs:element&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/xs:schema&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;xs:schema targetNamespace=&quot;http://core.xxx.net/XXX/CORE/Plugin/Controller/Control&quot; elementFormDefault=&quot;qualified&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/wsdl:types&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;!-- Получить ссылку для загрузки установки --&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;wsdl:message name=&quot;sc_agent_install_link&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:part name=&quot;ticket&quot; element=&quot;auth:sc_agent_install_link&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/wsdl:message&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;wsdl:message name=&quot;sc_agent_install_linkResponse&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:part name=&quot;parameter&quot; element=&quot;auth:sc_agent_install_linkResponse&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/wsdl:message&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;wsdl:portType name=&quot;CDNCORESOAPServicePortType&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:operation name=&quot;sc_agent_install_link&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:documentation&#62;Получить ссылку для загрузки установки&#60;/wsdl:documentation&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:input message=&quot;auth:sc_agent_install_link&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:output message=&quot;auth:sc_agent_install_linkResponse&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/wsdl:operation&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/wsdl:portType&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;wsdl:binding name=&quot;CDNCORESOAPServiceBinding&quot; type=&quot;auth:CDNCORESOAPServicePortType&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;soap:binding style=&quot;rpc&quot; transport=&quot;http://schemas.xmlsoap.org/soap/http&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:operation name=&quot;sc_agent_install_link&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;!-- Получить ссылку для загрузки установки --&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;soap:operation soapAction=&quot;/XXX/CORE/Plugin/Controller/Authorization#sc_agent_install_link&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:input&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;soap:body use=&quot;encoded&quot; encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; namespace=&quot;http://core.xxx.net/core&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/wsdl:input&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:output&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;soap:body use=&quot;encoded&quot; encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; namespace=&quot;http://core.xxx.net/core&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/wsdl:output&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/wsdl:operation&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/wsdl:binding&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;wsdl:service name=&quot;NBS&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;wsdl:port name=&quot;CORESOAPService&quot; binding=&quot;auth:CDNCORESOAPServiceBinding&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;soap:address location=&quot;http://core.xxx.net/core&quot;/&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/wsdl:port&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/wsdl:service&#62;</div><div class="code_line">&#60;/wsdl:definitions&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
<br>
Вот пример запроса:<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">use Data::Dumper ;</div><div class="code_line">use SOAP::WSDL &nbsp; ;</div><div class="code_line">&nbsp;</div><div class="code_line">my $soap = SOAP::WSDL -&#62; new ( &#39;wsdl&#39; =&#62; &#39;http://core.xxx.net/get/wsdl.xml&#39; ) ;</div><div class="code_line">my $som = $soap -&#62; call ( &#39;sc_agent_install_link&#39; , { &#39;id_agent&#39; =&#62; &#39;07299af1b7be20f71e9a6b46a5eecbd7&#39; , &#39;install_key&#39; =&#62; &#39;28ea5e37ecf2f1dc9a11cb545ef3718b&#39; , &#39;sign&#39; =&#62; &#39;38ea5e37ecf2f1dc9a11cb545ef3718b&#39; } ) ;</div><div class="code_line">print ( &amp;Dumper ( $som -&#62; result ( ) ) ) ;</div><div class="code_line">print ( &amp;Dumper ( $som -&#62; faultstring ( ) ) ) ;</div></ol></div></div></div></div><br>
<br>
Метод &quot;sc_agent_install_link&quot; находится в пакете &quot;XXX::CORE::Plugin::Controller::Authorization&quot;, то есть &#092;&amp;XXX::CORE::Plugin::Controller::Authorization:sc_agent_install_link.<br>
<br>
Вот что выводит запрос:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">$VAR1 = &#39;SOAPAction shall match \&#39;uri#method\&#39; if present (got \&#39;/CDN/CORE/Plugin/Controller/Authorization#sc_agent_install_link\&#39;, expected \&#39;#sc_agent_install_link\&#39; &#39;;</div></ol></div></div></div></div><br>
<br>
Что ему нужно?]]></description>
        <author>Tishaishii</author>
        <category>XML, XSL, XSLT</category>
      </item>
	
      </channel>
      </rss>
	