Chapter 31. Integrating and automating the process 765
Figure 31-5 Create binding in the WSDL file
11.Add a service and a port to the WSDL. Set the protocol to JMS and set the
JNDI names to the names that we created before.
Figure 31-6 Create a port in the WSDL
766 WebSphere Business Integration Adapters
Figure 31-7 shows the completed WSDL for the WBICSend service.
Figure 31-7 Completed WSDL for the WebSphere Business Integration Connect service
12.Right-click the WSDL file and select Enterprise Services Generate
Deploy Code.
13.Generate deploy code with EJB as the inbound protocol.
Chapter 31. Integrating and automating the process 767
Figure 31-8 Generate deploy code for the WBICSend service
14.Locate the new EJB and open the EJB deployment descriptor editor. Select
the tab references and correct the resource environment reference and the
resource reference. The WebSphere JNDI names are:
jms/partner_a.bcg.queue.manager
–jms/XML_OUT
15.Save and close the EJB deployment descriptor editor.
16.Add the project to the server.
17.Restart the server.
18.Use the universal test client to verify the WBICSend service.
Note: Make sure that the WebSphere Business Integration Connect servers
are not running at this time.
768 WebSphere Business Integration Adapters
19.Provide input to the send method, as shown in Figure 31-9.
Figure 31-9 Using the Test Client to test the WBICSend service
Chapter 31. Integrating and automating the process 769
20.Because WebSphere Business Integration Connect is not running, you
should be able to browse the message on the queue using rfhutil. Review
the contents of the message (Figure 31-10).
Figure 31-10 Message on the XML_OUT queue for WebSphere BI Connect
21.Start the WebSphere Business Integration Connect servers and also the
WebSphere Business Integration Connect Express server.
22.Verify that the document is sent correctly and arrives at the RedContractor
company. You can verify for example the contents of the folder Received of
WebSphere Business Integration Connect Express. Or you can also use the
viewers, such as the AS2 Viewer to validate the transmission.

Get WebSphere Business Integration Adapters: An Adapter Development and WebSphere Business Integration Solution now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.