You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by James Chiu <jc...@responsys.com> on 2005/04/27 01:06:32 UTC

TCP Monitor

Hi,

 

I like to use tcpmon to see outgoing messages and incoming messages of my
java WS client. The server side is hosted by Microsoft IIS.

I am not sure the exact arguments (listenPort targetHost targetPort) in this
case. 

What is the listen port?

I assume the targetHost is the machine of the server side.

I think the targetPort is 80 by default in IIS.

 

Thanks for your help,

 

James


Re: TCP Monitor

Posted by Jeff <je...@cogentlogic.com>.
BTW, I had assumed that you had a valid web service URL. The IIS server might be running independently of Tomcat/Axis and the web service may not even be hosted by Tomcat/Axis. You need to consult the web service documentation. IIS could be redirecting to Tomcat/Axis or some other web service hosting software and may or may not be doing that via port 80. If IIS is not redirecting then you need to connect directly to the listening port of the web service. In the case of Tomcat/Axis the default port is 8080, of course. Anyone setting up a web service on a port other than port 80 needs to ensure that if external clients are expected to connect from outside a firewall then the firewall is configured to permit access through that port.


Jeff


  ----- Original Message ----- 
  From: Jeff 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, April 26, 2005 11:43 PM
  Subject: Re: TCP Monitor


  James,

  TCPMonitor listens for connections at the specified port on the machine on which it is running. This port is any free port you know of or guess at, e.g. 9999 is unlikely to be in use. The client-side software must be configured to use the TCPMonitor by replacing the target host name and port (which could just be the default port 80). Here's what to do, assuming that TCPMonitor will be running on the same computer as the client software (if it isn't then change 127.0.0.1 that appears below for the host name or IP address of the machine running TCPMonitor):

      - Pick a port number for TCPMonitor to listen on, let's suppose it's 9999.

      - Make a note of the target host name (or IP address) plus the port number of the target web service.
          E.g. for  http://services.xmethods.net/soap/servlet/rpcrouter  the host name is services.xmethods.net and the port number is 80.
          E.g. for  http://10.0.0.12:8080/axis/services/ScsServiceSoap  the IP address is 10.0.0.12 and the port number is 8080.

      - Now change the target web service URL in the client-side code to point to TCPMonitor.
          E.g.  http://services.xmethods.net/soap/servlet/rpcrouter  becomes  http://127.0.0.1:9999/soap/servlet/rpcrouter
          E.g.  http://10.0.0.12:8080/axis/services/ScsServiceSoap  becomes  http://127.0.0.1:9999/axis/services/ScsServiceSoap

      - Recompile the client-side code.

      - Start TCPMonitor and enter the Listen Port # as 9999. Enter the appropriate Target Hostname and the Target Port # as noted in the second step
          E.g. for  http://services.xmethods.net/soap/servlet/rpcrouter  Target Hostname is  services.xmethods.net  and the Target Port # is  80
          E.g. for  http://10.0.0.12:8080/axis/services/ScsServiceSoap  Target Hostname is  10.0.0.12  and the Target Port # is  8080

      - After entering the correct data, start TCPMonitor listening by clicking the Add button.

      - Run the client software and watch TCPMonitor for activity.


  Jeff


    ----- Original Message ----- 
    From: James Chiu 
    To: axis-user@ws.apache.org 
    Sent: Tuesday, April 26, 2005 7:06 PM
    Subject: TCP Monitor


    Hi,

     

    I like to use tcpmon to see outgoing messages and incoming messages of my java WS client. The server side is hosted by Microsoft IIS.

    I am not sure the exact arguments (listenPort targetHost targetPort) in this case. 

    What is the listen port?

    I assume the targetHost is the machine of the server side.

    I think the targetPort is 80 by default in IIS.

     

    Thanks for your help,

     

    James

Re: TCP Monitor

Posted by Jeff <je...@cogentlogic.com>.
James,

TCPMonitor listens for connections at the specified port on the machine on which it is running. This port is any free port you know of or guess at, e.g. 9999 is unlikely to be in use. The client-side software must be configured to use the TCPMonitor by replacing the target host name and port (which could just be the default port 80). Here's what to do, assuming that TCPMonitor will be running on the same computer as the client software (if it isn't then change 127.0.0.1 that appears below for the host name or IP address of the machine running TCPMonitor):

    - Pick a port number for TCPMonitor to listen on, let's suppose it's 9999.

    - Make a note of the target host name (or IP address) plus the port number of the target web service.
        E.g. for  http://services.xmethods.net/soap/servlet/rpcrouter  the host name is services.xmethods.net and the port number is 80.
        E.g. for  http://10.0.0.12:8080/axis/services/ScsServiceSoap  the IP address is 10.0.0.12 and the port number is 8080.

    - Now change the target web service URL in the client-side code to point to TCPMonitor.
        E.g.  http://services.xmethods.net/soap/servlet/rpcrouter  becomes  http://127.0.0.1:9999/soap/servlet/rpcrouter
        E.g.  http://10.0.0.12:8080/axis/services/ScsServiceSoap  becomes  http://127.0.0.1:9999/axis/services/ScsServiceSoap

    - Recompile the client-side code.

    - Start TCPMonitor and enter the Listen Port # as 9999. Enter the appropriate Target Hostname and the Target Port # as noted in the second step
        E.g. for  http://services.xmethods.net/soap/servlet/rpcrouter  Target Hostname is  services.xmethods.net  and the Target Port # is  80
        E.g. for  http://10.0.0.12:8080/axis/services/ScsServiceSoap  Target Hostname is  10.0.0.12  and the Target Port # is  8080

    - After entering the correct data, start TCPMonitor listening by clicking the Add button.

    - Run the client software and watch TCPMonitor for activity.


Jeff


  ----- Original Message ----- 
  From: James Chiu 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, April 26, 2005 7:06 PM
  Subject: TCP Monitor


  Hi,

   

  I like to use tcpmon to see outgoing messages and incoming messages of my java WS client. The server side is hosted by Microsoft IIS.

  I am not sure the exact arguments (listenPort targetHost targetPort) in this case. 

  What is the listen port?

  I assume the targetHost is the machine of the server side.

  I think the targetPort is 80 by default in IIS.

   

  Thanks for your help,

   

  James