title: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"arg0"). Expected elements are <{}customerInfo>
body: <p>I am facing this issue for 2 days but couldn't able to resolve this. I am trying to call a webservice using JAX-WS. Service call but the object in that is not parsed.</p>
  
  <pre><code>            JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
              factory.setServiceClass(ICustomer.class);
              factory.setAddress("http://localhost:8080/backend/services/CustomerInfo");
              ICustomer client = (ICustomer) factory.create();
  
              // Below is the service call. where 'object' is my CustomerInfo object/data
              client.saveCustomer(object);
  </code></pre>
  
  <p>Service Implementation Class:</p>
  
  <pre><code>@WebService(endpointInterface = "com.dev.backend.services.interfaces.ICustomer", serviceName="CustomerInfo")
  public class ICustomerImpl implements ICustomer {
  
  public boolean saveCustomer(Object object) {
      JAXBContext payloadContext;
      try {
          payloadContext = JAXBContext.newInstance(CustomerInfo.class);
          CustomerInfo o = (CustomerInfo)payloadContext.createUnmarshaller().unmarshal((Node)object); // Line 'error'
      } catch (JAXBException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>(CustomerInfo)payloadContext.createUnmarshaller().unmarshal((Node)object) is the line where exception throw "javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"arg0"). Expected elements are &lt;{}customerInfo>"</p>
  
  <p>Can any please help me. I am looking for solution for 2 days.</p>
  
  <p>Thanks</p>