Thursday, May 22, 2014

IBM Forms Experience Builder: How to add custom service integration


     สำหรับ IBM Forms Experience Builder 8.5 ได้ถูกออกมาให้เป็นติดต่อกับระบบอื่นๆผ่านทาง Web Service เป็นหลักทั้งแบบ RESTFul และ SOAP วันนี้ผมจึงอยากเอาวิธีการเชื่อมต่อกับระบบอื่นๆผ่าน SOAP มาแนะนำกันครับ

     เริ่มต้นท่านอาจลองสร้าง Web Service ของท่านเองขึ้นมาโดยใช้ Eclipse IDE for Java EE Developers + Tomcat


จากนั้นเราจะได้ Tool ที่ติดมากับ FEB 8.5 ในการ generate Service Description ดังนี้
1. download icu4j-51_2.jar (http://apps.icu-project.org/icu-jsp/downloadPage.jsp?ver=51.2&base=j&svn=release-51-2)
2. copy icu4j-51_2.jar ไปไว้ที่ C:\IBM\FormsExperienceBuilder\tools
3. เปิด terminal หรือ command windows ไปที่ path  C:\IBM\FormsExperienceBuilder\tools
4. ใช้ commamnd ต่อไปนี้ในการ generate Service Description

C:\IBM\FormsExperienceBuilder\tools>java -Xbootclasspath/a:icu4j-51_2.jar -jar ServiceDescriptionGenerator.jar -wsdlFile=c:\temp-service\FebService.wsdl





ผลจากการรันคำสั่งนี้จะได้ file Service Description สร้างขึ้นใน C:\IBM\FormsExperienceBuilder\tools


5. copy file Service Description ไปไว้ยังตำแหน่ง C:\IBM\Forms\ServiceCatalog\1 ถ้าไม่มีให้สร้างขึ้นครับ โดย ServiceCatalog จะอยู่ใน level เดียวกับ folder extension
และเราสามารถสร้าง folder ย่อยๆของเราเองได้ภายใน path C:\IBM\Forms\ServiceCatalog\1


6. stop/start Forms Experience Builder application ใน WebSphere Application Server


 7. ทดลองเรียกใช้ service ดูครับจะพบว่ามี Service เพิ่มเข้าใน Service Integation wizard ของ FEB





ref: http://www-10.lotus.com/ldd/lfwiki.nsf/xpDocViewer.xsp?lookupName=Forms+Experience+Builder+8.5+documentation#action=openDocument&res_title=Using_the_service_description_tool_for_WSDL_web_service_FEB_850&content=pdcontent


No comments: