You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Jeremy Levy <je...@yahoo.com> on 2001/11/15 23:28:34 UTC

Parameters types

Okay, I am very new to SOAP and this is probably a very stupid question but
I have spent the better part of the day trying to figure this out...

What is the java.lang type of an int?  According to the docs the
SOAPMappingRegistry includes support for all primitives including int...
here is my code

...


MAC is a String
messageType is a int

params.addElement(new Parameter("MAC", String.class, MAC, null)); //this
line works fine

params.addElement(new Parameter("messageType", Integer.class, messageType,
null));
			^
		doesn't like that....

Thank you

Jeremy


RE: Parameters types

Posted by Barnaby James <ba...@adobe.com>.
I think if messageType is an instance of the class Integer rather than an
int, it will work.

Barnaby

-----
Barnaby James
Acrobat Engineering
Adobe Systems, Inc.
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=Barnaby+James
490D 688C 619C C9F4 3D1D  FA23 97F4 931C 6308 D119

> -----Original Message-----
> From: Jeremy Levy [mailto:jelevy01@yahoo.com]
> Sent: Thursday, November 15, 2001 2:29 PM
> To: soap-user@xml.apache.org
> Subject: Parameters types
>
>
> Okay, I am very new to SOAP and this is probably a very stupid
> question but
> I have spent the better part of the day trying to figure this out...
>
> What is the java.lang type of an int?  According to the docs the
> SOAPMappingRegistry includes support for all primitives including int...
> here is my code
>
> ...
>
>
> MAC is a String
> messageType is a int
>
> params.addElement(new Parameter("MAC", String.class, MAC, null)); //this
> line works fine
>
> params.addElement(new Parameter("messageType", Integer.class, messageType,
> null));
> 			^
> 		doesn't like that....
>
> Thank you
>
> Jeremy
>


RE: Parameters types

Posted by Abraham Kang <ab...@infogain.com>.
I think I saw something like

int.class

example:

 params.addElement(new Parameter("messageType", int.class, messageType,
 null));

Someone correct me if I am wrong.

Abraham

> -----Original Message-----
> From: Jeremy Levy [mailto:jelevy01@yahoo.com]
> Sent: Thursday, November 15, 2001 2:29 PM
> To: soap-user@xml.apache.org
> Subject: Parameters types
>
>
> Okay, I am very new to SOAP and this is probably a very stupid
> question but
> I have spent the better part of the day trying to figure this out...
>
> What is the java.lang type of an int?  According to the docs the
> SOAPMappingRegistry includes support for all primitives including int...
> here is my code
>
> ...
>
>
> MAC is a String
> messageType is a int
>
> params.addElement(new Parameter("MAC", String.class, MAC, null)); //this
> line works fine
>
> params.addElement(new Parameter("messageType", Integer.class, messageType,
> null));
> 			^
> 		doesn't like that....
>
> Thank you
>
> Jeremy
>
>


RE: Parameters types

Posted by Amit Rana <ra...@mbc2.co.jp>.
Dear Jeremy,

	All these wrapper classes have a property/field TYPE. This field returns
"The Class object representing the primitive type ####." , so class type of
integer is Integer.TYPE and so on. You can check the java documentation for
the same.

Regards,
Amit.

-----Original Message-----
From: Jeremy Levy [mailto:jelevy01@yahoo.com]
Sent: Friday, November 16, 2001 7:29 AM
To: soap-user@xml.apache.org
Subject: Parameters types


Okay, I am very new to SOAP and this is probably a very stupid question but
I have spent the better part of the day trying to figure this out...

What is the java.lang type of an int?  According to the docs the
SOAPMappingRegistry includes support for all primitives including int...
here is my code

...


MAC is a String
messageType is a int

params.addElement(new Parameter("MAC", String.class, MAC, null)); //this
line works fine

params.addElement(new Parameter("messageType", Integer.class, messageType,
null));
			^
		doesn't like that....

Thank you

Jeremy


RE: Parameters types

Posted by Abraham Kang <ab...@infogain.com>.
I think I saw something like

int.class

example:

 params.addElement(new Parameter("messageType", int.class, messageType,
 null));

Someone correct me if I am wrong.

Abraham

> -----Original Message-----
> From: Jeremy Levy [mailto:jelevy01@yahoo.com]
> Sent: Thursday, November 15, 2001 2:29 PM
> To: soap-user@xml.apache.org
> Subject: Parameters types
>
>
> Okay, I am very new to SOAP and this is probably a very stupid
> question but
> I have spent the better part of the day trying to figure this out...
>
> What is the java.lang type of an int?  According to the docs the
> SOAPMappingRegistry includes support for all primitives including int...
> here is my code
>
> ...
>
>
> MAC is a String
> messageType is a int
>
> params.addElement(new Parameter("MAC", String.class, MAC, null)); //this
> line works fine
>
> params.addElement(new Parameter("messageType", Integer.class, messageType,
> null));
> 			^
> 		doesn't like that....
>
> Thank you
>
> Jeremy
>
>


RE: Parameters types

Posted by Barnaby James <ba...@adobe.com>.
I think if messageType is an instance of the class Integer rather than an
int, it will work.

Barnaby

-----
Barnaby James
Acrobat Engineering
Adobe Systems, Inc.
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=Barnaby+James
490D 688C 619C C9F4 3D1D  FA23 97F4 931C 6308 D119

> -----Original Message-----
> From: Jeremy Levy [mailto:jelevy01@yahoo.com]
> Sent: Thursday, November 15, 2001 2:29 PM
> To: soap-user@xml.apache.org
> Subject: Parameters types
>
>
> Okay, I am very new to SOAP and this is probably a very stupid
> question but
> I have spent the better part of the day trying to figure this out...
>
> What is the java.lang type of an int?  According to the docs the
> SOAPMappingRegistry includes support for all primitives including int...
> here is my code
>
> ...
>
>
> MAC is a String
> messageType is a int
>
> params.addElement(new Parameter("MAC", String.class, MAC, null)); //this
> line works fine
>
> params.addElement(new Parameter("messageType", Integer.class, messageType,
> null));
> 			^
> 		doesn't like that....
>
> Thank you
>
> Jeremy
>


RE: Parameters types

Posted by Amit Rana <ra...@mbc2.co.jp>.
Dear Jeremy,

	All these wrapper classes have a property/field TYPE. This field returns
"The Class object representing the primitive type ####." , so class type of
integer is Integer.TYPE and so on. You can check the java documentation for
the same.

Regards,
Amit.

-----Original Message-----
From: Jeremy Levy [mailto:jelevy01@yahoo.com]
Sent: Friday, November 16, 2001 7:29 AM
To: soap-user@xml.apache.org
Subject: Parameters types


Okay, I am very new to SOAP and this is probably a very stupid question but
I have spent the better part of the day trying to figure this out...

What is the java.lang type of an int?  According to the docs the
SOAPMappingRegistry includes support for all primitives including int...
here is my code

...


MAC is a String
messageType is a int

params.addElement(new Parameter("MAC", String.class, MAC, null)); //this
line works fine

params.addElement(new Parameter("messageType", Integer.class, messageType,
null));
			^
		doesn't like that....

Thank you

Jeremy