Hi! Thanks a lot for your replies. You were right! The endpoint URL was not correct. My endpoint URL didnt contain the URL of the war file. The hint to access the WSDL first was very helpful.
The client tried to connect to: http://localhost:8080/springremote/statescapitalservice The name of the war file is "springremote", but actually my endpoint URL was http://localhost:8080/statescapitalservice and the WSDL could be retrieved under http://localhost:8080/statescapitalservice?WSDL. Thank you very much. Now I can start to play a bit more with Apache CXF :) Greets, xetrix Glen Mazza wrote: > > It looks like there's something wrong with the endpoint URL your SOAP > client is using to access the web service provider--namely, it's returning > an HTML page instead of a SOAP response. Take a look at here[1] to see > the actual URL the web service provider uses (it's very frequently > different from what you put in the WSDL) as well as using the > ENDPOINT_ADDRESS_PROPERTY[2] for runtime SOAP client changes to the > endpoint URL. > > Before making the SOAP call, I'd copy your endpoint URL into the browser, > append the ?wsdl to it, and make sure you can see the WSDL. If you can, > you're ready to make the SOAP call with that URL (without the ?wsdl > suffix). > > HTH, > Glen > > [1] http://www.jroller.com/gmazza/entry/web_service_tutorial#notes (Note > #2) > [2] http://www.jroller.com/gmazza/entry/soap_client_tutorial (Step #6) > > > 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/statescapitalservice<br/>WSDL >> : >> http://localhost:8080/springremote/statescapitalservice/statescapitalservice?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(StaxInInterceptor.java:77) >> at >> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243) >> at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:672) >> ... >> >> Hope you can help me! >> >> Greets, >> xetrix >> >> >> > > -- View this message in context: http://old.nabble.com/Interceptor-...-has-thrown-exception%2C-unwinding-now%3A-org.apache.cxf.interceptor.Fault%3A-Response-was-of-unexpected-text-html-ContentType-tp28287979p28325210.html Sent from the cxf-user mailing list archive at Nabble.com.
