jQuery in Action, 3rd edition
The moose likes Spring and the fly likes Cannot call Spring WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Cannot call Spring WS" Watch "Cannot call Spring WS" New topic

Cannot call Spring WS

M Mehta
Ranch Hand

Joined: Aug 03, 2006
Posts: 92

I am new to Spring WS and created my first ws with it. But I am not able to call the web service or generate wsdl. Probablu the problem is I dont know the URL to use to call the web service. Everytime O call it, I get

org.springframework.ws.client.WebServiceIOException: I/O error: Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect

My Web.xml has following entries




and spring-ws-servlet.xml has entries as

<bean id="endPointMapping"
<property name="mappings">
<prop key="{http://localhost:80}getTradeByGenericID">

<bean id="getTradeByGenericID"
<property name="marshaller" ref="casterMarshaller" />

<bean id="casterMarshaller"

<bean id="spring-ws"
<constructor-arg value="/spring-ws.wsdl"></constructor-arg>

Can you please help me to find what is wrong I am doing.

I have called it using the URL : http://localhost:80/spring-ws
The application is deployed on Websphare.

Thanks a lot,
Lakshman lax

Joined: Oct 16, 2013
Posts: 1
The service you're trying to connect to is not running at the specified address.
I agree. Here's the link: http://aspose.com/file-tools
subject: Cannot call Spring WS
It's not a secret anymore!