1 Reply Latest reply on Jun 18, 2008 1:00 PM by Ehsan Zanjani

    Failed to invoke SOAP Endpoint

    Ehsan Zanjani Newbie

      hi
      I'm new to JBOSS ESB and I work on SOAPClient. I wanna to use SoapClient with authentication. my jboss-esb.xml code is here :

      <action name="AAASoap" class="org.jboss.soa.esb.actions.soap.SOAPClient">
       <property name="wsdl"
      value="http://85.15.1.45/sha-ws/services/shav1?wsdl">
       <http-client-property name="file" value="/META-INF/AAAIp.properties" />
       </property>
       <property name="SOAPAction"
       value="http://services.sha.ir/sha/getUser"/>
       <property name="responseAsOgnlMap" value="true" />
       </action>

      and my prop file is :

      configurators=AuthNTLM
      # AuthNTLM config...
       ntauth-username=test
       ntauth-password=test
       ntauthscope-host=85.15.1.45
       ntauthscope-port=80
       ntauthscope-domain=sha-ws


      and I got this exception :

      I/O exception (java.net.ConnectException) caught when processing request: Connection refused
      10:47:28,707 INFO [HttpMethodDirector] Retrying request
      10:47:28,711 INFO [HttpMethodDirector] I/O exception (java.net.ConnectException) caught when processing request: Connection refused
      10:47:28,711 INFO [HttpMethodDirector] Retrying request
      10:47:28,714 INFO [HttpMethodDirector] I/O exception (java.net.ConnectException) caught when processing request: Connection refused
      10:47:28,715 INFO [HttpMethodDirector] Retrying request
      .....
      .....
      
      org.jboss.soa.esb.actions.ActionProcessingException: Failed to invoke SOAP Endpoint: 'http://85.15.1.45/sha-ws/services/shav1 ' - 'http://services.sha.ir/sha/getUser'.
       at org.jboss.soa.esb.actions.soap.SOAPClient.invokeEndpoint(SOAPClient.java:443)
       at org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:395)
       at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
       at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.net.ConnectException: Connection refused
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
       at java.net.Socket.connect(Socket.java:519)
       at java.net.Socket.connect(Socket.java:469)
       at java.net.Socket.<init>(Socket.java:366)
       at java.net.Socket.<init>(Socket.java:240)
       at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(Unknown Source)
       at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(Unknown Source)
       at org.apache.commons.httpclient.HttpConnection.open(Unknown Source)
       at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(Unknown Source)
       at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source)
       at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source)
       at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
       at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
       at org.jboss.soa.esb.actions.soap.SOAPClient.invokeEndpoint(SOAPClient.java:435)
       ... 6 more
      

      any help.?