mardi 27 octobre 2009

Installer les exemples OSB10GR3



Les exemples sont disponibles suite à votre installation CUSTOM (voir image ci-dessus) de OSB dans:

BEA_HOME\osb_10.3\samples\servicebus\examples\build\webservices


il suffit d'aller sur la console weblogic:

sur la partie droite sélectionner "déployment"

cliquer sur install et naviguer vers

BEA_HOME\osb_10.3\samples\servicebus\examples\build\webservices


où BEA_HOME correspond à votre répertoire d'installation.






Il vous reste plus qu'à suivre ensuite les tutoriaux:
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/tutorial/tutRoute.html






Plus de détail sur:
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/tutorial/tutGettingStarted.html

Autre possibilité sans se fatiguer à faire les Tutoriaux, c'est de démarrer le domaine exemple OSB et de démarrer la webapp examples et de faire LOAD Examples

dimanche 25 octobre 2009

OSB 10GR3 gestion des rôles dans la console sbconsole

La gestion des rôles pour la console SBconsole de OSB 10GR3 se trouve sur ce lien:

http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/security/admin_security.html#wp1078757
Cela vous permet d'ouvrir la console OSB à plusieurs types d'utilisateurs ;)

jeudi 22 octobre 2009

OSB 10GR3 SFTP transport

Ce petit mémo explique comment mettre en oeuvre le transport SFTP dans OSB. Le SFTP peut être utilisé sur un Proxy service ou dans un Business Service.

Pour configurer le SFTP transport il suffit de spécifier l'url du type:
sftp://mon-ip:monport/../../monRépertoire par exemple.

La difficulté est dans la récupération de la clé public du serveur sftp et le passage de celle-ci du bus OSB vers le serveur SFTP distant.

Contactez votre administrateur sftp pour la récupérer ou rechercher sur le serveur un fichier
Exemple:
/etc/ssh/ssh_host_rsa_key.pub

Editer ce fichier et copier la clé public.

Ensuite, il faut créer un fichier nommé: known_hosts

qui doit être présent dans votre domaine OSB exemple:
D:\productORACLE\OSB10gR3\user_projects\domains\base_domain\osb\transports\sftp
(il faut créer les répertoires s'ils n'existent pas)

Ensuite dans ce fichier il faut positionner dans celui-ci sur une ligne:
nomduserveursftp,ip_du_serveur_sftp ssh-rsa maclépublic

voici un exemple (sur 1 ligne):
soatraining-vm,192.168.149.129 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvliylb5Id2z1jZ3e0uUpm5432SUTMb8Fx2OB5YZLy+VSMpo//T+hERF0WfPyhkrVFXIBHBhVDH3utJmDRfa0hKHOq6WIpFtAC4RDzeaPdS4xM5Rtfw+aARylsGLYr+eCrRIt0X36w607UbUDAWVEEYoTKD/vs5VEdSpk8TBUUVZT4Hmghh8IEkrZU57L3p2qOhquWoTUeRh4dOpkZREJ//sGI7J96vICFgJAAgUVSJ05JACidpkS/c5JrHc1/r3v23HKy+VbspWmZP6iylwjBPEsmuWKqH5GHmSa25yEzb00lkyvVV3YdbkZcuko9ZPlTFYsSk8jLI93aVyO3CLj7Q==

Vous redémarrez votre serveur OSB et il vous reste plus qu'à définir un Business Service ou Proxy service en relation avec votre SFTP serveur.

Je vous propose un exemple de projet OSB avec du SFTP sur ce lien ICI

lundi 19 octobre 2009

Trés bon livre sur Soa Suite 11G



Le livre SOA suite 11g est trés bien fait et provient de la formation interne Oracle sur la 11g Soa ...

Vous pouvez l'acheter sur ce lien:

lundi 12 octobre 2009

Toujours plus haut toujours plus fort

