Re: complex types again

Marc Logemann <[email protected]> Tue, 2 Dec 2003 18:28:24 +0100
Newsgroups gmane.comp.java.enhydra.ksoap
Message-ID <t0oYjtzL7SwHTDtCdIT6TIbYSFBRSOkP4eplNHtn89Z@akmail>
Hi,

thanks Stefan, this was a good hint. Now i am getting the Error "Unknown Property: foo", which is a quite
usable error message. Can it be that i have to completely define the returning struct as a class?

As i told you, i just defined a subset of the returning struct:

public class GolfCourse implements KvmSerializable {

    String name;
    String tee;

    /*
     *  Used by KSOAP Implementation methods
     */
    // private static int PROP_COUNT = 2;

	 private static PropertyInfo PI_name =
		new PropertyInfo("name",ElementType.STRING_CLASS);

	 private static PropertyInfo PI_tee   =
		new PropertyInfo("tee",ElementType.STRING_CLASS);

	 private static PropertyInfo[] PI_PROP_ARRAY = {PI_name,PI_tee};
[..]

---

only "name" and "tee". But there are a lot more attributes coming back from the SOAP call. So in my case, "foo"
is the first element in the struct, which is not defined in the KvmSerializable. Is there a chance to tell the
kSOAP framework to not deserialize every struct element? ;-)


> Marc Logemann wrote:
>  >
>  > where do you see urn:GolfCourse in the doc? I only see GolfCourse as
> a xsi:Type

> I am sorry, I had mixed up the prefix and everything.

> ns2, the prefix used for GolfCourse (the complex type) is bound to
> urn:BeanService...


---
regards
Marc Logemann
check http://www.logemann.org