Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / Проблема с подключением к EAS по iiops / 1 сообщений из 1, страница 1 из 1
07.11.2008, 15:09
    #35640289
kalginap
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Проблема с подключением к EAS по iiops
14.12.2005 на форуме был размещен вопрос:

"Всем доброго времени суток..
Все - выдохся, прошу помощи.
Клиентское приложение на PB пытается установить SSL соединение с EAS по IIOPS, EAS client runtimes библиотеки установлены посредством инсталляции самого EAS на компе с PB, EAS5.0 и билдер PB9.0.2 - все запускаю под win2000SP4 professional

Проблема с самого начала в том, что клиентский комп
возвращает -10 (An EAServer or SSL failure has occurred) при попытке выполнить любое действие из SetGlobalProperty или GetGlobalProperty

Код собсно выглядит так:

int rc
String ls_val, ls_array[]
SSLServiceProvider sp
GetContextService( "SSLServiceProvider", sp )

//rc всегда равно -10 в этом коде
rc = sp.SetGlobalProperty("..",ls_val)
rc = sp.GetGlobalProperty("..",ls_array )

//дальнейший коннект EAS не принмает
If of_GetConnectionInfo ( ls_server, ls_port, ls_logid, ls_password, ls_appl ) = 1 Then

this.Application = ls_appl
this.Driver = "jaguar"
this.UserID = lower(ls_logid)
this.Password = ls_password
this.Location = "iiops://" + ls_server + ":9001"
this.options = "ORBqop='sybpks_intl'" +&
"ORBLogIIOP='TRUE', ORBLogFile='c:\ORBLog.txt', ORBpin = 'mypin'"

ll_res = icon_myconnect.ConnectToServer() - все тут отлуп


End If

Несекьюрное соединение iiop на 9000 порт проходит на ура.

Напрягает еще крайняя строчка из мануала:
Client installation requirements
EAServer provides several sets of client runtime files. Because SSL support in PowerBuilder clients is provided through the C++ client ORB, you should install the SSL and C++ runtime files on the computer on which PowerBuilder SSL clients will run. The installation includes the client side security database, SSL support libraries, and the client-side Security Manager. You also need to configure the client installation to load the client libraries when you run your application.
- Каким образом можно сконфигурить клиента дополнительно? Или имеется ввиду рантайм на pbd? Что-то совсем запутался, просветите, плз..

ORBlog выглядит примерно так
ORB_init option = 'LogIIOP' value = 'TRUE'
ORB_init option = 'pin' value = '********'
ORB_init option = 'qop' value = 'sybpks_intl'
-------------------------------------------------------------------------------
IIOP putMessage Hexadecimal [padding] (interpretation) ISO 8859-1 encoding
--------------- - ---------------------------------------- --------------------
putOctet < 47 (71) G
putOctet < 49 (73) I
putOctet < 4F (79) O
putOctet < 50 (80) P
putOctet < 01 (1) .
putOctet < 01 (1) .
putBoolean < 01 (TRUE) .
putOctet < 00 (0) .
putULong < 00000000 (0) ....
putMessage | GIOP version = 1.1
| flags = 1 ('<' little endian)
| message type = 0 (Request)
putRequest | service context length:
putServiceContextList | service context length:
putULong < 00000000 (0) ....
putRequest | request id:
putULong < 00000000 (0) ....
putRequest | response expected:
putBoolean < 01 (TRUE) .
putRequest | reserved:
putOctet < 00 (0) .
putOctet < 00 (0) .
putOctet < 00 (0) .
putRequest | object key:
putULong < 02000000 (2) ....
putOctets < 4D00 M.
putRequest | operation:
putULong < 00000E000000 [2] (14) ......
putString < 63726561746553657373696F6E00 createSession.
putRequest | requesting principal:
putULong < 000000000000 [2] (0) ......
putRequest | request body:
putULong < 08000000 (8) ....
putString < 6E61666967696E00 nafigin.
putULong < 04000000 (4) ....
putString < 6D6D6D00 mmm.
endMessage | message size = 64 (after 12 byte header)
192.168.130.143:SSL:9001 - Connection refused"

У меня та же проблема. Может кто-нибудь подскажет решение? Как называются и где на клиенте должны размещаться runtime файлы необходимые для поддержки SSL?
...
Рейтинг: 0 / 0
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / Проблема с подключением к EAS по iiops / 1 сообщений из 1, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]