Here's the Java:

[Shawn:]
This is a stripped down version of the NavService class.
-------------------------------------------------------
private List _counties;
    
/** Creates a new instance of NavService */
public NavService() {
        RepositoryFactory factory = new RepositoryFactory();
        Hashtable ht = new Hashtable();
        ht.put("staticXMLHome","c:/JavaWebApps/Navigator/etc/");
        ht.put("dynamicXMLHome","c:/JavaWebApps/Navigator/www/data/");
        repo = factory.createRepository("XML",ht);
        
        List lcounties = repo.getCounties();
        
        _counties = lcounties;
}

/** Returns an array of County Objects
public Object[] getCounties() {
        return _counties.toArray();
}
-------------------------------------------------------

This is what a County looks like.  It's really just a simple bean.

---------------------------------------------------
import java.util.List;
public class County {
    
    
    private int _countyID;
    private String _countyName;
    /** Creates a new instance of County */
    public County() {
    }
    
    public County(int id, String name) {
        _countyID = id;
        _countyName = name;
    }
    
    public void setCountyID(int id) {
        _countyID = id;
    }
    
    public void setCountyName(String name) {
        _countyName = name;
    }
    
    public int getCountyID() {
        return _countyID;
    }
    
    public String getCountyName() {
        return _countyName;
    }
    
    public static County findCounty(List countyList,int countyID) {
        for(int i=0;i<countyList.size();i++) {
            County county = (County)countyList.get(i);
            if(county.getCountyID() == countyID)
                return county;
        }
        return new County();
    }
}
--------------------------------------------------

-- 
Eric C. Davis
Programmer/Analyst II
Georgia Department of Transportation
Office of I.T. Applications
Web Applications Group
404.463.2860.199
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Davis, Eric
Sent: Wednesday, March 31, 2004 3:58 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Webservice - Axis deserializer error


Yeah, I don't know.

I'm just trying to help my co-worker figure this out; I have very little
experience consuming webservices in CF. 

Apparently, that ArrayOf_Counties idea is a no-go, as it's not a
supported type in SOAP. Seems odd to me that you can't define a type to
return when you can define so many other custom properties &c. Oh, well,
it was just a thought anyway.

I'll try and get the Java method code from him.

-- 
Eric C. Davis
Programmer/Analyst II
Georgia Department of Transportation
Office of I.T. Applications
Web Applications Group
404.463.2860.199
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Sean A Corfield
Sent: Wednesday, March 31, 2004 3:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Webservice - Axis deserializer error


On Mar 31, 2004, at 11:10 AM, Davis, Eric wrote:
> Would spelling out an ArrayOf_Counties complexType definition help, do
> you think?

OK, now I'm puzzled. Your WSDL defines a method getCounties() which, in 
Java, looks like this:

     public java.lang.Object[] getCounties() throws 
java.rmi.RemoteException;

What does the underlying Java code really look like?

I guess I'm having a hard time figuring out why CF would be trying to 
deserialize County given the method signature in the stub...

Regards,
Sean

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to