Author |
Message
|
brokerDev |
Posted: Mon Aug 07, 2006 2:32 am Post subject: Dummy webservice |
|
|
Acolyte
Joined: 21 Jun 2006 Posts: 53
|
Would be grateful if anyone could suggest how to set up a dummy webservice on my desktop so that I can interact and call webservices from a message flow.
I use WBIMB v5.
Thanks |
|
Back to top |
|
 |
mqmatt |
Posted: Mon Aug 07, 2006 2:49 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
You could set up another broker with an HTTPInput -> ... -> HTTPReply node, and connect to that as your dummy webservice.
Chapter 21 of the V5 Broker Migration redbook included a sample of how to do this. See http://www.redbooks.ibm.com/abstracts/sg246995.html
-Matt |
|
Back to top |
|
 |
brokerDev |
Posted: Mon Aug 07, 2006 2:57 am Post subject: |
|
|
Acolyte
Joined: 21 Jun 2006 Posts: 53
|
Many thanks for that Matt. It looks like that might be what I need.
Cheers |
|
Back to top |
|
 |
brokerDev |
Posted: Mon Aug 07, 2006 6:34 am Post subject: |
|
|
Acolyte
Joined: 21 Jun 2006 Posts: 53
|
Hi,
I have followed the example given in the redbook. I'm experiencing an issue though: I'm getting a timeout. I am running toolkit on my desktop but using another server as the host. I did replace the hostname in the properties window of the HTTP nodes with the hostname of the server.
Is there anything you can suggest to help?
Thanks |
|
Back to top |
|
 |
mqmatt |
Posted: Mon Aug 07, 2006 7:09 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
Are you connecting using the correct port number on the broker?
Use mqsichangebroker -P to set the port on which you want the broker to listen, and be sure to reference that port in the URL when connecting to the web service.
Using netstat you should be able to verify that the broker is indeed listening on the port you specify.
Also be sure to set the URL selector correctly (e.g. "/wshost"). |
|
Back to top |
|
 |
brokerDev |
Posted: Mon Aug 07, 2006 7:55 am Post subject: |
|
|
Acolyte
Joined: 21 Jun 2006 Posts: 53
|
After I deploy the bars, syslog shows that the listener port is 1234. However, when I do a 'netstat', I can see no mention of that port number.
I'm now therefore not quite sure which port number I should be using.
Also, not quite sure what you mean by "set the URL selector correctly (e.g. "/wshost")."
Cheers |
|
Back to top |
|
 |
MSAT |
Posted: Tue Aug 08, 2006 10:40 pm Post subject: |
|
|
Acolyte
Joined: 17 Aug 2005 Posts: 62 Location: Bengalooru
|
Hi
If u r broker is running on the Windows server/machine then once u deploy the bar file on to broker u will get a message in the System Event Viewer--Application indicating the HTTP listener started or not. And also u can check in the Windows task manager to get to know whether the HTTP listener is running or not.
And if the port number u r using is already been used by some other application then you will get a warning/error message in the System event viewer.
Bye |
|
Back to top |
|
 |
|