This should point you in the right direction:
\xfire-1.2.6\examples\jaxb2\src\test\org\codehaus\xfire\jaxb



package org.codehaus.xfire.jaxb;

import org.codehaus.xfire.spring.AbstractXFireSpringTest;
import org.jdom.Document;
import org.springframework.context.ApplicationContext;
import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;

public class WeatherTest 
    extends AbstractXFireSpringTest
{
    public void testService() throws Exception
    {
        Document response = invokeService("WeatherService",
"GetWeatherByZip.xml");

        addNamespace("w", "http://www.webservicex.net";);
 
assertValid("//s:Body/w:GetWeatherByZipCodeResponse/w:GetWeatherByZipCod
eResult", response);
        
        Document wsdl = getWSDLDocument("WeatherService");
    }
    
    protected ApplicationContext createContext()
    {
        return new ClassPathXmlApplicationContext(new String[] {
           "/org/codehaus/xfire/spring/xfire.xml",
           "/META-INF/xfire/services.xml"
        });
    }
}


Michele Rossi


-----Original Message-----
From: Tim Hamer [mailto:[EMAIL PROTECTED] 
Sent: 14 May 2007 14:52
To: [email protected]
Subject: [xfire-user] need help invoking complex web services


Hi,

We're trying to create a Java application capable of consuming any web
service dynamically given only the WSDL. The only problem is that we
can't figure out how to invoke a service that takes a complex type as a
parameter without first generating code. Is it possible to use Xfire to
do such an invocation without generating code, and if so, could someone
please send us some hint on how to do so?

thanks,
Tim

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email
--------------------------------------------------------

 If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail. http://www.ml.com/email_terms/

--------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to