File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes org.springframework.ws.client.WebServiceTransportException: No Host matches server name localhost [4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "org.springframework.ws.client.WebServiceTransportException: No Host matches server name localhost [4" Watch "org.springframework.ws.client.WebServiceTransportException: No Host matches server name localhost [4" New topic
Author

org.springframework.ws.client.WebServiceTransportException: No Host matches server name localhost [4

lahari la
Greenhorn

Joined: Dec 08, 2009
Posts: 1
HI All

I am trying to run Spring Web Services Echo example comming with dowload

but i am getting the following error.

Exception in thread "main" org.springframework.ws.client.WebServiceTransportException: No Host matches server name localhost [400]
at org.springframework.ws.client.core.WebServiceTemplate.handleError(WebServiceTemplate.java:627)
at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:551)
at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:502)
at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:457)
at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:403)
at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:394)
at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:384)
at org.springframework.ws.samples.echo.client.sws.EchoClient.echo(EchoClient.java:40)
at org.springframework.ws.samples.echo.client.sws.EchoClient.main(EchoClient.java:48)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

What are you hosting your Web Service on. Is it set to localhost or 127.0.0.1?

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.springframework.ws.client.WebServiceTransportException: No Host matches server name localhost [4