integration:wfrunwebservice
Розбіжності
Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
| Наступна ревізія | Попередня ревізія | ||
| integration:wfrunwebservice [2018/09/27 09:46] – создано wiki_admin | integration:wfrunwebservice [2022/05/23 15:26] (поточний) – зовнішнє редагування 127.0.0.1 | ||
|---|---|---|---|
| Рядок 1: | Рядок 1: | ||
| + | ====== WorkFlow для запуска WebService====== | ||
| + | ===== Импорт WSDL ===== | ||
| + | Для начала понадобиться произвести [[integration: | ||
| + | ===== Разработка WorkFlow ===== | ||
| + | После проделанного нужно создать новый WorkFlow в моем варианте название 'AL Get Refinance Propositions WF' и пример на картинке\\ | ||
| + | {{: | ||
| + | ==== Proccess Properties ==== | ||
| + | ^Name^In/ | ||
| + | | RequestProp | In | Integration Object | Объект (структура) который в процессе выполнения WF мы будем наполнять данными для дальнейшего вызова Web Service| | ||
| + | | ResponseProp | Out | Integration Object | Объект | ||
| + | | pApplicationType| In | String | Дополнительные переменные которые можно передать на вход в WF для использования | | ||
| + | ==== Create Request ==== | ||
| + | Первый и самый главный пункт.\\ | ||
| + | В результате его выполнения мы получаем пустую но правильную структуру необходимую для вызова WebService\\ | ||
| + | Добавляем в WF новый элемент ' | ||
| + | |||
| + | ^Property Name ^ Proprty Value^ | ||
| + | | Business Service Name | [[bs: | ||
| + | | Business Service Method| CreateEmptyPropSet | | ||
| + | | Name | Create Request | | ||
| + | |||
| + | === Input Arguments=== | ||
| + | ^ Sequence ^ Input Argument ^ Type ^ Value ^ | ||
| + | | 0 | Hierarchy Name | Literal | getRefinancePropositions((Сюда мы указываем название интеграционного объекта который был создан в процессе [[integration: | ||
| + | === Output Arguments=== | ||
| + | ^Property Name^ Sequence^Type^Outout Argument^ | ||
| + | | RequestProp | 1 | Output Argument | SiebelMessage | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== Set Application Type ==== | ||
| + | Следующий пункт это добавление значений в структуру для дальнейшего вызова\\ | ||
| + | Добавляем в WF новый элемент ' | ||
| + | |||
| + | ^Property Name ^ Proprty Value^ | ||
| + | | Business Service Name | [[bs: | ||
| + | | Business Service Method| SetProperty| | ||
| + | | Name | Set Application Type | | ||
| + | |||
| + | === Input Arguments=== | ||
| + | ^ Sequence ^ Input Argument ^ Type ^ Value ^ Property Name ^ | ||
| + | | 0 | Hierarchy Path: | Literal | getRefinancePropositions | | | ||
| + | | 1 | SiebelMessage | Process Property| | ||
| + | | 2 | Property Name | Literal | applicationType | | | ||
| + | | 3 | Property Value | Process Property | | pApplicationType | | ||
| + | |||
| + | === Output Arguments=== | ||
| + | ^Property Name^ Sequence^Type^Outout Argument^ | ||
| + | | RequestProp | 1 | Output Argument | SiebelMessage | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== External Call WevService ==== | ||
| + | Следующий пункт это вызов сервиса \\ | ||
| + | Добавляем в WF новый элемент ' | ||
| + | |||
| + | ^Property Name ^ Proprty Value^ | ||
| + | | Business Service Name | getRefinancePropositions | | ||
| + | | Business Service Method| VerificationPTPortType | | ||
| + | | Name | Externall Call WebService | | ||
| + | |||
| + | === Input Arguments=== | ||
| + | ^ Sequence ^ Input Argument ^ Type ^ Value ^ Property Name ^ | ||
| + | | 0 | getRefinancePropositionsRequest: | ||
| + | |||
| + | === Output Arguments=== | ||
| + | ^Property Name^ Sequence^Type^Outout Argument^ | ||
| + | | ResponseProp | 1 | Output Argument | getRefinancePropositionsResponse: | ||
| + | |||
| + | |||
| + | ===== Вызов ===== | ||
| + | |||
| + | <code javascript> | ||
| + | var ws = TheApplication().GetService(" | ||
| + | var wsInput = TheApplication().NewPropertySet(); | ||
| + | var wsOutput = TheApplication().NewPropertySet(); | ||
| + | |||
| + | wsInput.SetProperty(" | ||
| + | wsInput.SetProperty(" | ||
| + | |||
| + | try { | ||
| + | ws.InvokeMethod(" | ||
| + | |||
| + | pOutputs.SetProperty(" | ||
| + | pOutputs.SetProperty(" | ||
| + | |||
| + | } catch (e) { | ||
| + | TheApplication().RaiseErrorText(" | ||
| + | } | ||
| + | </ | ||
