title: Consuming service with problematic wsdl - Unexpected Element Exception
body: <p>I have to consume service with problematic wsdl (cannot change it). At first I had to custom mapping because generated classes were in java.x package. Now I generated vanilla client and tried to use it:</p>
  
  <pre><code>    Services handle = new Services(new URL("http://172.16.1.2:8080/axis2/services/x?wsdl"));
      ServicesPortType service = handle
              .getServicesHttpSoap11Endpoint();
  
  
      x.y.ws.datamodels.xsd.ObjectFactory obj = new x.y.ws.datamodels.xsd.ObjectFactory();
  
      IPInterfaceInfo sourceIPInterface = obj.createIPInterfaceInfo();
              service.getInformation(sourceIPInterface);
  </code></pre>
  
  <p>Anyway this code that is doing literally nothing and contains only empty values trows an exception:</p>
  
  <pre><code>WARNING: Interceptor for {http://workflowprocessor.ws.y.x}Services# {http://workflowprocessor.ws.y.x}getBandwidthInformation has thrown exception, unwinding now
  org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"http://datamodels.ws.y.x/xsd", local:"infoString"). Expected elements are &lt;{http://logging.util.java/xsd}resourceBundleName&gt;,&lt;{http://logging.util.java/xsd}resourceBundle&gt;,&lt;{http://logging.util.java/xsd}parent&gt;,&lt;{http://logging.util.java/xsd}useParentHandlers&gt;,&lt;{http://logging.util.java/xsd}filter&gt;,&lt;{http://logging.util.java/xsd}handlers&gt;,&lt;{http://logging.util.java/xsd}level&gt;,&lt;{http://logging.util.java/xsd}name&gt; 
  at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:822)
  at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:643)
  at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:157)
  at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:109)
  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:1635)
  at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1502)
  at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1410)
  at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
  at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:650)
  at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
  at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
  at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533)
  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
  at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88)
  at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
  at $Proxy34.getBandwidthInformation(Unknown Source)
  at adva.SimpleTest.main(SimpleTest.java:33)
  </code></pre>
  
  <p>Caused by: javax.xml.bind.UnmarshalException</p>