HighDots Forums  

Problems accessing a XML-file

Javascript JavaScript language (comp.lang.javascript)


Discuss Problems accessing a XML-file in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bjoern Hoehrmann
 
Posts: n/a

Default Re: Problems accessing a XML-file - 06-09-2008 , 04:05 PM






* K Viltersten wrote in comp.lang.javascript:
Quote:
I've been laborating with an external package
(ExtJS, i don't know how well known it is).
When i try to run their examples from their
site, everything works well. When i run the
same example from my local host, i get the
following error message in FireBug.

System.Web.HttpException: HTTP-verb POST used
to access the path /DynamicFeedback_test01/xm
l-form.xml is invalid (not allowed?)
Your server rejects the POST request. You have to reconfigure your
server to accept it (if that is what you want). Consult your server
manual for how to do that.

Quote:
The strange thing is that when i enter this:
http://localhost/.../xml-form.xml
i get to see the file. However, when the very
same file is requested by the form, i get the
error instead.
When you enter the address in the browser's address bar, it will use
a GET request, not a POST, and your server is configured to allow the
GET request.
--
Björn Höhrmann · mailto:bjoern (AT) hoehrmann (DOT) de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/


Reply With Quote
  #2  
Old   
K Viltersten
 
Posts: n/a

Default Problems accessing a XML-file - 06-09-2008 , 04:11 PM






I've been laborating with an external package
(ExtJS, i don't know how well known it is).
When i try to run their examples from their
site, everything works well. When i run the
same example from my local host, i get the
following error message in FireBug.

System.Web.HttpException: HTTP-verb POST used
to access the path /DynamicFeedback_test01/xm
l-form.xml is invalid (not allowed?)

The strange thing is that when i enter this:
http://localhost/.../xml-form.xml
i get to see the file. However, when the very
same file is requested by the form, i get the
error instead.

I've asked on the forum of ExtJS but they
didn't know how to help me. It was said "it
should work".

I feel that this group is a little of a long
shot but i have basically nowhere else to go
in order to get rid of the problem.

Any suggestion is very welcome.

--
Regards
Konrad Viltersten
--------------------------------
sleep - a substitute for coffee for the poor
ambition - lack of sense to be lazy


Reply With Quote
  #3  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default Re: Problems accessing a XML-file - 06-10-2008 , 11:14 AM



K Viltersten escribió:
Quote:
I've been laborating with an external package (ExtJS, i don't know how
well known it is). When i try to run their examples from their site,
everything works well. When i run the same example from my local host, i
get the
following error message in FireBug.

System.Web.HttpException: HTTP-verb POST used to access the path
/DynamicFeedback_test01/xm
l-form.xml is invalid (not allowed?)

The strange thing is that when i enter this:
http://localhost/.../xml-form.xml
Create a POST form and check whether you can get the file that way:

<form action="http://localhost/.../xml-form.xml" method="post">
<input type="submit">
</form>

If you can't, then it's something related to your web server's
configuration (it's not accepting POST requests).


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--


Reply With Quote
  #4  
Old   
Bart Van der Donck
 
Posts: n/a

Default Re: Problems accessing a XML-file - 06-12-2008 , 02:30 AM



Bjoern Hoehrmann wrote:

Quote:
* K Viltersten wrote in comp.lang.javascript:

I've been laborating with an external package
(ExtJS, i don't know how well known it is).
When i try to run their examples from their
site, everything works well. When i run the
same example from my local host, i get the
following error message in FireBug.

System.Web.HttpException: HTTP-verb POST used
to access the path /DynamicFeedback_test01/xm
l-form.xml is invalid (not allowed?)

Your server rejects the POST request. You have to reconfigure your
server to accept it (if that is what you want). Consult your server
manual for how to do that.
It could be possible that the web server accepts POST-requests, but
not in certain directories or for certain file extensions. Mostly
there is no need to perform POST-requests to XML-files. Maybe that's
why it's blocked.

I would suggest to rename 'xml-form.xml' to 'xml-form.asp' and add

Content-Type: text/xml

to see if that works for the original poster. The better solution is
obviously to alter server config file in order to allow POST for XML.

Hope this helps,

--
Bart


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.