• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is XML integer type ?

 
chaohua wang
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ALL,

I have mathod like this

void setCommandKey(Integer akey)

I am using DII .

Call call = service.createCall(port);
......
call.setOperationName(new QName(BODY_NAMESPACE_VALUE, "setCommandKey"));

call.addParameter("Integer_1", QNAME_TYPE_INTEGER , ParameterMode.IN);

Integer[] params = { new Integer(240) };
call.invoke(params);


but error meesage says can not find 'QNAME_TYPE_INTEGER' this symbols.

I tried integer, or INTEGER, still has the error message.

Please let me know what is type for Integer in XML ?
Thank you!

Chaohua
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to define QNAME_TYPE_INTEGER if you want to use it. A value of "int" should do nicely.
 
chaohua wang
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very mcuh,
If the vlaue is an Integer object, How can I do that?

Chaohua
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!