Le bench trés connu : SPECjAppServer2004 (http://spec.org/)

atteint le nirvana pour Oracle !!

7 x plus rapide que IBM

tous les détails sur ce lien:

http://finance.yahoo.com/news/OracleR-Fusion-Middleware-iw-283375399.html?x=0&.v=1


bonne lecture

samedi 3 octobre 2009

Ajout de namespace dans OSB afin de lire un XML sans namespaces - CDATA

Si comme moi vous devez lire le résultat d'un web service ayant du CDATA dans la réponse, il faudra employer certaines étapes dans OSB 10GR3.
Voici la réponse du WS:

La trame XML à analyser est après le CDATA.
Vous pouvez utilisez cet xml en entrée de mon exemple proposé plus bas dans l'article.
Pour extraire cette partie, rien de plus simple dans OSB avec l'action Assign et la fonction Xquery:



Ensuite pour interpréter les balises de ce résultat en utilisant Xpath il faudra y associer un NameSpaces aux xml.
Pour cela créer un XSD correspondant au type de réponse et effectuer l'étape Rename comme suit:



Ensuite, vous pouvez lire en xpath toutes les données comme le schéma:

$test2/exam:schema


Pour télécharger le projet OSB 10GR3 c'est ICI

Xpath manipulation

Afin de bien maniupuler XPATH dans la Soa Suite je vous engage à bien connaitre ces quelques astuces:


Selecting Nodes
XPath uses path expressions to select nodes in an XML document. The node is selected by following a path or steps. The most useful path expressions are listed below:
Expression
Description
nodename
Selects all child nodes of the named node
/
Selects from the root node
//
Selects nodes in the document from the current node that match the selection no matter where they are
.
Selects the current node
..
Selects the parent of the current node
@
Selects attributes
In the table below we have listed some path expressions and the result of the expressions:
Path Expression
Result
bookstore
Selects all the child nodes of the bookstore element
/bookstore
Selects the root element bookstore
Note: If the path starts with a slash ( / ) it always represents an absolute path to an element!
bookstore/book
Selects all book elements that are children of bookstore
//book
Selects all book elements no matter where they are in the document
bookstore//book
Selects all book elements that are descendant of the bookstore element, no matter where they are under the bookstore element
//@lang
Selects all attributes that are named lang
Predicates
Predicates are used to find a specific node or a node that contains a specific value.
Predicates are always embedded in square brackets.
In the table below we have listed some path expressions with predicates and the result of the expressions:
Path Expression
Result
/bookstore/book[1]
Selects the first book element that is the child of the bookstore element.
Note: IE5 and later has implemented that [0] should be the first node, but according to the W3C standard it should have been [1]!!
/bookstore/book[last()]
Selects the last book element that is the child of the bookstore element
/bookstore/book[last()-1]
Selects the last but one book element that is the child of the bookstore element
/bookstore/book[position()<3]
Selects the first two book elements that are children of the bookstore element
//title[@lang]
Selects all the title elements that have an attribute named lang
//title[@lang='eng']
Selects all the title elements that have an attribute named lang with a value of 'eng'
/bookstore/book[price>35.00]
Selects all the book elements of the bookstore element that have a price element with a value greater than 35.00
/bookstore/book[price>35.00]/title
Selects all the title elements of the book elements of the bookstore element that have a price element with a value greater than 35.00
Selecting Unknown Nodes
XPath wildcards can be used to select unknown XML elements.
Wildcard
Description
*
Matches any element node
@*
Matches any attribute node
node()
Matches any node of any kind
In the table below we have listed some path expressions and the result of the expressions:
Path Expression
Result
/bookstore/*
Selects all the child nodes of the bookstore element
//*
Selects all elements in the document
//title[@*]
Selects all title elements which have any attribute
Selecting Several Paths
By using the operator in an XPath expression you can select several paths.
In the table below we have listed some path expressions and the result of the expressions:
Path Expression
Result
//book/title //book/price
Selects all the title AND price elements of all book elements
//title //price
Selects all the title AND price elements in the document
/bookstore/book/title //price
Selects all the title elements of the book element of the bookstore element AND all the price elements in the document