ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manvendra Baghel <manav_...@yahoo.com>
Subject Re: <i4> and array type question,please help
Date Tue, 08 Nov 2005 04:57:54 GMT
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
 <array>
   <data>
     <value><i4>1404</i4></value>
     <value><string>Something Here</string></value>
   </data>
 </array>
......... 
I use XmlRpcClient.executeQuery() method ....
How can we see our output like above xml 

Thanks
Manav


--- Yixing Ma <Yixing.Ma@interfacemgmt.net> 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" <manav_10a@yahoo.com>
> To: <xmlrpc-user@ws.apache.org>
> Sent: Monday, November 07, 2005 1:30 AM
> Subject: Re: <i4> 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
> >> <array>
> >>   <data>
> >>     <value><i4>1404</i4></value>
> >>     <value><string>Something
> Here</string></value>
> >>   </data>
> >> </array>
> >>
> >
> > Thanks in advance
> >
> > MANAV
> >
> >
> >
> > --- Yixing Ma <Yixing.Ma@interfacemgmt.net> 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:
> >>
> >
>
**********************************************************************
> >> <array>
> >>   <data>
> >>     <value><i4>1404</i4></value>
> >>     <value><string>Something
> Here</string></value>
> >>   </data>
> >> </array>
> >>
> >
>
***********************************************************************
> >> But I was unable to put <i4> into the array by
> using
> >> java Vector. I could only put <int></int> instead
> of
> >> <i4>. Also the <string></string> 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
> >>
> >
>
**********************************************************************
> >> <array>
> >>   <data>
> >>     <value><int>1404</int></value>
> >>     <value>Something Here</value>
> >>   </data>
> >> </array>
> >>
> >
>
**********************************************************************
> >>
> >> 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
> >> <array>
> >>   <data>
> >>     <value><i4>001404</i4></value>
> >>   </data>
> >> </array>
> >>
> >> 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

Mime
View raw message