From xmlrpc-user-return-1516-apmail-ws-xmlrpc-user-archive=ws.apache.org@ws.apache.org Tue Nov 08 16:36:05 2005 Return-Path: Delivered-To: apmail-ws-xmlrpc-user-archive@www.apache.org Received: (qmail 75516 invoked from network); 8 Nov 2005 16:35:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Nov 2005 16:35:27 -0000 Received: (qmail 48143 invoked by uid 500); 8 Nov 2005 16:35:22 -0000 Delivered-To: apmail-ws-xmlrpc-user-archive@ws.apache.org Received: (qmail 48087 invoked by uid 500); 8 Nov 2005 16:35:21 -0000 Mailing-List: contact xmlrpc-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: xmlrpc-user@ws.apache.org List-Id: Delivered-To: mailing list xmlrpc-user@ws.apache.org Received: (qmail 48043 invoked by uid 99); 8 Nov 2005 16:35:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2005 08:35:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [206.46.252.123] (HELO vms123pub.verizon.net) (206.46.252.123) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2005 08:35:13 -0800 Received: from YIXING ([66.14.138.80]) by vms123.mailsrvcs.net (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTPA id <0IPN002CIA29U6H0@vms123.mailsrvcs.net> for xmlrpc-user@ws.apache.org; Tue, 08 Nov 2005 10:34:57 -0600 (CST) Date: Tue, 08 Nov 2005 08:35:02 -0800 From: "Yixing Ma" Subject: Re: and array type question,please help To: , Message-id: <000701c5e482$5e8038b0$6601a8c3@YIXING> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal References: <20051108045754.98680.qmail@web30413.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Manav, That XML is the data structure of XML-RPC array. It should be part of the XML-RPC request, generated by java.util.Vector. The XML will be sent to the receiver by using XmlRpcClient.executeQuery(). The XML will be shown up in the java console. Yixing ----- Original Message ----- From: "Manvendra Baghel" To: Sent: Monday, November 07, 2005 8:57 PM Subject: Re: and array type question,please help > hello Yixing, > I have used java based xml rpc ,in which we use java > api to generate xml-rpc request . > I never wrote XML request in this way > > > 1404 > Something Here > > > ......... > I use XmlRpcClient.executeQuery() method .... > How can we see our output like above xml > > Thanks > Manav > > > --- Yixing Ma wrote: > >> Hi Manav, >> >> Are you asking how to see the content of your >> sending XML? You should be >> able to see the XML in the console when you run the >> program. >> >> Yixing >> >> >> ----- Original Message ----- >> From: "Manvendra Baghel" >> To: >> Sent: Monday, November 07, 2005 1:30 AM >> Subject: Re: and array type question,please >> help >> >> >> > hi Yixing >> > >> > I am new to XML RPC .Please can you tell how to >> view >> > XML of XML-RPC request >> >> >> >> >> >> 1404 >> >> Something >> Here >> >> >> >> >> >> >> > >> > Thanks in advance >> > >> > MANAV >> > >> > >> > >> > --- Yixing Ma wrote: >> > >> >> >> >> Hi, >> >> >> >> As I'm starting to use apache's XML-RPC java api, >> I >> >> found couple of questions. >> >> >> >> 1) The standard XML-RPC spec defines the array >> type >> >> as something like: >> >> >> > >> > ********************************************************************** >> >> >> >> >> >> 1404 >> >> Something >> Here >> >> >> >> >> >> >> > >> > *********************************************************************** >> >> But I was unable to put into the array by >> using >> >> java Vector. I could only put instead >> of >> >> . Also the tag in red is >> >> missing. The blank space was replaced by " " in >> >> the generated XML. >> >> >> >> My code is: >> >> ********************************** >> >> Vector v=new Vector(); * >> >> v.add(new Integer("1404")); * >> >> v.add("Something Here"); * >> >> ********************************** >> >> The result XML is >> >> >> > >> > ********************************************************************** >> >> >> >> >> >> 1404 >> >> Something Here >> >> >> >> >> >> >> > >> > ********************************************************************** >> >> >> >> Is there a way to produce the exact same XML as >> >> XML-RPC defined by using apache's api? >> >> >> >> 2) If I want to generate >> >> >> >> >> >> 001404 >> >> >> >> >> >> >> >> as I want to preserve the zero before 1404. What >> >> should I do? >> >> >> >> Best regards, >> >> Yixing Ma >> >> >> >> >> >> >> > >> > >> > >> > >> > >> > __________________________________ >> > Yahoo! Mail - PC Magazine Editors' Choice 2005 >> > http://mail.yahoo.com >> >> > > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com