The code to activate WSMonitor just involves switching the endpoint URL to 4040:
BindingProvider bp = (BindingProvider) port; bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:4040/doubleit/services/doubleit"); But WSMonitor is returning this error when I make a client request: [Fatal Error] :-1:-1: Premature end of file. org.xml.sax.SAXParseException: Premature end of file. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98) at com.sun.tools.ws.wsmonitor.PrettyPrinter.convertToXML(PrettyPrinter.java:56) This error occurs only if I have WSMonitor as an intermediary, and CXF logs of the SOAP request and responses are showing full SOAP messages, so I'm not sure of the problem here. Anyway, I switched to Apache TCPMon instead, and that's working fine on the same 4040 port, so I'm OK anyway. Thanks, Glen On Sun, 2008-07-13 at 09:11 -0400, Glen Mazza wrote: > Good point. I'm doing more debugging right now... > > On Sun, 2008-07-13 at 07:55 -0400, Benson Margulies wrote: > > I think the remark about UTF-8 is a red herring. What code actually did the > > throw? > > > > (I'm about to leave on vacation, so I can't track this down). > > > > On Sat, Jul 12, 2008 at 9:11 PM, Glen Mazza <[EMAIL PROTECTED]> wrote: > > > > > Hello, I'm trying to use WSMonitor[1] with CXF 2.1, but whenever I > > > incorporate it into my SOAP client I get this error: > > > > > > Jul 12, 2008 8:21:37 PM org.apache.cxf.phase.PhaseInterceptorChain > > > doIntercept > > > > > > INFO: Interceptor has thrown exception, unwinding now > > > org.apache.cxf.interceptor.Fault: Could not create XMLStreamReader > > > (input was of encoding UTF-8). > > > > > > > > > org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:83) > > > > > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221) > > > > > > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78) > > > > > > org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:92) > > > > > > org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:214) > > > > > > Sure enough, the SOAP message as shown in WS-Monitor is UTF-8, but I'm > > > not sure why that's a problem. Anyone has a clue as to what the issue > > > might be? > > > > > > Thanks, > > > Glen > > > > > > [1] https://wsmonitor.dev.java.net/use/index.html > > > > > > >
