I THINK the address for the client is probably wrong. It looks like the address is set to something like: http://localhost:8080/springremote/statescapitalservice when it should be http://localhost:8080/springremote/statescapitalservice/statescapitalservice
Let me know if that works. Dan On Wednesday 21 April 2010 5:21:43 am xetrix wrote: > Hi guys, > > I have some problems using Web Services with Apache CXF with Spring > integration. I couldnt find a solution for this problem, so I decided to > post a message here. > > My reference for integration Apache CXF with spring was this tutorial: > http://cxf.apache.org/docs/writing-a-service-with-spring.html. I use Apache > CXF 2.2.7 and I deployed my application on a Tomcat Server 5.5.28. > > When accessing the method of my proxy I receive the following error: > WARNING: Interceptor for > {http://client.meinremotepckg/}StateCapitalServiceIFService#{http://client. > meinremotepckg/}getCapital has thrown exception, unwinding now > org.apache.cxf.interceptor.Fault: Response was of unexpected text/html > ContentType. Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC > "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css" > rel="stylesheet" > href="/springremote/statescapitalservice/?stylesheet=1"><meta > http-equiv=content-type content="text/html; charset=UTF-8"><title>CXF - > Service list</title></head><body>Available SOAP services:<br/><table > cellpadding="1" cellspacing="1" border="1" > width="100%"><tr><td>StateCapitalServiceIF<ul><li>getCapital</li></ul></td> > <td>Endpoint address: > http://localhost:8080/springremote/statescapitalservice/statescapitalservic > e<br/>WSDL > > http://localhost:8080/springremote/statescapitalservice/statescapitalservic > e?wsdl {http://server.meinremotepckg/}StateCapitalServiceService > <br/>Target namespace: > http://server.meinremotepckg/</td></tr></table><br/><br/></body></html> > at > org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInIntercepto > r.java:77) at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai > n.java:243) at > org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:672) ... > > Hope you can help me! > > Greets, > xetrix -- Daniel Kulp [email protected] http://dankulp.com/blog
