On 2011-1-19, at 下午10:56, Christian Schneider wrote:
That´s great. So the download part is not necessary for meteora.
No, I think jax-ws-catalog.xml is still necessary for meteora, as we
just save a local copy of ws-addr.xsd, but still need a catalog file
to specify the remote--local map, just like we do in tools/wsdlto/
frontend/jaxws module.
In this project there is also a spring.schemas file to map the url
to the file. I have no idea though how too activate it for his case
as he does not seem to use spring.
The spring.schemas in common/schemas map http\://schemas.xmlsoap.org/
ws/2004/08/addressing to addressing.xsd, this is the old version
addressing schema.
And as you said, spring.schemas only work for spring files, it doesn't
work if we parse a wsdl/xsd.
Freeman
Christian
Am 19.01.2011 15:49, schrieb Freeman Fang:
Hi Christian,
http://www.w3.org/2006/03/addressing/ws-addr.xsd is used in cxf,
but we needn't store http://www.w3.org/2006/03/addressing/ws-
addr.xsd in cxf/rt/ws/addr, we already store ws-addr.xsd in cxf/
common/schemas, which could be shared across more modules(including
the rt/ws/addr).
Freeman
On 2011-1-19, at 下午10:29, Christian Schneider wrote:
Hi Freeman,
I have looked into cxf/rt/ws/addr
In this project we already have two other ws adressing realted
schemas. Would it make sense to also strore the
http://www.w3.org/2006/03/addressing/ws-addr.xsd there?
Or is it something we normally do not need in cxf.
Christian
Am 19.01.2011 15:18, schrieb Freeman Fang:
On 2011-1-19, at 下午10:05, meteora28 wrote:
Thank you for your answers.
I am not sure if I am on the right way. I write down some more
information
to explain.
When I want to run my application without an internet
connection, I get the
following message:
INFO: Creating Service
{http://www.onvif.org/ver10/device/wsdl}DeviceService from class
org.onvif.ver10.device.wsdl.Device
Exception in thread "AWT-EventQueue-0"
org.apache.ws.commons.schema.XmlSchemaException: Unable to
locate imported
document at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd',
relative
to 'schema7.xsd'.
Well, you can download http://www.w3.org/2006/03/addressing/ws-addr.xsd
before hand and save it locally, than you can use XML catalog,
which can map a remote url to a local relative path file, this
can avoid internet download during runtime, you just need a META-
INF/jax-ws-catalog.xml on your classpath, you may need google
lit bit to get more details how "XML catalog" works.
Btw, cxf use this way to avoid downloading some xsd files
remotely even during build time. You can take a look at one
previous commit[1], just see the "text changed" part and new
added files, get some rough idea how to write your own jax-ws-
catalog.xml.
[1]http://svn.apache.org/viewvc?view=revision&revision=1025804
Freeman
With an internet connection it works fine.
Here some more information.
I built a java client with wsdl to java from an existing wsdl.
this worked
only with cxf. no other framework could parse it because there
is no service
element.
so I have to set the address and the service class in my code.
this works
fine.
I think while this happens the prgramm is importing the
ressources.
has any one an idea to import them before using the java code,
for example
while using wsdl2java?
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-without-internet-connection-tp3347755p3347889.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
----
http://www.liquid-reality.de
--
----
http://www.liquid-reality.de
--
Freeman Fang
------------------------
FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org