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

View: New views
6 Messages — Rating Filter:   Alert me  

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

by solmyr72 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

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

by Dan Diephouse :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <http://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
> <http://us.rd.yahoo.com/mail_us/taglines/postman11/*http://us.rd.yahoo.com/evt=39666/*http://voice.yahoo.com>
> 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


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

by solmyr72 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

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

by Ciaran-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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)

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

by Michael Vorburger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Same issue also occurs when working "offline" (laptop, running
provider on localhost, consuming localhost).  The env described for
production is very common IMHO.

> Not sure that this is possible at the moment. Could you please file a
> JIRA issue for this? Thanks!

I don't think there is one yet (searched, or did I miss it?) so I
opened http://jira.codehaus.org/browse/XFIRE-505 as "Should resolve
w3.org etc. references without Internet access"


On 6/21/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.
>
>

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

    http://xircles.codehaus.org/manage_email


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

by Michael Vorburger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I looked some more into this, and believe the cause of this, and
solution, is something else.. please have a look at the updated
http://jira.codehaus.org/browse/XFIRE-505 (and by now fairly long;
sorry for the "monolog" !) if interested in this topic.

Sol myr, are you still seeing this issue? Miss-spelt/wrong service
URL? If not, what does your customized XMLResolver's resolveEntity
actually try to find? Always
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd as I found (see
XFIRE-505), or something else?

Regards,
Michael


On 6/21/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.
>
>

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

    http://xircles.codehaus.org/manage_email