Matt Harrison
Luciano Oliveira
Solution Consultant,
Progress OpenEdge
Foco da Sessão
Implementando OpenEdge Web Services
2 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Agenda
Integrando via Web com OpenEdge Web Services
3 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Web Services
• Padrões que definem para plataformas como
construir, distribuir e fazer interoperabilidade
entre aplicações
• OpenEdge Web Services utiliza padrões W3C
• Simple Object Access Protocol (SOAP)
• Web Service Definition Language (WSDL)
• XML
4 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Padrão: SOAP
Simple Object Access Protocol
5 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Standards: WSDL
Web Services Description Language
Específica Interface
• Enlaçamento entre as operações
– SOAP over HTTP
• Métodos de negócios podem ser chamados
(“operations”)
• Estrutura de mensagem para cada método
– Data fields, types
Identifica na rede o endereço Web service
Consumidor e Fornecedor
7 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
8 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Web Services
Heterogêneo
Distribuído
Interoperabilidade
SOAP
WSDL
Consumidores
Fornecedores
Pense nisso!!!
9 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Agenda
Integrate via Web com OpenEdge Web Services
10 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
11 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
12 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Consumidor HTTP
Fornecedor
Web service Client Web service
1 Requisição WSDL
SOAP WSDL 2
Processor
Client ABL 3 Chamada Serviço
Application
Resposta Serviço 4
Code
13 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
proenv>bprowsdldoc
http://localhost:8080/wsa/wsa1/wsdl?targetURI=u
rn:wsProvider:Emp myOutput
Documentation written to
File:///C:\OpenEdge\WRK\myOutput\index.html
14 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Informações de Conexão
Como criar uma Port type (Procedure
Persistente)
Listar todas Operações (Procedures Internas)
Como chamar cada Operação
• Síntaxe de Procedure e Função
Formato do tipo de dado
Port type é modelado como uma procedure persistente (embora não seja
persistente)
16 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
17 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Agenda
Integrando via Web com OpenEdge Web Services
18 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Sua Aplicação
• Quebrado em serviços
Application Server
• Códigos hospedados expostos como serviços
• Fornecer acesso ao Banco de Dados
ProxyGen
• Gerar os arquivos intermediários usados para o
deployment (incluindo o mapeamento wsdl)
Progress Explorer ou wsaman
• Manage Web service (deployment)
19 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
WSA Servlet
• Interface entre o Web Service Consumidor e o
OpenEdge AppServer™
Produtos de Terceiros
• Java Servlet Engine (JSE)
– Fornece o ambiente para execura o WSA servlet
• Web Server
– Fornece suporte HTTP
– Hosts JSE
20 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
3
2
ProxyGen WSM Progress Explorer
Arquivo ou
intermediário
para fazer o wsaman
Deploy do Web
21 INT-5: Integrate over the Web with OpenEdge® WebService
Services © 2007 Progress Software Corporation
8 7 HTTP Web
Web service
Listener/ Server
Consumidor 1 2 Sender
Java Servlet Engine
WSA Servlet
WSAD
3 6
SOAP Processor
OpenEdge
4 5
AppServer
ABL Business
Logic
22 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
23 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Envelope
fault code fault actor
Body
fault string
Body Entry
<fault detail>
24 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
SOAP Faults
RUN operationName IN hPortType (INPUT value1, OUTPUT value2) NO-ERROR.
25 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
C:\Progress\OpenEdge\bin\prowin32.exe
-proxyhost localhost -proxyport 4444
26 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Em Resumo
Implementando OpenEdge Web Services
27 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Documentação:
• 10.1B Web Services (Manual)
• ProxyGen mudanças do Web Services na
OpenEdge 10.1A
28 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
29 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Questões?
30 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
Pela Atenção,
Obrigado!!!
31 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation
32 INT-5: Integrate over the Web with OpenEdge® Web Services © 2007 Progress Software Corporation