Re: Web Services
Re: Web Services
- Subject: Re: Web Services
- From: Fred McCann <email@hidden>
- Date: Mon, 14 Mar 2005 13:42:52 -0800 (PST)
I
could get over using NSDictionaries. It's not perfect but it should
work. The problems I'm seeing with Core Web Services is that it's not
even getting the dictionaries right.
For example, I made a simple java bean and exposed it with Apache Axis:
<complexType name="Widget">
<sequence>
<element name="code" nillable="true" type="soapenc:string"/>
<element name="color" nillable="true" type="soapenc:string"/>
<element name="count" type="xsd:int"/>
<element name="date" nillable="true" type="xsd:dateTime"/>
<element name="description" nillable="true" type="soapenc:string"/>
<element name="name" nillable="true" type="soapenc:string"/>
<element name="serial" nillable="true" type="soapenc:int"/>
</sequence>
</complexType>
When the application makes a response for a specific Widget, it gets
this:
HTTP/1.1 200 OK
Content-Type: text/xml;charset=utf-8
Date: Fri, 11 Mar 2005 23:59:16 GMT
Server: Apache-Coyote/1.1
Connection: close
<soapenv:envelope
xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="">
<soapenv:body>
<ns1:loadresponse
soapenv:encodingstyle="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="">
<loadreturn href="" />
</ns1:loadresponse>
<multiref id="id0" soapenc:root="0"
soapenv:encodingstyle="
http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:Widget"
xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="urn:wstest">
<code xsi:type="soapenc:string">
WI2314</code>
<color xsi:type="soapenc:string">
blue
</color>
<count href="" />
<date xsi:type="xsd:dateTime">
2004-12-12T05:00:00.000Z
</date>
<description xsi:type="soapenc:string">
Foo barr
</description>
<name xsi:type="soapenc:string">
Tape Recorder
</name>
<serial href="" />
</multiref>
<multiref id="id2" soapenc:root="0"
soapenv:encodingstyle="
http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="soapenc:int"
xmlns:soapenc="">
56
</multiref>
<multiref id="id1" soapenc:root="0"
soapenv:encodingstyle="
http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="xsd:int"
xmlns:soapenc="">
12
</multiref>
</soapenv:body>
</soapenv:envelope>
The NSDictionary that I get back from Core Webservices has nil values
for all the int types. I have no clue what to do about that. Also, I
had issues in another test attempting to send long types. How are you
getting dictionaries?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden