调用时出现:前言中不允许有内容的问题
涂作权的博客 博客专家认证 2014-04-10 12:11:40 MULE ESB中的mflow中的写法是:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:stdio="http://www.mulesoft.org/schema/mule/stdio"
xmlns:ws="http://www.mulesoft.org/schema/mule/ws"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:pattern="http://www.mulesoft.org/schema/mule/pattern"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/stdio
http://www.mulesoft.org/schema/mule/stdio/current/mule-stdio.xsd
http://www.mulesoft.org/schema/mule/ws
http://www.mulesoft.org/schema/mule/ws/current/mule-ws.xsd
http://www.mulesoft.org/schema/mule/http
http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/pattern
http://www.mulesoft.org/schema/mule/pattern/current/mule-pattern.xsd"
version="CE-3.3.1">
<!-- MEPGS服务代理 -->
<pattern:web-service-proxy name="mspgs-ws-proxy-pattern"
inboundAddress="http://10.28.17.129:8088/MSPGS/MPService"
outboundAddress="http://10.10.31.88/MSPGSWeb/MSPGS/MPService.svc"></pattern:web-service-proxy>
<!-- MICAPS日志发布成服务消息注册到ESB中 -->
<pattern:web-service-proxy name="acquisition-ws-proxy-pattern"
inboundAddress="http://10.28.17.129:8089/misps_acquisition/ws/micapsL"
outboundAddress="http://localhost:8080/misps_acquisition/ws/micapsL"></pattern:web-service-proxy>
<!-- <ws:proxy name="mspgs-ws-proxy-pattern"
inboundAddress="http://10.28.17.129:8088/MSPGS/MPService" outboundAddress="http://10.10.31.88/MSPGSWeb/MSPGS/MPService.svc">
</ws:proxy> -->
</mule>
报的问题是:
2014-04-10 11:57:53,731-[QZ] WARN http-bio-8080-exec-9 org.apache.cxf.phase.PhaseInterceptorChain - Interceptor for {http://tempuri.org/}IMPServiceService#{http://tempuri.org/}MPServiceFile has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:237)
at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:60)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:799)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1627)
.......
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: 前言中不允许有内容。
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:598)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.nextTag(XMLStreamReaderImpl.java:1238)
at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:138)
... 104 more
webservice服务端使用的WCF
webservice客户端使用的是CXF
烦请哪位大神帮看看。