精华内容
下载资源
问答
  • cxf Unexpected wrapper element异常解决

    千次阅读 2019-11-21 08:39:50
    javax.xml.ws.soap.SOAPFaultException: Unexpected wrapper element {http://day20170714.et.cn/}calc fou 原因:是客户端和服务器的namespace不同,即客户端和服务端的WebService接口包路径不一致。 解决方式: ...

    客户端使用SOAP方式调用CXF服务时异常:

    javax.xml.ws.soap.SOAPFaultException: Unexpected wrapper element {http://day20170714.et.cn/}calc fou

    原因:是客户端和服务器的namespace不同,即客户端和服务端的WebService接口包路径不一致。

    解决方式:

    1、客户端和服务器的WebService接口包路径相同。

    2、在客户端和服务端的接口注解上指定相同的targetNamespace。建议与包名保持一致。

    3、如果是反向生成的服务器代码,需注释掉:wsdlLocation部分;wsdlLocation会导致找不到具体的服务。

    展开全文
  • WebServer报错Unexpected wrapper element

    千次阅读 2018-12-11 19:42:45
    测试webServer客户端调用...Caused by: org.apache.cxf.binding.soap.SoapFault: Unexpected wrapper element {http://white.com/}sayHello found. Expected {http://service.white.com/}sayHello. at org.apach...

    测试webServer客户端调用服务报错;信息如下:

    Caused by: org.apache.cxf.binding.soap.SoapFault: Unexpected wrapper element {http://white.com/}sayHello found.   Expected {http://service.white.com/}sayHello.
    	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:87)
    	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:53)
    	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:42)
    	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
    	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:112)
    	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:70)
    	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:35)
    	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
    	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:826)
    	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1695)
    	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1572)
    	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1373)
    	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
    	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:673)
    	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
    	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
    	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:531)
    	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:440)
    	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:355)
    	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
    	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
    	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
    	... 2 more
    
    

    原因:
    是因为客户端的service类所放置的位置和服务端放置位置不一样;这个需要保证两个service类的路径一样;

    展开全文
  • org.apache.cxf.interceptor.Fault: Unexpected wrapper element {http://ws.oa.dsp.org}getSTHZCFZBInfoResponse found. Expected {http://ws.oa.dsp.org}getSTHJZCBDBInfoResponse. 服务端接口: package org....
  • cxf webservice:异常SOAPFaultException: Unexpected wrapper element found解决

    cxf webservice:异常SOAPFaultException: Unexpected wrapper element found解决

    参考文章:

    (1)cxf webservice:异常SOAPFaultException: Unexpected wrapper element found解决

    (2)https://www.cnblogs.com/ace-9527/p/4933630.html


    备忘一下。


    展开全文
  • 今天用eclipse生成一个wsdl...Unexpected wrapper element {http://service.faced.wsdl.bigaka.com/}sysOrder found.  Expected {http://server.bigaka.com/}sysOrder. 错误的意思是:期望地址是http://server.b

    今天用eclipse生成一个wsdl客户端,在调用的时候,错误提示如下:

    Unexpected wrapper element {http://service.faced.wsdl.bigaka.com/}sysOrder found.   Expected {http://server.bigaka.com/}sysOrder.


    错误的意思是:期望地址是http://server.bigaka.com  ,但是意外出现了http://service.faced.wsdl.bigaka.com这个地址


    查找整个项目,没有http://service.faced.wsdl.bigaka.com这个的存在。



    解决办法:

    在你的客户端接口上,加上 @WebService(targetNamespace = "http://server.bigaka.com/") ,重启项目,完美解决





    展开全文
  • faultString: Unexpected wrapper element requestHgInfoRespond found. Expected {http://warehouse.cxf.kcb.com/}requestHgInfoRespond. faultActor: faultNode: faultDetail: {...
  • Unexpected wrapper element XX found. 问题

    万次阅读 2014-08-20 10:47:54
    Unexpected wrapper element 方法名 found.  Exception in thread "main" AxisFault  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client  faultSubcode:   faultString: ...
  • 近日在做一个与医保系统对接的项目,对方给了一个客户端给我,需要来调用我的服务端。...Unexpected wrapper element{urn:YBServiceIntf-IYBService}GetMemberInfo found Expected{http://cn.lbx.com/}GetMembe...
  • 近日在做一个与医保系统对接的项目,对方给了一个客户端给我,需要来调用我的服务端。 我的服务端用的是springboot框架sql...Unexpected wrapper element{urn:YBServiceIntf-IYBService}GetMemberInfo found Expec...
  • 需要在接口类及方法上增加两个注解 @SOAPBinding(style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.ENCODED) @WebMethod (action = “external”) 最终接口类(图片仅供参考)体现如下格式: ...
  • 客户端使用SOAP方式调用CXF服务时异常:javax.xml.ws.soap.SOAPFaultException: Unexpected wrapper element {http://xxx.com/}hello found.  Expected {http://xxx.com/}hello,原因是客户端和服务器的namespace...
  • (1)Unexpected wrapper element {xxx}xx found. Expected {xxx}xx. 后台错误: 20:47:45.824 [http-nio-8080-exec-8] WARN o.a.c.p.PhaseInterceptorChain - [doLog,475] - Interceptor for {...
  • org.apache.cxf.interceptor.Fault: Unexpected wrapper element {http://interfaces.webservices.admin.common.com/}sayHello found.  Expected {http://interfaces.cxf.services.common.com/}sayHello. ...
  • 报错内容,期望访问的地址和实际地址不一样。 经过对比,发现命名空间没对。 一个 / 让我找了半天,修改命名空间地址后,调用成功了
  • javax.xml.ws.soap.SOAPFaultException: Unexpected wrapper element {http://service.wxclient.jht.com/}myMessage found. Expected {http://wxservice.wxws.jht.com/}myMessage. org.apache.cxf.jaxws.JaxWsCl
  • Interceptor for {http://webservice.demo.lerr.com}CxfService#{http://webservice.demo.lerr.com/}sayHello has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Unexpected wrapper element ...
  • org.apache.cxf.interceptor.Fault: Unexpected wrapper element {****}  对于接口类和相关类的包路径,一定要和服务器的一样, 即:如果服务接口包路径和实现类路径,要和客户端一致。
  • org.apache.cxf.interceptor.Fault: Unexpected wrapper element {http://webservice.index.fhi.com/}sayHelloResponse found. Expected {http://vo.webservice.user.fhi.com/}sayHelloResponse.  at org.apache...
  • Unexpected wrapper element {http://ws .konghao .org /}sayHello found. Expected {http://ws .konghao .org /}sayHelloResponse. at org .apache .cxf .jaxws .JaxWsClientProxy .invoke (JaxWsClientProxy ....
  • Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Unexpected wrapper element {http://client.webwervice.common.navidog.cn/}getListPnameByuid found. Expected {http://cxfwebserv
  • org.apache.cxf.binding.soap.SoapFault: Unexpected wrapper element 出现命名空间不一致问题,解决方法 @WebService(targetNamespace="http://test.ws.ws.lcp.jh.com/") 不要忘记 ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 914
精华内容 365
关键字:

elementunexpectedwrapper