-
1. Re: Integrating appls using web service based communication
tfennelly Mar 24, 2009 6:01 AM (in response to bhargasr)That is certainly one approach and while, in theory, it may involve a little more configuration/code than other approaches (e.g. writing a template to transform/generate the SOAP payload), I would think it is easier to get working and to maintain afterwards. The "zero code" approaches are often cleaner in theory, but because there is "zero code", they usually involve a bit of black art re getting them to work.
Another approach might be to use one of the SOAPClient actions. -
2. Re: Integrating appls using web service based communication
bhargasr Mar 24, 2009 6:22 AM (in response to bhargasr)Thanks, Tom.
However, I am unable to get the HTTPRouter approach working completely due to ERROR:java.net.ConnectException: Connection refused: connect
Am using SoapUI to invoke the WS. If I point the url to the actual target service, it works just fine.
http://<Server1>:8080/TargetApp/services/<Service1>
But if try to call the proxy service with the url as
http://<Server2>:8765//, it gives the connection refused error.
Both Server1 and Server2 can ping each other.
App server is running with -b 0.0.0.0 option.
Is something wrong or missing here? -
3. Re: Integrating appls using web service based communication
bhargasr Mar 24, 2009 6:24 AM (in response to bhargasr)Actually, the second url is
http://<Server2>:8765//
and 8765 is the port the HTTP gateway is listening on. -
4. Re: Integrating appls using web service based communication
bhargasr Mar 24, 2009 6:31 AM (in response to bhargasr)For some reason, the URL is truncating. It's
http://<Server2>:8765/ProjectName/ProxyServiceName -
5. Re: Integrating appls using web service based communication
rmolin Mar 24, 2009 8:32 AM (in response to bhargasr)That could be because you are missing a final slash in the URL. See http://www.jboss.org/community/docs/DOC-13197
/Rune -
6. Re: Integrating appls using web service based communication
bhargasr Mar 25, 2009 1:12 AM (in response to bhargasr)Gotit! The url has to be http://<Server2>:8765/TargetApp/services/<Service1>
-
7. Re: Integrating appls using web service based communication
bhargasr Mar 25, 2009 10:48 AM (in response to bhargasr)But then are we really de-linking App A & B if we have to mention the target service name and not the proxy name when invoking from App A ?
-
8. Re: Integrating appls using web service based communication
bhargasr Apr 3, 2009 1:32 AM (in response to bhargasr)As I continue to explore, hv a couple of questions"
1. In case of a Proxy Service on the bus using HTTPRouter, can the service act as proxy for more than one target webservices? How can it be achieved?
2. Can content based routing be used in above case which requires the action pipeline of 'RequestResponse' type?
If the message is routed to 2 destinations, response of which destination will be returned back to the caller?
Regards.