Hi,

My comment inline
On 2010-8-18, at 下午5:59, sunny wrote:


Hi,

yes,the logical part(wsdl schema/message/operation/binding) in wsdls used
for consumer and provider is identical.
just service name,port name and soap address are different.
external application's web service base on Xfire.any conflict with cxf?

It should be ok, could you post the wsdl and soap message you send to cxf bc consumer and standalone external service?
And if i create web service client code base on wsdl of consumer,I got
Exception as follow in servicemix console:
I'm not sure I understand what you do here, could you explain more?
Freeman

WARN  - JettyHTTPDestination           - writeResponse failed:
org.apache.cxf.transport.http.WSDLQueryException: Exception occurred while
trying to process
http://localhost:8194/ADInterface/services/ModelADService?wsdl
       at
org .apache .cxf .transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java: 215)
       at
org .apache .cxf .transport .http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java: 236)
       at
org .apache .cxf .transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java: 70)
       at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 766)
       at
org .mortbay .jetty .handler .ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49)
       at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152)
       at org.mortbay.jetty.Server.handle(Server.java:324)
       at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 534)
       at
org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:864)
       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
       at
org .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409)
       at
org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:522)
Caused by: com.ctc.wstx.exc.WstxIOException: null
       at
com .ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java: 520) at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:627)
       at
org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:610)
       at
org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:507)
at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:624)
       at
org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:610)
       at
org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:507)
at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:624)
       at
org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:610)
       at
org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:507)
at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:624)
       at
org.apache.cxf.staxutils.StaxUtils.writeDocument(StaxUtils.java:485)
       at
org.apache.cxf.staxutils.StaxUtils.writeDocument(StaxUtils.java:473)
at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:643)
       at
org .apache .cxf .transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java: 210)
       ... 14 more
Caused by: org.mortbay.jetty.EofException
at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java: 787)
       at
org.mortbay.jetty.AbstractGenerator $Output.blockForOutput(AbstractGenerator.java:548)
       at
org.mortbay.jetty.AbstractGenerator $Output.flush(AbstractGenerator.java:569)
       at
org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:946)
       at
org.mortbay.jetty.AbstractGenerator $Output.write(AbstractGenerator.java:646)
       at
org.mortbay.jetty.AbstractGenerator $Output.write(AbstractGenerator.java:577)
       at com.ctc.wstx.io.UTF8Writer.write(UTF8Writer.java:139)
       at
com .ctc.wstx.sw.BufferingXmlWriter.flushBuffer(BufferingXmlWriter.java: 1103)
       at
com .ctc .wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java: 476)
       at
com .ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java: 518)
       ... 28 more
Caused by: java.io.IOException: Broken pipe
       at sun.nio.ch.FileDispatcher.write0(Native Method)
       at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
       at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
       at sun.nio.ch.IOUtil.write(IOUtil.java:60)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java: 334)
       at
org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:169)
       at
org .mortbay .io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:221) at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java: 721)
       ... 37 more
Aug 18, 2010 5:48:15 PM sun.reflect.NativeMethodAccessorImpl invoke0
WARNING: Committed before 500 Exception occurred while trying to process
http://localhost:8194/ADInterface/services/ModelADService?wsdl
Aug 18, 2010 5:48:15 PM sun.reflect.NativeMethodAccessorImpl invoke0
SEVERE: EXCEPTION
java.lang.IllegalStateException: Committed
       at org.mortbay.jetty.Response.resetBuffer(Response.java:994)
       at org.mortbay.jetty.Response.sendError(Response.java:240)
       at
org .apache .cxf .transport .http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java: 240)
       at
org .apache .cxf .transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java: 70)
       at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 766)
       at
org .mortbay .jetty .handler .ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49)
       at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152)
       at org.mortbay.jetty.Server.handle(Server.java:324)
       at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 534)
       at
org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:864)
       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
       at
org .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409)
       at
org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:522)

Regards,
sunny
--
View this message in context: 
http://servicemix.396122.n5.nabble.com/CXF-BC-problem-tp2636512p2639147.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


--
Freeman Fang

------------------------
Open Source SOA: http://fusesource.com
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org

Reply via email to