This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Mozilla XML > April 2005 > webScriptAccess
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| No One 2005-04-04, 12:35 pm |
| Question 1.
During development it is not practical to serve my SOAP service from
the same port as my script files that access it. How am I able to
configure mozilla to allow a script served on one port to access a
service on another port. I am running mozilla 1.8a6.
Question 2.
Is the "New Security Model" proposal linked to from mozilla's web
services page enabled in mozilla? If so, wouldn't the following file
named "web-scripts-access.xml" served from localhost on port 80 from the
same directory as the scripts that are trying to access a service on
port 9900 satisfy mozilla's new security model? If the answer is "NO"
because I haven't provided a corresponding <wsa:delegate> directive in a
file named "web-scripts-access.xml" on port 9900, please refer to
Question 1. In other words, many soap implementations come with an http
server builtin to aid in development, but one which can't easily be
configured to serve anything other than the soap service.
<?xml version="1.0" encoding="UTF-8"?>
<wsa:webScriptAccess xmlns:wsa="http://www.mozilla.org/2002/soap/security">
<wsa:allow type="soap" from="http://localhost:9900"/>
<wsa:allow type="soapv" from="http://localhost:9900"/>
<wsa:allow type="load" from="http://localhost:9900"/>
</wsa:webScriptAccess>
Thanks,
Derek
| |
| Doron Rosenberg 2005-04-04, 12:35 pm |
| No One wrote:
> Question 1.
> During development it is not practical to serve my SOAP service from
> the same port as my script files that access it. How am I able to
> configure mozilla to allow a script served on one port to access a
> service on another port. I am running mozilla 1.8a6.
You could develop the script on your harddisk. file:// should allow you
to conect to anywhere.
>
> Question 2.
> Is the "New Security Model" proposal linked to from mozilla's web
> services page enabled in mozilla? If so, wouldn't the following file
> named "web-scripts-access.xml" served from localhost on port 80 from the
> same directory as the scripts that are trying to access a service on
> port 9900 satisfy mozilla's new security model? If the answer is "NO"
> because I haven't provided a corresponding <wsa:delegate> directive in a
> file named "web-scripts-access.xml" on port 9900, please refer to
> Question 1. In other words, many soap implementations come with an http
> server builtin to aid in development, but one which can't easily be
> configured to serve anything other than the soap service.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsa:webScriptAccess xmlns:wsa="http://www.mozilla.org/2002/soap/security">
> <wsa:allow type="soap" from="http://localhost:9900"/>
> <wsa:allow type="soapv" from="http://localhost:9900"/>
> <wsa:allow type="load" from="http://localhost:9900"/>
> </wsa:webScriptAccess>
>
> Thanks,
> Derek
The answer is yes, it is on by default since 1.4 I believe. What you
should do is just have this:
<?xml version="1.0" encoding="UTF-8"?>
<wsa:webScriptAccess
xmlns:wsa="http://www.mozilla.org/2002/soap/security" />
Being empty, it will allow anyone to connect.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|