Sounds great. 

Should I be using the Axis2 java2wsdl generator, or CXF's version? I can't 
help feeling that I should let Axis2 generate it... And I couldn't get the 
java2wsdl task to work :) Take a look:

    <java classname="org.apache.cxf.tools.java2wsdl.JavaToWSDL" 
fork="true">
       <arg value="-o"/>
       <arg value="${dist.dir}/Query.wsdl"/>
       <arg value="com.db.websso.ws.service.Query"/>
       <classpath>
          <path refid="classpath.cxf"/>
       </classpath>
    </java>

Anything look obviously wrong with that?

As a matter of interest, are there ant tasks (I copied that example from 
the docs)?



John Baker
-- 
Web SSO 
IT Infrastructure 
Deutsche Bank London

URL:  http://websso.cto.gt.intranet.db.com




Daniel Kulp <[EMAIL PROTECTED]> 
29/02/2008 17:34
Please respond to
[email protected]


To
[email protected]
cc
John-M Baker/ext/[EMAIL PROTECTED]
Subject
Re: WSDLtoJava






On Friday 29 February 2008, John-M Baker wrote:
> Yep, I agree. Or rather, Axis2's java2wsdl has helpfully put that
> namespace in the file. The -p option obviously resolved it for me. I
> assume Axis2 is behaving correctly by generating this WSDL given
> returning a Map must be a fairly common feature, yet 'claiming' that
> namespace seems to be a 'bad thing'?
>
>
> John Baker

Actually, passing a Map is actually not a common thing to do with 
JAX-WS/JAXB as it's a non-trivial thing to do with JAXB. 

Actually, looking at your WSDL, Axis2 isn't doing it correctly either. 
If you look at the schema:

            <xs:complexType name="Map">
                <xs:sequence>
                    <xs:element minOccurs="0"
                                                 name="empty" 
                                                 type="xs:boolean"/>
                </xs:sequence>
            </xs:complexType>

That sure doesn't describe a usefule map to me.    On the wire, it will 
just say if it's empty or not.   Not too useful.

Anyway, with CXF 2.1 snapshots (our trunk) you can pass maps.  However, 
you have to defines some JAXB types that completely model the schema 
that you want and then an adapter to convert the Map to/from those 
types.   Maps are not "automatic".     The latest snapshots have a 
sample (java_first_jaxws) that show this in action.


-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog



---

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.

Reply via email to