You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Gus Power <gu...@gmail.com> on 2008/09/16 18:31:28 UTC

Binding Map in http://xml.apache.org/xml-soap namespace

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.

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.

Re: Binding Map in http://xml.apache.org/xml-soap namespace

Posted by Gus Power <gu...@gmail.com>.
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 <dk...@apache.org> 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 <dk...@apache.org> 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
> > > dkulp@apache.org
> > > http://www.dankulp.com/blog
>
>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
>

Re: Binding Map in http://xml.apache.org/xml-soap namespace

Posted by Daniel Kulp <dk...@apache.org>.
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 <dk...@apache.org> 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
> > dkulp@apache.org
> > http://www.dankulp.com/blog



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Binding Map in http://xml.apache.org/xml-soap namespace

Posted by Benson Margulies <bi...@gmail.com>.
Can you concoct a trivial Axis service, pull out a WSDL, and extract
the XML schema therefrom?

On Wed, Sep 17, 2008 at 3:52 AM, Gus Power <gu...@gmail.com> wrote:
> Apparently Axis 1.4 handles this using its MapSerializer (
> http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/ser/MapSerializer.html
> )
> We were hoping to use CXF and GroovyWS rather than Axis :(
>
> On Tue, Sep 16, 2008 at 8:11 PM, Daniel Kulp <dk...@apache.org> 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
>> dkulp@apache.org
>> http://www.dankulp.com/blog
>>
>

Re: Binding Map in http://xml.apache.org/xml-soap namespace

Posted by Gus Power <gu...@gmail.com>.
Apparently Axis 1.4 handles this using its MapSerializer (
http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/ser/MapSerializer.html
)
We were hoping to use CXF and GroovyWS rather than Axis :(

On Tue, Sep 16, 2008 at 8:11 PM, Daniel Kulp <dk...@apache.org> 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
> dkulp@apache.org
> http://www.dankulp.com/blog
>

Re: Binding Map in http://xml.apache.org/xml-soap namespace

Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://www.dankulp.com/blog