Your WSDL specifies the XML type definition of studentType. In your code, you must define a qname for that type and then specify that qname as the type in the addParameter method.
Anne On 1/26/07, Lindsey Hess <[EMAIL PROTECTED]> wrote:
Hello, I have a WSDL that expects two parameters for specific operation's request, namely, studentID and studentType. studentID is an integer, and studentType is a complex type (one of the many parameters within it is another complex type as well). I can't seem to find any documentation on how to dynamically invoke a service that takes a parameter that is a complex type. My code is as follows (the question marks show where I'm completely puzzled): // StudentType class was generated by WSDL2java. StudentType is a complex type StudentType studentType = new StudentType(); // Add parameters callStudent.addParameter("studentID", XMLType.SOAP_INT, ParameterMode.IN); callStudent.addParameter("studentType", ?????, ParameterMode.IN); // Create an array of parameters Object[] opParamsStudent = {studentID, ??????}; // Invoke the service callStudent.invoke(opParamsStudent); Can someone please assist me? Thank you. Lindsey [EMAIL PROTECTED] ________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]