fix(web): correct VRD service element format for 1C 8.3

ws uses pointEnableCommon (not publishByDefault), OData is attribute
enableStandardOdata on <point> (not child element). Verified against
live BP-demo: WSDL returns 200, SOAP call succeeds.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-02-22 18:46:35 +03:00
parent 028c5292d7
commit fe8fa4bc3f
3 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ if ($pubMatches.Count -eq 0) {
if (Test-Path $vrdPath) {
if ($vrdContent -match '<ws\s') { $svcTags += "WS" }
if ($vrdContent -match '<httpServices\s') { $svcTags += "HTTP" }
if ($vrdContent -match '<standardOdata\s') { $svcTags += "OData" }
if ($vrdContent -match 'enableStandardOdata\s*=\s*"true"') { $svcTags += "OData" }
}
$svcLabel = if ($svcTags.Count -gt 0) { " [" + ($svcTags -join " ") + "]" } else { "" }
@@ -229,10 +229,10 @@ $vrdContent = @"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
base="/$AppName"
ib="$ibString">
<ws publishByDefault="true"/>
ib="$ibString"
enableStandardOdata="true">
<ws pointEnableCommon="true"/>
<httpServices publishByDefault="true"/>
<standardOdata enable="true"/>
</point>
"@
+9 -6
View File
@@ -14,7 +14,10 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
base="/appname"
ib="connection-string">
ib="connection-string"
enableStandardOdata="true">
<ws pointEnableCommon="true"/>
<httpServices publishByDefault="true"/>
</point>
```
@@ -45,18 +48,18 @@ File=&quot;C:\Bases\MyDB&quot;;Usr=&quot;Admin&quot;;Pwd=&quot;123&quot;;
### Дочерние элементы
#### `enableStandardOdata` (атрибут `<point>`)
Стандартный OData-интерфейс платформы. `enableStandardOdata="true"` открывает REST-доступ ко всем объектам.
URL: `/{AppName}/odata/standard.odata`
#### `<ws>`
Публикация SOAP web-сервисов. `publishByDefault="true"` публикует все сервисы из конфигурации.
Публикация SOAP web-сервисов. `pointEnableCommon="true"` публикует все сервисы из конфигурации.
URL: `/{AppName}/ws/{WebServiceName}?wsdl`
#### `<httpServices>`
Публикация HTTP-сервисов. `publishByDefault="true"` публикует все сервисы из конфигурации.
URL: `/{AppName}/hs/{RootUrl}/...`
#### `<standardOdata>`
Стандартный OData-интерфейс платформы. `enable="true"` открывает REST-доступ ко всем объектам.
URL: `/{AppName}/odata/standard.odata`
### Расположение
`{ApachePath}/publish/{AppName}/default.vrd`