Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Consume Java web services through MQ/Message Broker

Posted on 2008-06-18
11
5,935 Views
Last Modified: 2013-11-15
I am creating a web services in java and deployed in tomact 5.5 server. I used AXIS2 to develop that. How can a IBM client using message broker/mq series consume the java web services.

Can you please provide me the complete installation step that includes IBM mQ series  to consume that. I am not aware about MQ/Message broker.
0
Comment
Question by:cakurien
  • 6
  • 3
  • 2
11 Comments
 
LVL 10
ID: 21819485
Please find the following link as it may solve your problem
http://www.ibm.com/developerworks/webservices/library/ws-soa-msgbroker/
0
 

Author Comment

by:cakurien
ID: 21819687
Thanks a lot for this link.
I am looking for a complete set up for this and the client and server setup( Web service is developed  in Java1.5/AXIS2 and deployed in Tomcat 5.5).
In windows OS, for the POC purpose, what shall I installed to simulate that.
1.  From Main Main Frame how can I invoke/onsume the web service using Message Broker.
2. How to simulate the broker in windows machine, Is any technique for this?
0
 

Author Comment

by:cakurien
ID: 21819717
Actually the requirement was

1.  Develop a web service in Java1.5/ AXIS2 and deploy in tomcat/websphere.
2.  Consume the web service through a IBM main frame system using Message Broker

One doubut is that is any Message Broker tool that we can install in windows XP that can simulate the Message Broker. And from this can we consume the webservice that is developed in java.

Thanks again.

0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 10
ID: 21819721
Sorry for that u need to wait for any other expert to answer.
0
 
LVL 5

Expert Comment

by:lgacs
ID: 21820428
Message broker flows can call webservices using either the built-in HTTPrequest node or using the IBM's
IA9O support pack you get support to manage webservice requests and SOAP envelope.
You can download the IA9O from this page:
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24014070&loc=en_US&cs=utf-8&lang=en

Anyway the best practice is to start defining the WSDL file of the webservice and generate both the server interface for server side and message definition for broker side.
0
 

Author Comment

by:cakurien
ID: 21820610
Thanks again.

But how can I put the message definions for Broker Side in the WSDL. Can you please provide me a sample WSDL for that.

So in  windows XP, what all s/w need to install for doing the message broker. In the site they are saying to install the following
1.  WebSphere Message Broker v6.0
2.  ia9o.zip

whether this is enough to test my application.

Can you please provide some example applications in the client side to pass the request and get the response in the mentioned environment.

Because first time I am doing any thing in Message Brokering with MQ :(
0
 
LVL 5

Expert Comment

by:lgacs
ID: 21820900
WebSphere Message Broker v6.0 has some prerequisits which normally included in installation package.
They are WebSpere MQ v6, DB2, Eclipse 3.0

A sample WSDL attached here. It refers an XSD schema file which should describe your XML data.
Any XML editor tool can help you to edit them.
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"  xmlns:tns="http://yourapp.company.com/YourApp" xmlns="http://www.w3.org/2001/XMLSchema" name="YourApp" targetNamespace="http://yourapp.company.com/YourApp">
	<wsdl:types>
		<schema targetNamespace="http://account.company.com/YourApp" elementFormDefault="qualified">
		<import namespace="http://yourapp.types.company.com/YourApp" schemaLocation="yourapp.xsd"/>
		</schema>
</wsdl:types>
	<wsdl:message name="YourAppRequest">
		<wsdl:part name="parameter" type="xs:string"/>
	</wsdl:message>
	<wsdl:message name="YourAppResponse">
		<wsdl:part name="parameter" type="xs:string"/>
	</wsdl:message>
	<wsdl:message name="YourFault">
		<wsdl:part name="Fault" type="common:Fault"/>
	</wsdl:message>
	<wsdl:portType name="YourAppPortType">
		<wsdl:operation name="YourOperation">
			<wsdl:input message="tns:YourAppRequest"/>
			<wsdl:output message="tns:YourAppResponse"/>
			<wsdl:fault name="Fault" message="tns:YourFault"/>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="YourAppBinding" type="tns:YourAppPortType">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<wsdl:operation name="YourOperation">
			<soap:operation soapAction="YourOperation"/>
			<wsdl:input name="YourAppRequest">
				<soap:body use="literal"/>
			</wsdl:input>
			<wsdl:output name="YourAppResponse">
				<soap:body use="literal"/>
			</wsdl:output>
			<wsdl:fault name="Fault"/>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="YourApp_SOAP_HTTP_Service">
		<wsdl:port name="SOAP_HTTP_Port" binding="tns:YourAppBinding">
			<soap:address location="http://your.host.com:80/services/YourApp"/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

Open in new window

0
 

Author Comment

by:cakurien
ID: 21821085
Thanks for the steps. This WSDL is same as the normal WSDL. This is ok for me. (I thought that I have to write seperate message definitions for the broker side other than our normal messages :))

One more help, from message broker side what is the mechanism to invoke the web service method, Any examples/tutorials for that???
0
 
LVL 5

Accepted Solution

by:
lgacs earned 500 total points
ID: 21821237
You will get some documentation with the support pack.
There is a very useful IBM redbook "Patterns: SOA Design Using WebSphere Message Broker and WebSphere ESB" (SG24-7369-00)
See especially Chapter 6.
0
 

Author Closing Comment

by:cakurien
ID: 31468664
Thanks
0
 

Author Comment

by:cakurien
ID: 21821428
Thanks a lot sir. I'll get back to you for further doubts :)
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question