26.08.2010

Getting Started with IBM Websphere Integration Developer – Designing Hello World Process – Invoking WebServices

1. Do all the steps in Getting Started with IBM Websphere Integration Developer – Designing Hello World Process post
2. Create a Dynamic Web Project
DynamicWebProject
3. Write the properties of the Dynamic Web Project relying in the picture below
DynamicWebProjectProp
3. Create a class named Hello
Class
4. Copy and paste the code below

package com.samples.hello;



 



public class Hello {



    



    public String sayHello(String name)



    {



        System.out.println("Hello.sayHello invoked ");



        System.out.printf("Hello.sayHello ( %s ) ",name);



        return "Hello  " + name;



        



    }



 



}




5. Create a web service from the Hello Class

WebService


6.  Click next for a few times. After that the web application will be deployed automatically by the help of WID.


7. In the HelloWorld module project. Click Interfaces, and then click import


InterfaceImport


8. Select wsdl and XSD for import type


importType


9.Because the HelloWorldService is deployed on your local machine or remote server you can select remote wsdl location


wsdlLocation


10. Write wsdl remote path


wsdlPath


11.Select Hello  service interface. Drag and drop to procecc design template


HelloServiceProcess


12. In the reference partners you have to see Hello

HelloReferencePartner

13. Select Invoke component. Drag and Drop to HelloProcess design tab.


InvokeComponent


13. Rename to HelloServiceInvoker


14. Click Details tab of HelloServiceInvoker, apply the same properties to your InvokeHelloService properties


InvokeComponentDetails


15.Open assembly diagram. Drag and drop Hello interface to assembly diagram. Choose import with WebService Binding

HelloServiceInvokerAssemblyDiagram


16.In the Web Service Import Details click Use an existing web service port and choose your hello web service.


HelloWebServiceImportType


17. Refresh your project and then link the process with the Hello Web Service


HelloServiceInvokeAssemblyDiagram 
18. Test your Process with BPC.

Hiç yorum yok: