Thank you all  for the help:

I did the next configuration in apache.conf to preflight request and all is ok.

<IfModule mod_axis2.c>
    Axis2RepoPath /usr/lib/axis2
    Axis2LogFile  /var/log/axis2/axis2.log
    Axis2LogLevel crit
    Axis2ServiceURLPrefix services
    <Location /axis>
        SetHandler axis2_module
        <Limit OPTIONS>
          SetEnvIf Origin localhost|areyes|null ref
          Header always set Access-Control-Allow-Methods POST,OPTIONS
          Header always set Access-Control-Allow-Headers soapaction
          Header always set Access-Control-Allow-Origin * env=ref
          Header always set Content-Type application/xml
          RewriteEngine On
          RewriteCond %{REQUEST_METHOD} OPTIONS
          RewriteRule .* / [R=200,L]
        </Limit>
    </Location>
</IfModule>


I think it's important include it in the axis2c documentation.

Atanacio Reyes


________________________________
 From: Damitha Kumarage <dami...@wso2.com>
To: Apache AXIS C User List <c-user@axis.apache.org> 
Cc: Apache AXIS C User List <axis-c-u...@ws.apache.org> 
Sent: Monday, November 21, 2011 3:21 AM
Subject: Re: 
 
Axis2/C server can be configured to run with Apache2(recommended instead of 
standalone Axis2/C server).
Since Apache2 can be configured for preflighted requests your requirement 
should be possible.

Damitha
Atanacio Reyes wrote:
> Hi:
> 
> can axis2c respond to preflight request?
> 
> if a remote browser do a OPTIONS request and then a POST request how does 
> axis2c can respond to that?
> 
> it's possible?


-- __________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscr...@axis.apache.org
For additional commands, e-mail: c-user-h...@axis.apache.org
  • [no subject] Atanacio Reyes
    • AW: Stadelmann Josef
    • Re: Damitha Kumarage
      • Re: preflight request Atanacio Reyes

Reply via email to