javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: unexpected element (uri:"----", local:"loginid"). Expected elements are <{}tokenstring>,<{}devicetype>,<{}loginid>,<{}password>,<{}deviceid>

  1. 0

    SOAPFAULTEXCEPTION while trying to consume a webservice

    Stack Overflow | 3 years ago | antony.ouseph.k
    javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: unexpected element (uri:"----", local:"loginid"). Expected elements are <{}tokenstring>,<{}devicetype>,<{}loginid>,<{}password>,<{}deviceid>
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.cxf.binding.soap.SoapFault

    Unmarshalling Error: unexpected element (uri:"----", local:"loginid"). Expected elements are <{}tokenstring>,<{}devicetype>,<{}loginid>,<{}password>,<{}deviceid>

    at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault()
  2. Apache CXF Runtime SOAP Binding
    Soap11FaultInInterceptor.handleMessage
    1. org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:84)
    2. org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51)
    3. org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40)
    3 frames
  3. Apache CXF Core
    AbstractFaultChainInitiatorObserver.onMessage
    1. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
    2. org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
    2 frames
  4. Apache CXF Runtime SOAP Binding
    CheckFaultInterceptor.handleMessage
    1. org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
    2. org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
    2 frames
  5. Apache CXF Core
    ClientImpl.onMessage
    1. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
    2. org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:835)
    2 frames
  6. Apache CXF Runtime HTTP Transport
    HTTPConduit$WrappedOutputStream.close
    1. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1606)
    2. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1502)
    3. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1309)
    3 frames
  7. Apache CXF Core
    AbstractConduit.close
    1. org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
    1 frame
  8. Apache CXF Runtime HTTP Transport
    HTTPConduit.close
    1. org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
    1 frame
  9. Apache CXF Core
    ClientImpl.invoke
    1. org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
    2. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
    3. org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:565)
    4. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474)
    5. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377)
    6. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330)
    6 frames
  10. Apache CXF Runtime Simple Frontend
    ClientProxy.invokeSync
    1. org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
    1 frame
  11. Apache CXF Runtime JAX-WS Frontend
    JaxWsClientProxy.invoke
    1. org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
    1 frame
  12. Unknown
    $Proxy29.getUserInformation
    1. $Proxy29.getUserInformation(Unknown Source)
    1 frame
  13. servicepackage
    ServiceClassPortType_ServiceClassPort_Client.main
    1. servicepackage.ServiceClassPortType_ServiceClassPort_Client.main(ServiceClassPortType_ServiceClassPort_Client.java:71)
    1 frame