Do a get on the wsdl (?wsdl) and see what we output.    Most likely, it will 
be something like:
http://localhost:8080/demo/services/demosvc?xsd=/var/tmp/demotypes.xsd

Basically, whatever you put in the schemaLocation is uses as the xsd param.

Dan



On Monday 05 January 2009 2:56:09 pm Wolf, Chris (IT) wrote:
> Dan,
>
> I thought there was such a request technique.  In the WSDL I'm dealing
> with,
> we have:
> <wsdl:definitions...
>    <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
>           targetNamespace="urn:com:msdw:xyz:demo"
>                 xmlns:tns="urn:com:msdw:xyz:demo"
>               xmlns:types="urn:com:msdw:xyz:demo:types"
>                            elementFormDefault="unqualified"
> version="1.0">
>          <xs:import namespace="urn:com:msdw:xyz:demo:types"
>                schemaLocation="/var/tmp/demotypes.xsd"/>
> [...]
>
>
> ...but when I try to request the standalone schema, via:
>
> http://localhost:8080/demo/services/demosvc?xsd=demotypes.xsd
>
> ...I get the cxf servlet error:
>
> org.apache.cxf.transport.http.WSDLQueryException: Could not find xsd
> null
>
> org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHa
> ndler.java:181)
>
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletControl
> ler.java:147)
>
> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFSe
> rvlet.java:174)
>
> org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFSer
> vlet.java:156)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> Or did I misunderstand what you were suggesting with "?xsd=MySchema.xsd"
> ?
>
> Thanks,
>
>    -Chris W.
>
> -----Original Message-----
> From: Daniel Kulp [mailto:[email protected]]
> Sent: Monday, January 05, 2009 11:33 AM
> To: [email protected]
> Cc: Wolf, Chris (IT)
> Subject: Re: CXF query URL for schema-only?
>
>
> In general, for wsdl we create on the fly, we embed the schema into the
> wsdl
> so there isn't any xsd separately available.    It's one of those things
> that
> we probably should provide a flag for somehow.   The code supports
> putting
> each schema namespace into it's own file (see the -createxsdimports flag
> on java2ws), there just isn't a way to set it for wsdl's generated at
> runtime.
>
> For wsdl first cases, you can do "?xsd=MySchema.xsd" or whatever to get
> the named schemas that the wsdl imports.
>
> Dan
>
> On Monday 05 January 2009 10:52:00 am Wolf, Chris (IT) wrote:
> > I know there are several special query strings for WSDL and
> > JavaScript, i.e. :
> >
> > http://host/service?wsdl
> > http://host/service?js
> >
> > ...but I thought there was also one for getting the schema part of the
> >
> > WSDL, i.e. something like http://host/service?xsd (that doesn't work)
> > Is this true?  What are all the special query URLs unserstod by JAX-WS
> >
> > and/or CXF?
> >
> > Thanks,
> >
> >     -Chris W.
> > --------------------------------------------------------
> >
> > NOTICE: If received in error, please destroy and notify sender. Sender
> >
> > does not intend to waive confidentiality or privilege. Use of this
> > email is prohibited when received in error.
>
> --
> Daniel Kulp
> [email protected]
> http://dankulp.com/blog
> --------------------------------------------------------
>
> NOTICE: If received in error, please destroy and notify sender. Sender does
> not intend to waive confidentiality or privilege. Use of this email is
> prohibited when received in error.



-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to