Hycel,

Two ways to interpose tcpmon between your client & server:

1. Specify *different* ports in the <wsdl:port><soap:address> location
attribute and the URI string passed to Endpoint.publish(). Then set the
tcpmon listen port to the one specified in the WSDL, and the target port
to the one specified in the server application code.

2. Over-ride the endpoint address used by the client by setting the
BindingProvider.ENDPOINT_ADDRESS_PROPERTY on the request context
(assuming a JAX-WS client). Then set the tcpmon listen port to the one
over-ridden in the client, and the target port to the one specified in
the WSDL and server application code.

/Eoghan

> -----Original Message-----
> From: Hycel Taylor [mailto:[EMAIL PROTECTED] 
> Sent: 09 October 2007 22:27
> To: [email protected]
> Subject: Using TCPMon with CXF
> 
> Hello,
> 
> Using the simple server example, I would like to monitor web 
> service request and responses using  tcpmon.  The tcpmon 
> application  needs to know three things in order add a listener:
> 
>    - target hostname: 127.0.0.1
>    - target Port #: 9000
>    - Listen Port#: ?
> 
> How may I determine what port number cxf is using in its 
> default configuration?
> 
> protected Server() throws Exception {
>     // START SNIPPET: publish
>     System.out.println("Starting Server");
> 
>     HelloWorldImpl implementor = new HelloWorldImpl();
>     String address = "http://localhost:9000/helloWorld";;
>     Endpoint.publish(address, implementor);
>     // END SNIPPET: publish
>   }
> 
> Thanks,
> Hycel
> 

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to