cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wolf, Chris \(IT\)" <Chris.W...@morganstanley.com>
Subject RE: CXF query URL for schema-only?
Date Mon, 05 Jan 2009 21:23:56 GMT
Dan,

This time, looking at the protocol trace, I see the response sends
back the wsdl with the schema in-line via "Transfer-Encoding: chunked",
all in a single chunk.  There was no separate request for the imported
schema.

I tried "?xsd" with the fully-qualified schemaLocation and that had the 
same error.  I'll try to find the original test case and/or look at the 
source code.

Thanks,

  -Chris W.

-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org] 
Sent: Monday, January 05, 2009 3:00 PM
To: users@cxf.apache.org
Cc: Wolf, Chris (IT)
Subject: Re: CXF query URL for schema-only?


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(WSDLQuery
> Ha
> ndler.java:181)
>
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletContr
> ol
> ler.java:147)
>
> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXF
> Se
> rvlet.java:174)
>
> org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFS
> er
> 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:dkulp@apache.org]
> Sent: Monday, January 05, 2009 11:33 AM
> To: users@cxf.apache.org
> 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
> dkulp@apache.org
> 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
dkulp@apache.org
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.

Mime
View raw message