Имя: Пароль:
1C
 
Веб-сервис, чтение данных с сервера
0 Олеся999
 
15.05.15
12:46
Тут дали с Веб-сервисами по разбираться, а я с ними никогда не работала:)
известно что запущен сервер : sega074.ddns.is74.ru
Скрин: http://lvkr.ru/f/dnQVfs/1024.jpg
как от туда можно извлечь дату ?
Подскажите пожалуйста кто знает как ?
1 Олеся999
 
15.05.15
12:47
(0) соответственно нужно прочитать дату средствами 1С
2 ЧеловекДуши
 
15.05.15
13:02
(1) Через Браузер. Если вернет XML структуру в качестве ответа, то весело и непренуждено.

А так.
Что за программу ты используешь?
Какой протокол, релиз, версия. Хоть что-то нам дай?
3 Олеся999
 
15.05.15
13:33
(2) в данном примере при обмене используются xml файлы их содержимое приведено в директориях где собран пример, те если открыть соединение и внего затолкать файл примера то буде ответ, как то так )
4 Олеся999
 
18.05.15
07:17
Вот описание:  Wsdl
<?xml version="1.0" encoding="utf-8"?>
<!-- Самая первая строка  говорит, что файл XML-->

<definitions     name="SmsWsdl"
                targetNamespace="http://localhost/";
                xmlns:tns="http://localhost/";
                xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
                xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                xmlns:xsd="http://www.w3.org/2001/XMLSchema";
                xmlns:ns="http://localhost/";
                xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/";
                 xmlns:HTTP="http://schemas.xmlsoap.org/wsdl/http/";
                 xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/";
                 xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/";
                xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/";
                 xmlns="http://schemas.xmlsoap.org/wsdl/">;
            
<!-- definitions - корневой элемент содержащий все описания  -->

    <WSDL:types>
    
        <xsd:schema    targetNamespace="http://localhost/";    
                    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
                     xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                     xmlns:xsd="http://www.w3.org/2001/XMLSchema";
                     xmlns:ns="http://localhost/";
                     elementFormDefault="qualified">
            
                  
                
            <xsd:complexType name="Message">
                <xsd:sequence>
                    <xsd:element name="phone" type="xsd:string" minOccurs="1" maxOccurs="1" />
                    <xsd:element name="text" type="xsd:string" minOccurs="1" maxOccurs="1" />
                    <xsd:element name="date" type="xsd:dateTime" minOccurs="1" maxOccurs="1" />
                    <xsd:element name="type" type="xsd:decimal" minOccurs="1" maxOccurs="1" />
                </xsd:sequence>
            </xsd:complexType>
            
            <xsd:complexType name="MessageList">
                <xsd:sequence>
                    <xsd:element minOccurs="1" maxOccurs="unbounded" name="message" type="tns:Message"/>
                </xsd:sequence>
            </xsd:complexType>
            
            <xsd:element name="Request">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="messageList" type="tns:MessageList" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            
            <xsd:element name="Response">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="status" type="xsd:boolean" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:schema>
    </WSDL:types>
    
    <!-- Сообщения процедуры sendSms -->
    <WSDL:message name="sendSmsRequest">
        <WSDL:part name="sms" element="tns:Request"/>
    </WSDL:message>
    
    <WSDL:message name="sendSmsResponse">
        <WSDL:part name="sms" element="tns:Response"/>
    </WSDL:message>
    

    
    <WSDL:portType name="SmsServicePortType">
        <WSDL:operation name="sendSms">
            <WSDL:input message="tns:sendSmsRequest"  />
            <WSDL:output message="tns:sendSmsResponse" />
        </WSDL:operation>
    </WSDL:portType>
    
  
    
    
    
    <!-- Формат процедур веб-сервиса -->
    <WSDL:binding name="SmsServiceBinding" type="tns:SmsServicePortType" > <!--  привязка процедуры к сообщениям -->
    
       <SOAP:binding transport="Http://schemas.xmlsoap.org/soap/html"; style="document"/>
    
        <WSDL:operation name="sendSms" > <!--  поддерживаем всего одну операцию sendSms -->
            <SOAP:operation soapAction="" />
            <WSDL:input>
                <SOAP:body parts="sms" use="literal" /> <!-- в каком виде будут передаваться данные  -->
            </WSDL:input>
            <WSDL:output>
                <SOAP:body parts="sms" use="literal" /> <!--  стандартные soap конверты -->
            </WSDL:output>
        </WSDL:operation>
    </WSDL:binding>
    
    <!-- Определение сервиса  или точка входа -->
    <WSDL:service name="SmsService">
        <WSDL:port name="SmsServicePort" binding="tns:SmsServiceBinding"> <!-- через это привязываются поддерживаемые  процедуры -->
            <SOAP:address location="http://localhost:80/smsservice.php"; /> <!-- ссылка на файл обработчик  -->
        </WSDL:port>
    </WSDL:service>
    
</definitions>
Программист всегда исправляет последнюю ошибку.