The following xsd did the trick: <schema elementFormDefault="qualified" targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <complexType name="Item"> <all> <element name="key" type="xsd:anyType"/> <element name="value" type="xsd:anyType"/> </all> </complexType> <complexType name="Map"> <sequence> <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns4:Item"/> </sequence> </complexType> </schema>
Thanks for your help, Gus. On Wed, Sep 17, 2008 at 8:49 PM, Daniel Kulp <[EMAIL PROTECTED]> wrote: > On Wednesday 17 September 2008 3:52:40 am Gus Power wrote: > > Apparently Axis 1.4 handles this using its MapSerializer ( > > > http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/ser/MapSeri > >alizer.html ) > > We were hoping to use CXF and GroovyWS rather than Axis :( > > Well, this is Axis 1 and is using soap-encoding which isn't supported by > CXF > (or pretty much any other modern WS toolkit). > > That said, if you can craft a schema/wsdl for it, you may be able to get it > to > work. > > Dan > > > > > > > On Tue, Sep 16, 2008 at 8:11 PM, Daniel Kulp <[EMAIL PROTECTED]> wrote: > > > On Tuesday 16 September 2008 12:31:28 pm Gus Power wrote: > > > > O hai! > > > > > > > > We're trying to call a webservice which uses a *Map* datatype as > found > > > > in the http://xml.apache.org/xml-soap namespace. > > > > > > I've never seen this before. Thus, the answer is more or less "no". > > > > > > That said, if you had a schema for it, you could probably generate some > > > JAXB > > > types that would map it fine. > > > > > > Dan > > > > > > > e.g. <wsdl:definitions targetNamespace="... *xmlns:tns4=" > > > > http://xml.apache.org/xml-soap"* xmlns:wsdl=" > > > > http://schemas.xmlsoap.org/wsdl.../> > > > > > > > > Does CXF support this? If so, could someone please give us a quick > > > > > > example > > > > > > > or some steps to take us forward? > > > > > > > > Thanks! > > > > > > > > Gus & crew. > > > > > > -- > > > Daniel Kulp > > > [EMAIL PROTECTED] > > > http://www.dankulp.com/blog > > > > -- > Daniel Kulp > [EMAIL PROTECTED] > http://www.dankulp.com/blog >
