« Return to Thread: : Looking for xsd (schema) on local file system, instead on the web ?

Re: : Looking for xsd (schema) on local file system, instead on the web ?

by Ciaran-3 :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Just out of interest is this only an issue when using a particular XFire configuration, as I just panicked and tested my setup and discovered that Tomcat fell over resolving web-app_2_3.dtd.  Which I downloaded and stuck in my web-inf, and modified my web.xml to use a relative path for the file, and it all started working?

I'm using the JAXBWsdlBuilder, could this be why it works for me ? Sorry for what is perhaps just a daft question ?

- Ciaran

On 6/20/06, sol myr <solmyr72@...> wrote:
Hi,
Thanks for the help.
 
I finally found some ugly way to do it... It works, but I'm hoping there's a better way...
My current workaround is:
 
1 - Create client (dynamic proxy), taking care to set the  property XFire.STAX_INPUT_FACTORY, pointing to your own 'MyInputFactory' (note it's a string = the *name* of the class).
 
2 - The above mentioned 'MyInputFactory' can rely on the standard implementation of  WstxInputFactory, only it needs to call  WstxInputFactory.setXMLResolver to set your customized XMLResolver (which may rely on the file system).
I tried to inherit from WstxInputFactory, but since it's final, I ended up wrapping it .
 
Thanks again.


Dan Diephouse <dan@...> wrote:
Not sure that this is possible at the moment. Could you please file a
JIRA issue for this? Thanks!
- Dan

sol myr wrote:
> Hi,
>
> We're trying to run XFire (client + server) on machines that don't
> have any internet access (due to security reasons).
> Client & server are, of course, connected internally (via intrAnet).
>
> Unfortunatelly, we're getting an XFireFault.
> According to the error message, it looks like stax EntityResolver is
> trying to connect to www.w3.org - I'm guessing

> it's trying to retrieve some of the standard WS schemas.
>
> Can you configure XFire to retrieve such schemas from the local file
> system, instead of the web ?
> (I know it can be done with stax / woodstox , by setting the
> EntityResolver... but is there an easy way to do it on the XFire
> level ? )
>
> Thanks.
>
>
>
>
>
> ------------------------------------------------------------------------
> Ring'em or ping'em. Make PC-to-phone calls as low as 1ยข/min
>
> with Yahoo! Messenger with Voice.


--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog


---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.




--
- Ciaran
(I now have far too many G-Mail invites available, anyone who wants one, gets one)

 « Return to Thread: : Looking for xsd (schema) on local file system, instead on the web ?