Hi, If you want to pass the XML document or valid XML element as the argument to the web services then the part type for the message can be of xsd:any or xsd:anyType in WSDL file. And for implmentation the argument type of the service has to be org.apache.axis.types.Schema
e.g. void myService(org.apache.axis.types.Schema myxml) If you try to use the the String you will get the illegal argument exception. hope this helps. regards, Shrikant Wagh Optimyz Software, Inc. "Making Software Robust" Email: [EMAIL PROTECTED] Web: www.optimyz.com For more information about WebServiceTester product visit www.optimyz.com. Original Message: ----------------- From: Cory Cobler [EMAIL PROTECTED] Date: Wed, 1 Oct 2003 14:18:33 -0500 To: [EMAIL PROTECTED] Subject: RE: about complex types (newbie) You should just be able to pass the XML and DTD in as Files through the arg and have your xml parse do the validation on the other side. It has been a long time since I had to do this, but this is the route I would take. You could send the xml files through the web service as attachments. Or even buffer it out to a string. I may be way off but just my thoughts :-) -----Original Message----- From: Wermus Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 9:27 AM To: [EMAIL PROTECTED] Subject: RE: about complex types (newbie) I mean I have an xml as argument and I have a schema for the validation. How can I make a class that accept these types of arguments. -----Mensaje original----- De: Adhamh Findlay [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 01 de octubre de 2003 9:14 Para: [EMAIL PROTECTED] Asunto: Re: about complex types (newbie) Wermus, It sounds like you need to turn this xml file into a java class, and make this class the argument. If this class is a bean, then you can serialize the class and pass it back and forth. Adhamh On 9/30/03 1:30 PM, "Wermus Fernando" <[EMAIL PROTECTED]> wrote: > I have a method that it has as argument a complex type. It´s a xml file > validated by a schema. > > Wich java type can I use for the schema? > > If I use a string type, It could be too long for that type. Besides I can't > validate against the schema. > > Any help for this newbie, I'll be welcome. > > > Bye! > -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .