Author |
Message
|
kaushik.godugunur |
Posted: Wed Feb 27, 2013 5:23 am Post subject: Unable to hit a broker flow hosted as service through SOAPUI |
|
|
Newbie
Joined: 27 Feb 2013 Posts: 9
|
Hi,
Ive been given the job to identify the reason for a "CPI converter input data invalid" error through by a flow created by someone else. What i have in hand is a project which handles the calls and responses of a services which has 120 operations and one of them is failing. I have the code available but i do not have the barfile with me. From the code, im to debug and understand what is wrong with my message flow.
So, from the code, I see that the first input node is a SOAPInput node and from there depending on my operation the message is passed around to multiple Queues. I have created one barfile for the entire project and deployed it in my local machine. Now im trying to hit the service locally with SOAPUI and using an endpoint while the URL property in the SOAPInput node is also the same. But Im unable to hit the service and i get an error saying connection refused in the SOAPUI error log. Please help.
Thanks in advance
Cheers
Kaushik |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 27, 2013 6:24 am Post subject: Re: Unable to hit a broker flow hosted as service through SO |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kaushik.godugunur wrote: |
But Im unable to hit the service and i get an error saying connection refused in the SOAPUI error log. Please help. |
The reason for getting a connection refused hitting a WMB hosted web service is the same as getting it from one hosted by WAS:
- wrong port
- wrong SSL
- firewall
- etc
- etc
Diagnose as you would for any such problem using a web service and don't let the fact it's a WMB flow muddy the waters. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kaushik.godugunur |
Posted: Wed Feb 27, 2013 6:38 am Post subject: |
|
|
Newbie
Joined: 27 Feb 2013 Posts: 9
|
I have to admit that im very new to Webservices here. We got the port from CMP API Excerciser. But since it is a Locally hosted service do i still have to take care of SSL and firewall? and if yes, i might need help in knowing how to.
Thank you. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Feb 27, 2013 6:39 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
kaushik.godugunur wrote: |
I have to admit that im very new to Webservices here. We got the port from CMP API Excerciser. But since it is a Locally hosted service do i still have to take care of SSL and firewall? and if yes, i might need help in knowing how to.
Thank you. |
These topics are covered in the required training class. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 27, 2013 6:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kaushik.godugunur wrote: |
I have to admit that im very new to Webservices here. |
That's unlikely to make testing a web service an easy experience. Does whoever assigned you the task know this?
kaushik.godugunur wrote: |
We got the port from CMP API Excerciser. |
Did you not think that's more likely to be the port the CMP is using rather than any port a web service might be on?
kaushik.godugunur wrote: |
But since it is a Locally hosted service do i still have to take care of SSL and firewall? |
Is the locally hosted service still using either HTTP (when you'd need to consider any firewalls running) or HTTPS (when you'd need to consider firewalls and the SSL that forms the S in HTTPS)? If not, how are you using SoapUI to test it?
kaushik.godugunur wrote: |
and if yes, i might need help in knowing how to. |
You think?
They write big thick books on web services and all the associated wonders. That scale of help is way beyond what we can provide here. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Feb 27, 2013 7:33 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Vitor wrote: |
That's unlikely to make testing a web service an easy experience. Does whoever assigned you the task know this?
|
Sadly from my recent experience the PHB's don't care. They are only charging their client something like $45.00 per day so what do they care.
I've had a battle to convince some PHB's from the Indian Subcontinent that one properly experience developer is worth at least 10 of their java coding monkeys.
One PM even proudly said that when they take over the maintennace of the project they will spend the first six months converting all the ESQL to Java. Then they expect to be able to deploy the new code without any testing whatsoever. There won't be any testing because the contract does not include it.
Sigh, bangs head against brick wall.
Truly a dilbert moment. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 27, 2013 9:40 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smdavies99 wrote: |
Vitor wrote: |
That's unlikely to make testing a web service an easy experience. Does whoever assigned you the task know this?
|
Sadly from my recent experience the PHB's don't care. |
I expect this to be the case and no criticism of the OP was intended. My comment was to ensure that the PHB in question has allocated a task to a person with as much probability of success as I'd have finding the problem in an EJB.
They are only charging their client something like $45.00 per day so what do they care.
smdavies99 wrote: |
One PM even proudly said that when they take over the maintennace of the project they will spend the first six months converting all the ESQL to Java. Then they expect to be able to deploy the new code without any testing whatsoever. There won't be any testing because the contract does not include it. |
Interesting. I had an oddly similar experience a few months back, where a Java application being migrated into WMB came back as a series of untested JCNs containing 85% migrated code strung together & was told something similar. I pointed out the contract might not say testing, but it did say "accepted as being in conformance with site coding standards and onboarding practice".
Given the standards clearly state
Quote: |
The JCN can only be used in a flow where it has been demonstrated via a prototype(s) that all other relevant technologies are unfit for purpose, these results have been accepted by the Engineering Team and a Java Use Exception has been signed off |
and also list the stage gate tests all onboarded code must pass, he sort of found himself out of luck.
But it's amazing that attitube pervades. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 27, 2013 9:52 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The soap input node is going to be addressed using a url that includes the host name of the machine running the broker.
It is going to also be addressed using the port number of the associated soap listener to the execution group under that broker that has the message flow deployed to it.
There is a section in the Information Center on Connecting Client Applications, that includes discussion of web service clients. |
|
Back to top |
|
 |
kaushik.godugunur |
Posted: Fri Mar 01, 2013 2:35 am Post subject: |
|
|
Newbie
Joined: 27 Feb 2013 Posts: 9
|
Thank you Vitor, mqjeff, lancelotlinc and smdavies99!!
Im now able to hit the service. I got the port number wrong and now its resolved.
As far as whether my supervisor knows, he did, the concerned person, a good friend of mine, had to leave on a family emergency and i volunteered to take over the task and there were time constraints involved.
Cheers
Kaushik |
|
Back to top |
|
 |
|