Direct To Webservice and reading out values
Direct To Webservice and reading out values
- Subject: Direct To Webservice and reading out values
- From: Ute Hoffmann <email@hidden>
- Date: Tue, 30 Dec 2003 17:55:29 +0100
Hallo,
I did read in the archives but am still struck. I have a very simple
testapp which provides part of a database as a webservice and was
created with Direct To Webservice.
Now I would like to read out the passed values. In this simple case the
Webservice returns only one row from the database and only one value
from this single row.
Unfortunately I somehow can't read out this simple value.
I have to read the value from the xml, which is described by the wsdl.
I tried to figure out how by using the Amazon Client App. But when I
compared the WSDL created by my app and the one from amzon, things look
much more transparent at amazon. There is a clearly defined array which
contains all its keys, and this structure is repeated by the java
classes reading out the Values....
Direct To Webservice gives me something like:
- <schema
targetNamespace="http://www.apple.com/webobjects/webservices/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns="http://www.w3.org/2001/XMLSchema">
- <complexType name="EOGlobalID">
<element name="entityName" type="xsd:string" />
<element name="primaryKeys" type="lang:ArrayOf_xsd_any" />
</complexType>
<element name="EOGlobalID" type="tns:EOGlobalID" />
- <complexType name="EOEnterpriseObject">
<element name="entityName" type="xsd:string" />
<element name="globalID" type="webobjects:EOGlobalID" />
<element name="properties" type="soapenc:Struct" />
</complexType>
</schema>
Where do I start from this to read out the values? I can read the
objects [] into an NSArray. And there is exact one entry, as should be.
Now in the amazon example the values are accessed by typecasting them
to "ProduktInfos", which does appear in the wsdl as well. Whenever I
try to typecast to a class which would deserialize my entry (but which
does not appear in the wsdl, as there does not appear any sensible name
for a class) I get an exception. Can anyone please point me to the hook
how to pass this one row of data to its deserialising class? It is
probably very simple, but I do not see it.
Thanks for any help,
Regards,
Ute
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.