I'm fairly new to this, but if your object that contains:
1. Name
2. base64Encoded data.
can be made into a bean that looks something like:
package Test;
public class Base64
{
String name;
int[] data;
public Base64()
{
}
public String getName()
{
return name;
}
public int[] getData()
{
return data;
}
public void setName(String name)
{
this.name = name;
}
public void setData(int[] data)
{
this.data = data;
}
}
Then you could use the following for your interface:
package Test;
public interface EchoBase64
{
public void echo(Base64[] data);
}
I tested this out and using the bean and the interface above, you can then
generate your WSDL and then create the code for the Web service with
WSDL2Java.
You will be able to send one or more of the Base64 objects to the Web
service where it can do whatever it wants with them.
I'd be interested to know if this meets your requirements and if someone
knows of a better way to do it.
-----Original Message-----
From: Mayur Shetye [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 12:41 PM
To: [EMAIL PROTECTED]
Subject: RE: passing structure using WSDL
Thank you for helping me.
I am working on performace analysis of DIME and MIME
Vs Base64. I need to study the relative performances
of DIME MIME Base64 and raw RMI.
I have the need to send multiple attachments just like
the examples provided by axis (pkg attachments) which
'echos' them in respective formats. I have come across
some very interesting readings.
I am planning to rewrite services for DIME and MIME ,
basically sending and echoing array of datahandlers. I
would like to do it without touching the call object
myself. But I dont know how the Datahandler or
Datahandler[] shall convert in WSDL.
Anyway the point is I do want to send multiple
attachments in a single call. please let me know if
you think that there could be a better structure for
this specific purpose.
Mayur
--- Bill Werth <[EMAIL PROTECTED]> wrote:
> Why not just create an interface for the Web service
> something like:
>
> public interface EchoBase64 {
> public void echo(String name, int[] data);
> }
>
> Run Java2WSDL to create your WSDL based on this
> interface. If you want to
> echo more than one, just make multiple calls. You
> don't really need a
> structure for something this simple.
>
> -----Original Message-----
> From: Mayur Shetye [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 15, 2004 11:59 AM
> To: [EMAIL PROTECTED]
> Subject: RE: passing structure using WSDL
>
>
> hi
>
> Consider a structure as an object containing 2
> different data types. I want to send and get (echo)
> an
> array (1 or more) of these objects .
>
> The 2 elements in the object are
> 1. Name
> 2. base64Encoded data.
>
> >>>>> 'Actually' I want to write a EchoBase64
> program
> which shall echo my base64 encoded attachments from
> the axis server. I think that this is the way to go
> about doing it, I very well might be wrong.
>
> Let me know folks.
>
> Mayur
>
> --- Vikas Phonsa <[EMAIL PROTECTED]> wrote:
> > Not quite sure what exactly you are trying to do.
> > But if you can code ur
> > functionality in java then Java2Wsdl should be
> able
> > to generate the wsdl for
> > you.
> >
> > -----Original Message-----
> > From: Mayur Shetye [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 15, 2004 11:40 AM
> > To: [EMAIL PROTECTED]
> > Subject: passing structure using WSDL
> >
> > hello
> >
> > I am writing an implementation of a web service
> > where I am passing 'complex type' to the server.
> >
> > This complex type incudes following elements
> >
> > 1. name of the data
> > 2. base64 encoded data (this shall be an int
> []array
> > type in java)
> >
> > Now, My problem is that I might have to send in
> > multiple structures this way. Can you tell me how
> to
> > write a WSDL for this purpose.
> >
> > I am currently not very clear about how this can
> be
> > done, any inputs on that shall be greatly
> > appreciated.
> >
> > regards
> > Mayur Shetye
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> > http://promotions.yahoo.com/new_mail
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We
> finish.
> http://promotions.yahoo.com/new_mail
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail