I am using MXLBeans and AbstractMarshallingPayloadEndpoint as endpoint.
In endpoint class
----------------
protected Object invokeInternal(Object requestElement) throws Exception {
System.out.println("in endpoint 1: "+requestElement);
// The above println statement gives proper XML request as shown below.
//<employeeRequest xmlns="http://employee.com/model">NS115//</employeeRequest>
EmployeeRequestDocument requestDocument = (EmployeeRequestDocument) requestElement;
//.........
//.........
}
When casting the "requestElement" to "EmployeeRequestDocument" its giving the following error.
Exception in thread "main" org.springframework.ws.soap.client.SoapFaultClient Exception: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl
at org.springframework.ws.soap.client.core.SoapFaultM essageResolver.resolveFault(SoapFaultMessageResolv er.java:37)
at org.springframework.ws.client.core.WebServiceTempl ate.handleFault(WebServiceTemplate.java:529)
at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:412)
at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:358)
at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:304)
at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:289)
at com.employee.ws.client.EmployeeClient.getEmployeeD etails(EmployeeClient.java:37)
at com.employee.ws.client.EmployeeClient.main(Employe eClient.java:69)
Can anyone help me in solving this problem?
Thanks
venu


Reply With Quote