Thanks for your help! Norm
The class is:
========
import java.util.Date;
/**
*
* @author dakk
*/
public class DataRecord implements java.io.Serializable {
public String fileName;
public byte[] photo; //as an array of base64-encoded bytes
public Float salary;
public Float d2;
public Float d3;
public Float d4;
public Date date;
public Integer empID;
public Float d5;
public DataRecord() {}
public String toString() {
return "Data Record Filename="+this.fileName;
}
}
Here is the run:
===================================
init:
deps-jar:
compile-single:
run-single:
Contacting webservice at
http://localhost:8080/myservlet/MyServletInterface?wsdl
Exception in thread "main" deserialization error: unexpected XML reader state.
expected: END but found: START: date
at
com.sun.xml.rpc.encoding.literal.LiteralResponseSerializer.deserialize(LiteralResponseSerializer.java:331)
at
com.sun.xml.rpc.client.dii.CallInvokerImpl._readFirstBodyElement(CallInvokerImpl.java:350)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486)
at
com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocationHandler.java:121)
at
com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocationHandler.java:85)
at $Proxy0.getDataRecord(Unknown Source)
at MyClient.main(MyClient.java:48)
CAUSE:
unexpected XML reader state. expected: END but found: START: date
at
com.sun.xml.rpc.streaming.XMLReaderUtil.verifyReaderState(XMLReaderUtil.java:51)
at
com.sun.xml.rpc.encoding.literal.LiteralResponseSerializer.internalDeserialize(LiteralResponseSerializer.java:373)
at
com.sun.xml.rpc.encoding.literal.LiteralResponseSerializer.deserialize(LiteralResponseSerializer.java:327)
at
com.sun.xml.rpc.client.dii.CallInvokerImpl._readFirstBodyElement(CallInvokerImpl.java:350)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486)
at
com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocationHandler.java:121)
at
com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocationHandler.java:85)
at $Proxy0.getDataRecord(Unknown Source)
at MyClient.main(MyClient.java:48)
Java Result: 1
BUILD SUCCESSFUL (total time: 17 seconds)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166755#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...