Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: spring-integration-1.0.0.M4 WS Sample

  1. #1
    Join Date
    Jun 2008
    Location
    Bangalore
    Posts
    18

    Default spring-integration-1.0.0.M4 WS Sample

    Hi ,

    I was trying to run WS Sample in the M4 milestone.
    However when I run the sample I got the following Exception (Please see the following stack trace)
    How do I correct it?
    WARNING: failure occurred in messaging task
    org.springframework.ws.client.WebServiceIOExceptio n: IO error: Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:471)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:420)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:366)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:357)
    at org.springframework.integration.ws.adapter.SimpleW ebServiceTargetAdapter.doHandle(SimpleWebServiceTa rgetAdapter.java:62)
    at org.springframework.integration.ws.adapter.Abstrac tWebServiceTargetAdapter.handle(AbstractWebService TargetAdapter.java:72)
    at org.springframework.integration.endpoint.HandlerEn dpoint$HandlerInvokingTarget.send(HandlerEndpoint. java:158)
    at org.springframework.integration.endpoint.TargetEnd point.send(TargetEndpoint.java:183)
    at org.springframework.integration.dispatcher.SimpleD ispatcher.dispatch(SimpleDispatcher.java:99)
    at org.springframework.integration.dispatcher.Default PollingDispatcher.dispatch(DefaultPollingDispatche r.java:65)
    at org.springframework.integration.dispatcher.Polling DispatcherTask.run(PollingDispatcherTask.java:56)
    at org.springframework.integration.scheduling.SimpleM essagingTaskScheduler$MessagingTaskRunner.run(Simp leMessagingTaskScheduler.java:138)
    at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:417)
    at java.util.concurrent.FutureTask$Sync.innerRunAndRe set(FutureTask.java:280)
    at java.util.concurrent.FutureTask.runAndReset(Future Task.java:135)

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Do you by any chance have a web proxy?

    Could you try the manual 'test' from the same environment?: http://www.w3schools.com/webservices...nheitToCelsius

  3. #3
    Join Date
    Jun 2008
    Location
    Bangalore
    Posts
    18

    Default spring-integration-1.0.0.M4 WS Sample

    Hi Mark,

    I created a small .NET WS on my PC and modified the sample to access it,
    This worked.
    However the Sample itself doesnt work, should I do some setting for configuring the WS client in the sample?

    I can manually access the service of w3schools from IE.



    Thanks
    Bharath

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    I see... what does your modified version of WebServiceDemo's main method look like now?

    -Mark

  5. #5
    Join Date
    Jun 2008
    Location
    Bangalore
    Posts
    18

    Default spring-integration-1.0.0.M4 WS Sample

    Hi Mark,

    Please see the contents of the attachments, (java and xml file).

    Thanks
    Bharath.
    Attached Files Attached Files

  6. #6
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Can you also post the WSDL for your service?

  7. #7
    Join Date
    Jun 2008
    Location
    Bangalore
    Posts
    18

    Default spring-integration-1.0.0.M4 WS Sample

    Here is the wsdl attachment
    Attached Files Attached Files

  8. #8
    Join Date
    Oct 2007
    Location
    Toronto, ON
    Posts
    90

    Default

    Bharath,

    Do you have a firewall on your machine? The fact that the JVM process cannot connect to that address, but Internet Explorer is able to, can be explained by that. Also, that would explain why you can connect to a local service (so connecting to your sample works), but you can't connect remotely.

    Marius
    Marius Bogoevici,
    Spring Integration Committer

  9. #9
    Join Date
    Jun 2008
    Location
    Bangalore
    Posts
    18

    Default spring-integration-1.0.0.M4 WS Sample

    Hi Marius,

    I couldnt get this sample to work from my Work PC, however this worked on my Home PC.

    As Mark doubted earlier, and after your post,
    I set the http.proxyHost and http.proxyPort Java System Variables to appropriate values on my Work PC.

    This solved the problem and I could get the sample to work.

    Thank you very much for your help.

    Regards
    Bharath

  10. #10
    Join Date
    Sep 2008
    Location
    Mannheim,Germany
    Posts
    125

    Red face

    Hi, I have a similar problem and I would like to know how u set the Java System variables. Would appreciate ur help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •