[jboss-user] [JBossWS] - DII client for DataHandler webservice?

mendret do-not-reply at jboss.com
Mon Jan 26 10:22:09 EST 2009


hello folks,

tec Notes:
JBoss 5AS
JBossWS 3.0

i've got the following problem. I have a webservice working with javax.activation.DataHandler. Now I have to write a DII client for it, i already got a client using proxy's but i was told that i have to use dii for the client, now my question is, how can I use DataHandler objects at an dii client?

I've tried a few things but nothing seems to work, my last approach was


  | ...
  | call.addParameter("arg0", new QName("http://test.org/", "documentPayload"), DataHandler.class, ParameterMode.IN);
  | Object[] params = {new DataHandler(new FileDataSource("/tmp/test2.dat"))};
  | DataHandler result = (DataHandler)call.invoke(params);
  | 

but i get this exception:

  | Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to find read method or field for property 'commandMap' in class javax.activation.DataHandler
  |    at org.jboss.xb.binding.introspection.ClassInfo.getFieldInfo(ClassInfo.java:82)
  |    at org.jboss.xb.binding.introspection.FieldInfo.getFieldInfo(FieldInfo.java:155)
  |    at org.jboss.xb.binding.sunday.marshalling.MarshallerImpl.getJavaValue(MarshallerImpl.java:1267)
  | ...
  | 

what am i doing wrong? or better how is it right?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204735#4204735

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204735



More information about the jboss-user mailing list