Имя: Пароль:
1C
1С v8
WEB сервис создан в 1С, и этой же 1С не открывается, а из DotNet все работает
,
0 oleg_prg
 
12.06.12
18:10
В 1С 8.2 создал web сервис. В браузере все ок, вижу что работает. воожу http://192.168.1.101:8080/ws/web2?wsdl и вижу описалово сервиса
Стал к нему же подключаться из 1С8.2 вот так

Прокси = WSСсылки.WSСсылка1.СоздатьWSПрокси("http://192.168.1.101:8080/service","web2", "web2Soap");
   Прокси.GetWeb2("test");

Вываливается ошибка...
{Обработка.ОбращениеЧерезWebСервис.Форма.Форма.Форма(8)}: Ошибка при вызове метода контекста (GetWeb2)
   Прокси.GetWeb2("test");
по причине:
Ошибка вызова операции сервиса:  {http://192.168.1.101:8080/service}:web2:GetWeb2()
по причине:
Неизвестная ошибка. Ошибка работы с Интернет:  Couldn't resolve host name
по причине:
Ошибка работы с Интернет:  Couldn't resolve host name

Что я только не делал, нифига. Товарищ шарящий в WEB технологиях в дот нете запросто накидал программку, которая легко обратилась к моему веб сервису и вызвала метод GetWeb2 После этого я вообще в затуп ушел. НО ПОЧЕМУ В 1С ТАКОЙ БАГ??? Как побороть? Помогите люди добрые!!! HELP!
1 quest
 
12.06.12
18:33
а товарищ к твоему сервису по имени или ip?
2 oleg_prg
 
12.06.12
18:36
Незнаю, я его спросил как ты делал, он сказал, что ему wizard построил класс для работы с моим сервисом. И все прекарсно работало
3 oleg_prg
 
12.06.12
18:36
Мы с ним говорим на разных языках, так что затрудняюсь ответить как он делал
4 quest
 
12.06.12
18:37
telnet 192.168.1.101 8080 - пробуй. смотри.
5 oleg_prg
 
12.06.12
18:41
cmd потом ввел telnet 192.168.1.101 8080
и ничего, черная консоль уже минту
6 oleg_prg
 
12.06.12
18:45
telnet 192.168.1.101:8080
Подключение к 192.168.1.101:8080...Не удалось открыть подключение к этому узлу,
на порт 23: Сбой подключения

C:\Documents and Settings\Администратор>
7 oleg_prg
 
12.06.12
18:58
Но в браузере я безпроблем обращаюсь к свойствам сервиса по ссылке http://192.168.1.101:8080/ws/web2?wsdl
8 oleg_prg
 
13.06.12
12:38
АУУУУ!!! ЛЮДИ!!! Ну что никто не знает?
9 эцп
 
13.06.12
12:42
(7) А прокси-сервер в браузере не прописан? А может в IE в свойствах подключения стоит галка автоконфигурации?
10 эцп
 
13.06.12
12:44
(5) а 192.168.1.101 пингуется?
11 oleg_prg
 
13.06.12
13:00
да пингуется
12 oleg_prg
 
13.06.12
13:03
В том то и дело, что другими средствами я могу обратиться к WEB сервису. Проблема в том, что из 1С не получается. Ссылка рабочая в браузере открывается http://192.168.1.101:8080/ws/web2?wsdl
13 Leksus
 
13.06.12
13:06
все таки адрес должен быть http://192.168.1.101:8080/service или http://192.168.1.101:8080/ws?
14 oleg_prg
 
13.06.12
13:07
Я уже поставил другое пространство имен, теперь вот так http://192.168.1.101:8080/ws/web2?wsdl
Экспериментирую
15 oleg_prg
 
13.06.12
13:09
Ток что поставил 1С на другой комп и попытался обратиться к моему сервису
Прокси = WSСсылки.WSСсылка1.СоздатьWSПрокси("http://192.168.1.101:8080/ws/web2","web2", "web2Soap");
Прокси.GetWeb2("test");
Таже ошибка
16 Leksus
 
13.06.12
13:09
а через ПолеHTMLДокумента открывается в 1С?
17 oleg_prg
 
13.06.12
13:13
Да

Вот резултат:

<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12bind="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://192.168.1.101:8080/ws/web2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsd1="http://v8.1c.ru/8.1/data-composition-system/appearance-template" xmlns:xsd2="http://192.168.1.101:8080/ws/web2" xmlns:xsd3="http://v8.1c.ru/8.1/data-composition-system/core" name="web2" targetNamespace="http://192.168.1.101:8080/ws/web2">
- <types>
- <xs:schema xmlns:tns="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://v8.1c.ru/8.1/data-composition-system/core" attributeFormDefault="unqualified" elementFormDefault="qualified">
- <xs:complexType name="Appearance">
- <xs:complexContent>
 <xs:extension base="tns:ParameterValues" />
 </xs:complexContent>
 </xs:complexType>
- <xs:complexType name="ChoiceParameter">
- <xs:sequence>
 <xs:element name="choiceParameter" type="xs:string" />
 <xs:element name="value" minOccurs="0" maxOccurs="unbounded" />
 </xs:sequence>
 </xs:complexType>
- <xs:complexType name="ChoiceParameterLink">
- <xs:sequence>
 <xs:element name="choiceParameter" type="xs:string" />
 <xs:element name="value" type="tns:Field" />
 <xs:element name="mode" minOccurs="0" />
 </xs:sequence>
 </xs:complexType>
- <xs:complexType name="ChoiceParameterLinks">
- <xs:sequence>
 <xs:element name="item" type="tns:ChoiceParameterLink" minOccurs="0" maxOccurs="unbounded" />
 </xs:sequence>
 </xs:complexType>
- <xs:complexType name="ChoiceParameters">
- <xs:sequence>
 <xs:element name="item" type="tns:ChoiceParameter" minOccurs="0" maxOccurs="unbounded" />
 </xs:sequence>
 </xs:complexType>
- <xs:simpleType name="DataCompositionFieldsTitleType">
- <xs:restriction base="xs:string">
 <xs:enumeration value="Auto" />
 <xs:enumeration value="Full" />
 <xs:enumeration value="Short" />
 </xs:restriction>
 </xs:simpleType>
- <xs:simpleType name="DataCompositionGroupType">
- <xs:restriction base="xs:string">
 <xs:enumeration value="Items" />
 <xs:enumeration value="Hierarchy" />
 <xs:enumeration value="HierarchyOnly" />
 </xs:restriction>
 </xs:simpleType>
- <xs:simpleType name="DataCompositionParameterUse">
- <xs:restriction base="xs:string">
 <xs:enumeration value="Always" />
 <xs:enumeration value="Auto" />
 </xs:restriction>
 </xs:simpleType>
- <xs:simpleType name="DataCompositionPeriodAdditionType">
- <xs:restriction base="xs:string">
 <xs:enumeration value="None" />
 <xs:enumeration value="Year" />
 <xs:enumeration value="HalfYear" />
 <xs:enumeration value="Quarter" />
 <xs:enumeration value="Month" />
 <xs:enumeration value="TenDays" />
 <xs:enumeration value="Week" />
 <xs:enumeration value="Day" />
 <xs:enumeration value="Hour" />
 <xs:enumeration value="Minute" />
 <xs:enumeration value="Second" />
 </xs:restriction>
 </xs:simpleType>
- <xs:simpleType name="DataCompositionSortDirection">
- <xs:restriction base="xs:string">
 <xs:enumeration value="Asc" />
 <xs:enumeration value="Desc" />
 </xs:restriction>
 </xs:simpleType>
- <xs:simpleType name="DataCompositionTextPlacementType">
- <xs:restriction base="xs:string">
 <xs:enumeration value="Block" />
 <xs:enumeration value="Cut" />
 <xs:enumeration value="Wrap" />
 <xs:enumeration value="Overflow" />
 </xs:restriction>
 </xs:simpleType>
- <xs:simpleType name="DataCompositionTotalPlacement">
- <xs:restriction base="xs:string">
 <xs:enumeration value="Begin" />
 <xs:enumeration value="End" />
 <xs:enumeration value="BeginAndEnd" />
 <xs:enumeration value="None" />
 <xs:enumeration value="Auto" />
 </xs:restriction>
 </xs:simpleType>
- <xs:simpleType name="DesignTimeValue">
 <xs:restriction base="xs:string" />
 </xs:simpleType>
- <xs:simpleType name="Field">
 <xs:restriction base="xs:string" />
 </xs:simpleType>
- <xs:simpleType name="ID">
 <xs:restriction base="xs:string" />
 </xs:simpleType>
- <xs:complexType name="InputParameters">
- <xs:complexContent>
 <xs:extension base="tns:ParameterValues" />
 </xs:complexContent>
 </xs:complexType>
- <xs:simpleType name="Parameter">
 <xs:restriction base="xs:string" />
 </xs:simpleType>
- <xs:complexType name="ParameterValue">
- <xs:sequence>
 <xs:element name="use" type="xs:boolean" minOccurs="0" />
 <xs:element name="parameter" type="tns:Parameter" />
 <xs:element name="value" nillable="true" minOccurs="0" maxOccurs="unbounded" />
 <xs:element name="item" type="tns:ParameterValue" minOccurs="0" maxOccurs="unbounded" />
 </xs:sequence>
 </xs:complexType>
- <xs:complexType name="ParameterValues" abstract="true">
- <xs:sequence>
 <xs:element name="item" type="tns:ParameterValue" minOccurs="0" maxOccurs="unbounded" />
 </xs:sequence>
 </xs:complexType>
- <xs:complexType name="TypeLink">
- <xs:sequence>
 <xs:element name="field" type="tns:Field" minOccurs="0" />
 <xs:element name="linkItem" type="xs:decimal" minOccurs="0" />
 </xs:sequence>
 </xs:complexType>
 </xs:schema>
- <xs:schema xmlns:ns1="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:tns="http://v8.1c.ru/8.1/data-composition-system/appearance-template" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://v8.1c.ru/8.1/data-composition-system/appearance-template" attributeFormDefault="unqualified" elementFormDefault="qualified">
 <xs:import namespace="http://v8.1c.ru/8.1/data-composition-system/core" />
 <xs:element name="appearanceTemplate" type="tns:AppearanceTemplate" />
- <xs:complexType name="AppearanceTemplate">
- <xs:complexContent>
 <xs:extension base="ns1:ParameterValues" />
 </xs:complexContent>
 </xs:complexType>
- <xs:complexType name="AppearanceTemplateAppearance">
- <xs:complexContent>
 <xs:extension base="ns1:ParameterValues" />
 </xs:complexContent>
 </xs:complexType>
- <xs:complexType name="AppearanceTemplateArea">
- <xs:sequence>
 <xs:element name="item" type="tns:AppearanceTemplateAreaItem" minOccurs="0" maxOccurs="unbounded" />
 </xs:sequence>
 </xs:complexType>
- <xs:complexType name="AppearanceTemplateAreaItem">
- <xs:sequence>
 <xs:element name="level" type="xs:integer" minOccurs="0" />
 <xs:element name="appearance" type="tns:AppearanceTemplateAppearance" />
 </xs:sequence>
 </xs:complexType>
 </xs:schema>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xs1="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:xs2="http://v8.1c.ru/8.1/data-composition-system/appearance-template" xmlns:xs3="http://192.168.1.101:8080/ws/web2" targetNamespace="http://192.168.1.101:8080/ws/web2" elementFormDefault="qualified">
 <xs:import namespace="http://v8.1c.ru/8.1/data-composition-system/core" />
 <xs:import namespace="http://v8.1c.ru/8.1/data-composition-system/appearance-template" />
- <xs:element name="GetWeb2">
- <xs:complexType>
- <xs:sequence>
 <xs:element name="P1" type="xs:string" nillable="true" />
 </xs:sequence>
 </xs:complexType>
 </xs:element>
- <xs:element name="GetWeb2Response">
- <xs:complexType>
- <xs:sequence>
 <xs:element name="return" type="xs:string" nillable="true" />
 <xs:element name="P1" type="xs:string" nillable="true" />
 </xs:sequence>
 </xs:complexType>
 </xs:element>
 </xs:schema>
 </types>
- <message name="GetWeb2RequestMessage">
 <part name="parameters" element="tns:GetWeb2" />
 </message>
- <message name="GetWeb2ResponseMessage">
 <part name="parameters" element="tns:GetWeb2Response" />
 </message>
- <portType name="web2PortType">
- <operation name="GetWeb2">
 <input message="tns:GetWeb2RequestMessage" />
 <output message="tns:GetWeb2ResponseMessage" />
 </operation>
 </portType>
- <binding name="web2SoapBinding" type="tns:web2PortType">
 <soapbind:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="GetWeb2">
 <soapbind:operation style="document" soapAction="http://192.168.1.101:8080/ws/web2#web2:GetWeb2" />
- <input>
 <soapbind:body use="literal" />
 </input>
- <output>
 <soapbind:body use="literal" />
 </output>
 </operation>
 </binding>
- <binding name="web2Soap12Binding" type="tns:web2PortType">
 <soap12bind:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="GetWeb2">
 <soap12bind:operation style="document" soapAction="http://192.168.1.101:8080/ws/web2#web2:GetWeb2" />
- <input>
 <soap12bind:body use="literal" />
 </input>
- <output>
 <soap12bind:body use="literal" />
 </output>
 </operation>
 </binding>
- <service name="web2">
- <port name="web2Soap" binding="tns:web2SoapBinding">
- <documentation>
 <wsi:Claim xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/" conformsTo="http://ws-i.org/profiles/basic/1.1" />
 </documentation>
 <soapbind:address location="/ws/web2" />
 </port>
- <port name="web2Soap12" binding="tns:web2Soap12Binding">
 <soap12bind:address location="/ws/web2" />
 </port>
 </service>
 </definitions>4
18 oleg_prg
 
13.06.12
13:14
Я же говорю, мистика )))
19 oleg_prg
 
13.06.12
13:15
http://178.126.15.233:8080/ws/web2?wsdl

Вот мой внешний IP можете убедиться
20 quest
 
13.06.12
15:32
а вот так "http://192.168.1.101:8080/ws/web2#web2:GetWeb2" можно определять для 1С разве? мне кажется что тут собака порылась
21 acsent
 
13.06.12
15:35
так в 1с и вводи как
http://178.126.15.233:8080/ws/web2?wsdl
22 oleg_prg
 
13.06.12
16:29
(21) Это внешний IP он не виден внутри моей сети, так настроено, внутри моей сети доступно http://192.168.1.101:8080/ws/web2?wsdl
23 sikuda
 
13.06.12
17:54
У 1С в web-service не все так просто попробуй http://192.168.1.101:8080/service/ws пространство имен с описанием совместить...