On Fri, Mar 18, 2011 at 10:09 PM, Sanjiva Weerawarana <sanj...@wso2.com>wrote:
> Amila did you add a new Axis2 constant?? What is it for? > This is to support SQS Client available in the Amazon. SQS has a soap interface. Apart from that most of the Amazon API supports the following way of direct http invocations. POST /services/QueueService/CreateQueue HTTP/1.1 Content-Type: application/x-www-form-urlencoded; charset=utf-8 User-Agent: Amazon SQS Java Library Content-Length: 206 Host: 127.0.0.1:8088 DefaultVisibilityTimeout=30&Action=CreateQueue&AWSAccessKeyId=admin&QueueName=myQueue1&SignatureVersion=0&Version=2009-02-01&Signature=C0IJzE8%2BHh8X9t5o3NAuCt7pQoI%3D&Timestamp=2011-03-19T05%3A42%3A29.764Z In this case in order to do the authentication authentication hander should read the Action and Timestamp values. org.apache.axis2.builder.XFormURLEncodedBuilder read these properties from the input stream and put to parameterMap. extractParametersFromRequest(parameterMap, query, queryParameterSeparator, (String) messageContext.getProperty( Constants.Configuration.CHARACTER_SET_ENCODING), inputStream) but does not save to the message context. So we save this to message context under the given parameter name to be used in SQS Authentication handler. messageContext.setProperty(Constants.REQUEST_PARAMETER_MAP, parameterMap); In fact this is used in message building for the other requests as well. thanks, Amila. > > Sanjiva. > > On Fri, Mar 18, 2011 at 2:31 PM, Amila Suriarachchi <am...@wso2.com>wrote: > >> Did you get an axis2 update? >> >> thanks, >> Amila. >> >> On Fri, Mar 18, 2011 at 2:24 PM, Afkham Azeez <az...@wso2.com> wrote: >> >>> [INFO] Executed tasks >>> [INFO] [compiler:compile {execution: default-compile}] >>> [INFO] Compiling 57 source files to >>> /Users/azeez/projects/wso2/org/trunk/carbon/components/messagebox/org.wso2.carbon.messagebox.sqs/target/classes >>> [INFO] ------------------------------------------------------------- >>> [ERROR] COMPILATION ERROR : >>> [INFO] ------------------------------------------------------------- >>> [ERROR] >>> /Users/azeez/projects/wso2/org/trunk/carbon/components/messagebox/org.wso2.carbon.messagebox.sqs/src/main/java/org/wso2/carbon/messagebox/sqs/internal/dispatcher/SQSRestBasedHandler.java:[30,75] >>> cannot find symbol >>> symbol : variable REQUEST_PARAMETER_MAP >>> location: class org.apache.axis2.Constants >>> >>> [ERROR] >>> /Users/azeez/projects/wso2/org/trunk/carbon/components/messagebox/org.wso2.carbon.messagebox.sqs/src/main/java/org/wso2/carbon/messagebox/sqs/internal/dispatcher/SQSActionBasedDispatcher.java:[36,75] >>> cannot find symbol >>> symbol : variable REQUEST_PARAMETER_MAP >>> location: class org.apache.axis2.Constants >>> >>> [ERROR] >>> /Users/azeez/projects/wso2/org/trunk/carbon/components/messagebox/org.wso2.carbon.messagebox.sqs/src/main/java/org/wso2/carbon/messagebox/sqs/internal/module/AuthenticationHandler.java:[46,79] >>> cannot find symbol >>> symbol : variable REQUEST_PARAMETER_MAP >>> location: class org.apache.axis2.Constants >>> >>> [INFO] 3 errors >>> [INFO] ------------------------------------------------------------- >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Compilation failure >>> >>> /Users/azeez/projects/wso2/org/trunk/carbon/components/messagebox/org.wso2.carbon.messagebox.sqs/src/main/java/org/wso2/carbon/messagebox/sqs/internal/dispatcher/SQSRestBasedHandler.java:[30,75] >>> cannot find symbol >>> symbol : variable REQUEST_PARAMETER_MAP >>> location: class org.apache.axis2.Constants >>> >>> /Users/azeez/projects/wso2/org/trunk/carbon/components/messagebox/org.wso2.carbon.messagebox.sqs/src/main/java/org/wso2/carbon/messagebox/sqs/internal/dispatcher/SQSActionBasedDispatcher.java:[36,75] >>> cannot find symbol >>> symbol : variable REQUEST_PARAMETER_MAP >>> location: class org.apache.axis2.Constants >>> >>> /Users/azeez/projects/wso2/org/trunk/carbon/components/messagebox/org.wso2.carbon.messagebox.sqs/src/main/java/org/wso2/carbon/messagebox/sqs/internal/module/AuthenticationHandler.java:[46,79] >>> cannot find symbol >>> symbol : variable REQUEST_PARAMETER_MAP >>> location: class org.apache.axis2.Constants >>> >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] For more information, run Maven with the -e switch >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 65 minutes 20 seconds >>> [INFO] Finished at: Fri Mar 18 12:03:55 IST 2011 >>> [INFO] Final Memory: 1226M/2615M >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> >>> -- >>> *Afkham Azeez* >>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com >>> , >>> * >>> * >>> *Member; Apache Software Foundation; >>> **http://www.apache.org/*<http://www.apache.org/> >>> * >>> email: **az...@wso2.com* <az...@wso2.com>* cell: <%2B94%2077%203320919>+94 >>> 77 3320919 >>> blog: **http://blog.afkham.org* <http://blog.afkham.org>* >>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>> * >>> linked-in: **http://lk.linkedin.com/in/afkhamazeez* >>> * >>> * >>> *Lean . Enterprise . Middleware* >>> >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> Carbon-dev@wso2.org >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> >> >> _______________________________________________ >> Carbon-dev mailing list >> Carbon-dev@wso2.org >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > > -- > Sanjiva Weerawarana, Ph.D. > Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/ > email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1 > 650 265 8311 > blog: http://sanjiva.weerawarana.org/ > > Lean . Enterprise . Middleware >
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev