Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
||
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[18.223.172.252] |
|
Сообщ.
#1
,
|
|
|
Вот WSDL:
<?xml version="1.0" encoding="utf-8"?> <!-- http://core.xxx.net/get/wsdl.xml --> <wsdl:definitions xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="http://core.xxx.net/core" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://core.xxx.net/XXX/CORE/Plugin/Controller/Authorization" xmlns:auth="http://core.xxx.net/XXX/CORE/Plugin/Controller/Authorization"> <wsdl:documentation>New Business System SOAP Service</wsdl:documentation> <wsdl:types> <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://core.xxx.net/XXX/CORE/Plugin/Controller/Authorization" id="schema1"> <xs:element name="sc_agent_install_link"> <!-- Получить ссылку для загрузки установки --> <xs:complexType> <xs:sequence> <xs:element name="id_agent" type="xs:string"/> <xs:element name="install_key" type="xs:string"/> <xs:element name="sign" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> <xs:schema targetNamespace="http://core.xxx.net/XXX/CORE/Plugin/Controller/Control" elementFormDefault="qualified"/> </wsdl:types> <!-- Получить ссылку для загрузки установки --> <wsdl:message name="sc_agent_install_link"> <wsdl:part name="ticket" element="auth:sc_agent_install_link"/> </wsdl:message> <wsdl:message name="sc_agent_install_linkResponse"> <wsdl:part name="parameter" element="auth:sc_agent_install_linkResponse"/> </wsdl:message> <wsdl:portType name="CDNCORESOAPServicePortType"> <wsdl:operation name="sc_agent_install_link"> <wsdl:documentation>Получить ссылку для загрузки установки</wsdl:documentation> <wsdl:input message="auth:sc_agent_install_link"/> <wsdl:output message="auth:sc_agent_install_linkResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="CDNCORESOAPServiceBinding" type="auth:CDNCORESOAPServicePortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="sc_agent_install_link"> <!-- Получить ссылку для загрузки установки --> <soap:operation soapAction="/XXX/CORE/Plugin/Controller/Authorization#sc_agent_install_link"/> <wsdl:input> <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://core.xxx.net/core"/> </wsdl:input> <wsdl:output> <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://core.xxx.net/core"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="NBS"> <wsdl:port name="CORESOAPService" binding="auth:CDNCORESOAPServiceBinding"> <soap:address location="http://core.xxx.net/core"/> </wsdl:port> </wsdl:service> </wsdl:definitions> Вот пример запроса: use Data::Dumper ; use SOAP::WSDL ; my $soap = SOAP::WSDL -> new ( 'wsdl' => 'http://core.xxx.net/get/wsdl.xml' ) ; my $som = $soap -> call ( 'sc_agent_install_link' , { 'id_agent' => '07299af1b7be20f71e9a6b46a5eecbd7' , 'install_key' => '28ea5e37ecf2f1dc9a11cb545ef3718b' , 'sign' => '38ea5e37ecf2f1dc9a11cb545ef3718b' } ) ; print ( &Dumper ( $som -> result ( ) ) ) ; print ( &Dumper ( $som -> faultstring ( ) ) ) ; Метод "sc_agent_install_link" находится в пакете "XXX::CORE::Plugin::Controller::Authorization", то есть \&XXX::CORE::Plugin::Controller::Authorization:sc_agent_install_link. Вот что выводит запрос: $VAR1 = 'SOAPAction shall match \'uri#method\' if present (got \'/CDN/CORE/Plugin/Controller/Authorization#sc_agent_install_link\', expected \'#sc_agent_install_link\' '; Что ему нужно? |