Return-Path: Mailing-List: contact soap-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list soap-user@xml.apache.org Received: (qmail 17660 invoked from network); 20 Jun 2002 21:59:09 -0000 Received: from unknown (HELO mail.cysive.com) (65.207.108.51) by daedalus.apache.org with SMTP; 20 Jun 2002 21:59:09 -0000 Received: from IZDEPSKIE82 ([10.2.3.72]) by mail.cysive.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id KTJZH0BM; Thu, 20 Jun 2002 17:57:17 -0400 Reply-To: From: "Erich Izdepski" To: Subject: RE: Passing primitives into SOAP calls Date: Thu, 20 Jun 2002 17:57:44 -0400 Message-ID: <000801c218a5$827d37b0$4803020a@cysive.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <2A4A791E-8498-11D6-84C8-003065401B82@semanticresearch.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Java has class types for primitives that work with the Parameter class. Each object wrapper has a static member called TYPE that gives the class of the associated primitive. For example, the class for int is given by Integer.TYPE. Erich Izdepski Senior Software Engineer Cysive, Inc. -----Original Message----- From: Jason Wells [mailto:jason@semanticresearch.com] Sent: Thursday, June 20, 2002 5:54 PM To: soap-user@xml.apache.org Subject: Passing primitives into SOAP calls Hello, I'm trying to understand how to expose a SOAP service with a method that takes a primitive data types (such as int) rather than objects (like Integer). Most of the code examples I've found set up the call's method arguments like this: Call call = new Call(); Vector params = new Vector(); params.addElement(new Parameter("caller", String.class, "whatever", null)); call.setParams(params); The problem is that the Parameter constructor only takes object-based parameters (a String in this case), but won't take primitives. I reviewed the source code for Parameter and I don't see any way to give it a non-object parameter. So I began to wonder if it wasn't possible. Then I ran into this document, "Creating Type Mappings": http://xml.apache.org/soap/docs/guide/serializer.html It seems to imply that at least from a XML serialization perspective, Apache SOAP knows about primitive types. So how do you use one as a call parameter? Thanks, Jason -- To unsubscribe, e-mail: For additional commands, e-mail: