Re: [Dev] HTTP Patch support by ESB 4.8.1

2014-04-23 Thread Krishantha Dinesh
be a some other fix done early causing this issue. [1] https://wso2.org/jira/browse/ESBJAVA-3051 [2] https://wso2.org/jira/browse/ESBJAVA-3061 On Tue, Apr 22, 2014 at 1:14 PM, Krishantha Dinesh kr...@krishantha.comwrote: this is already experienced issue with above patch. hope malaka can help

Re: [Dev] HTTP Patch support by ESB 4.8.1

2014-04-22 Thread Krishantha Dinesh
this is already experienced issue with above patch. hope malaka can help you on solve this as he is already solve this on other connector Malaka can you share the solution please On Tue, Apr 22, 2014 at 5:09 PM, Madhawa Bandara madh...@wso2.com wrote: Hi, I applied the above patches and the

[Dev] remove multiple header from response

2014-02-27 Thread Krishantha Dinesh
I'm in the process of developing a connector for a backend API. As a part of the response header, I get multiple Set-Cookie headers as shown below. Set-Cookie: JSESSIONID=ajax:1613288983512332665; Version=1; Path=/ Set-Cookie: bcookie=v=2d90f407e-0cc7-4cdd-ab41-24118a8e9e8f; Version=1;

[Dev] send file content in message body

2014-02-25 Thread Krishantha Dinesh
Hi, I need to send file content in message body. how i can achieve this ? any idea i am referring this [1] PUT /my-image.jpg HTTP/1.1 Host: myBucket.s3.amazonaws.com Date: Wed, 12 Oct 2009 17:50:00 GMT Authorization: *authorization string* Content-Type: text/plain Content-Length: 11434 Expect:

Re: [Dev] ESB: Issue with setting timeout values dynamically

2014-02-21 Thread Krishantha Dinesh
try this xsl:value-of select=number($valueinText) On Fri, Feb 21, 2014 at 1:27 PM, wchinthakaps senanayakachinth...@gmail.com wrote: I have to set endpoint call timeout dynamically, from user input SOAP request value. Timeout synapse template: template name=timeout

[Dev] Script mediator vs Filter mediator

2014-02-20 Thread Krishantha Dinesh
Hi, I have short question. is there any significant performance hit between script mediator and filter mediator? what is recommended to use? ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] Script mediator vs Filter mediator

2014-02-20 Thread Krishantha Dinesh
currently i am involving some significant development with WSO2 ESB. for that i need to to some comparison and URL construction. (basically string operations) those task can do using filter mediator as well as script mediator. but when use filter mediator code become so bulky and ugly :( when use

Re: [Dev] Handling Optional Parameter Issue in LinkedIn Connector

2014-02-18 Thread Krishantha Dinesh
Since this is GET method, you can construct URL using script mediator. eg: if(count!=) { apiUrl=apiUrl+'count='+count; } var startId=mc.getProperty('uri.var.startId'); if(startId!=) {

[Dev] send attachment withservice chaining

2014-02-17 Thread Krishantha Dinesh
Use case: 1. I need to call back end API with file as a attachment 2. Its involve service chaining ( I need to call auth service first and get session from that and pass session along with file) 3. when i call first service from proxy attachment get removed from messageContext when

Re: [Dev] Exception handling on REST call

2014-02-11 Thread Krishantha Dinesh
, 2014 at 10:48 AM, Dushan Abeyruwan dus...@wso2.com wrote: Hi You can setup HTTP_SC in axis2 context set 400 (which represents bad Request) On Tue, Feb 11, 2014 at 10:42 AM, Krishantha Dinesh kr...@krishantha.comwrote: Hi Dushan, Thanks for prompt reply. I do agree with you. my concern

Re: [Dev] Exception handling on REST call

2014-02-10 Thread Krishantha Dinesh
, Krishantha Dinesh kr...@krishantha.comwrote: I have used following code to handle error on soap call proxy == faultSequence makefault version=soap11 code xmlns:tns=http://www.w3.org/2003/05/soap-envelope; value=get-property('FAULT_CODE

Re: [Dev] Exception handling on REST call

2014-02-10 Thread Krishantha Dinesh
; } On Tue, Feb 11, 2014 at 9:51 AM, Krishantha Dinesh kr...@krishantha.comwrote: Hi Dushan/Dev I tried ur solution and its work. but i have other question. when it catch FAULT (500 error) on return message of client http code is 200 OK for example let say endpoint is fail the it catch

[Dev] Sending option json parameters

2014-02-09 Thread Krishantha Dinesh
Currently, we are developing a WSO2 ESB connetor for PPal REST API. Store Credit Card API call in PPal is having four required parameters and five optional parameters as shown in the below link. https://developer.p--pal.com/webapps/developer/docs/api/#store-a-credit-card Corresponding message

Re: [Dev] Exception handling on REST call

2014-02-08 Thread Krishantha Dinesh
. .. .. /then /filter [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html On Fri, Feb 7, 2014 at 7:54 PM, Krishantha Dinesh kr...@krishantha.comwrote: I have used following code to handle error on soap

[Dev] Exception handling on REST call

2014-02-07 Thread Krishantha Dinesh
I have used following code to handle error on soap call proxy == faultSequence makefault version=soap11 code xmlns:tns=http://www.w3.org/2003/05/soap-envelope; value=get-property('FAULT_CODE') / reason

Re: [Dev] HTTP POST multipart/form-data via ESB

2014-01-29 Thread Krishantha Dinesh
Update: I realize this i have enables this on axis.xml !--messageFormatter contentType=multipart/form-data class=org.wso2.carbon.relay.ExpandingMessageFormatter/-- then entire formdata removed when leaving from ESB when i put this messageFormatter

Re: [Dev] HTTP POST multipart/form-data via ESB

2014-01-29 Thread Krishantha Dinesh
*Pls find the behaviors of output based on axis to relay configuration* *INPUT to ESB* POST /services/postPhotoToAlbumHttpSoap11Endpoint HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: urn:mediate Content-Length: 488 Host: localhost:8280

Re: [Dev] HTTP POST multipart/form-data via ESB

2014-01-29 Thread Krishantha Dinesh
/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit --MIMEBoundary_588b3db44ce49dd52107589eea5fdcdc3d9a943eeeadcc5a-- 0 On Thu, Jan 30, 2014 at 12:51 AM, Krishantha Dinesh kr...@krishantha.comwrote: *Pls find the behaviors of output based on axis to relay configuration* *INPUT

Re: [Dev] Need help with Cassandra

2014-01-23 Thread Krishantha Dinesh
when I ran it with sudo it says Command not found. *open the shell script and read. it may have command which is not available on your platform* On Thu, Jan 23, 2014 at 1:09 PM, Chamila Wijayarathna cham...@wso2.comwrote: Hi all, For out intern project, we are using CEP with cassandra output

Re: [Dev] [ESB] Sending POST requests with x-www-form-urlencoded content type

2014-01-22 Thread Krishantha Dinesh
Hi Ramindu.. in my case i needed DISABLE_CHUNKING as well payloadFactory media-type=xml format soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header/soapenv:Header soapenv:Body root cobSessionToken$1/cobSessionToken userSessionToken$2/userSessionToken /root