This should help with stub generation.

http://xfire.codehaus.org/Client+and+Server+Stub+Generation+from+WSDL

You can also just edit your web/action class that was built with appgen.  Here 
is a code sample of what you would need.

    public List getCustomers() throws MalformedURLException {
        
        log.debug("retreiving customers using soap...");
        
        Service serviceModel = new 
ObjectServiceFactory().create(RaterServices.class);
        
        RaterServices service = (RaterServices)
        new XFireProxyFactory().create(serviceModel, endpoint);
        
        CustomerWrapper customer = new CustomerWrapper();
        
        // Set up example customer for use in query by example
        customer.setId(null);
        customer.setCustomerKey(null);
        customer.setCustomerName(null);
        customer.setStatus(null);
        customer.setStatusEffectiveDate(null);
        
        return service.getCustomers(customer);
    }

----- Original Message ----
From: sunisaj <[EMAIL PROTECTED]>
To: users@appfuse.dev.java.net
Sent: Wednesday, October 3, 2007 6:37:17 AM
Subject: [appfuse-user] How to write web service client


I was able to create webservice using appfuse tutorial (just having
annotatation helped me to see the WSDL).  I did not find any tutorial to see
how to consume the web service.  Can anyone point me to tutorial where web
service client can be created to consume web service which appfuse has
created. Thanks,
-- 
View this message in context: 
http://www.nabble.com/How-to-write-web-service-client-tf4561892s2369.html#a13019167
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Reply via email to