Is it possible to pass an array in method call to web service? Is there such thing as XMLType.XSD_STRING ? In other words, if I want to pass a String array in Axis method call, can I do something like this?:
Service service = new Service(); Call call = (Call)service.createCall(); call.addParameter("StringParams", XMLType.XSD_STRING , ParameterMode.IN);
Thank you [ October 05, 2004: Message edited by: thomas wilson ]
You can pass a String array or object array in Webservices. If you are using Apache Axis Java2WSDL and WSDL2Java you dont need to worry about calling the method.
FYI: In WSDL you can see the String array as: <complexType name="ArrayOf_xsd_string"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string"/> </restriction> </complexContent> </complexType>
I am trying to pass Object arrays (ie customized object arrays like Account, Contact) I am getting "InvocationTargetException". If I place the class files in Web-Inf\classes\ this error is gone. But I couldn't understand what is the problem....Please let me know if you come across the solution for this.
Hope this helps you.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com