wso2dss

Error in getting json response from DSS server: “Error while writing to the output stream using JsonWriter”,“detail”:“”

帅比萌擦擦* 提交于 2019-12-10 20:27:30
问题 I'm getting following error while requesting json response from my dss service. {"Fault":{"faultcode":"soapenv:Server","faultstring":"Error while writing to the output stream using JsonWriter","detail":""}} curl request which i pass is curl -X GET -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:9764/services/userdetails/test I am getting the proper xml response if i remove accept header. Strange thing is if i am running the same dss service from my colleague's

Data Service fails when deployed with ESB

喜夏-厌秋 提交于 2019-12-09 18:47:59
问题 I have a data service that works perfectly when deployed in a DSS only environment. The exact data service when deployed in an environment with both dss and esb will fail an operation that has a simple input parameter. Any pointers as to what is failing would be greatly appreciated. The Data service has two operations; Simple get of information with no input parameters, GetLastRequest More complex get operation in which a single datetime parameter is passed in, GetNewRequests When deployed in

Transaction roll back not working in wso2esb4.8.0

天涯浪子 提交于 2019-12-08 13:46:11
问题 I am using wso2esb4.8.0 and wso2dss3.0.1.My issue is I wish to insert the data into 2 tables its working nicely but I wish to applay transaction for my tables both table exist in same DB.If my 2nd table going fail on any moment that time my 1 st table should be rollback for that my DSS data source configuration is and my dataservice is like this and I enabled boxcar for transaction <data disableStreaming="true" enableBoxcarring="true" name="Transaction" serviceNamespace="http://ws.wso2.org

How can i get HEADER in my ESB i am using following property, its not not working

泄露秘密 提交于 2019-12-08 07:53:07
问题 i am getting the data from mobile client they are sending data in JSON as well as sending some values as HEADER to WSO2ESB i am getting normal values using this property <property name="asset" expression="//asset/text()" scope="default"/> but how can i get HEADER in my ESB i am using this property its not not working <property name="username" expression="get-property('transport', 'Accept')"/> how it will work will you revert me as soon as Thanks in advance 回答1: if what you are trying to

How can i get HEADER in my ESB i am using following property, its not not working

我是研究僧i 提交于 2019-12-06 21:09:30
i am getting the data from mobile client they are sending data in JSON as well as sending some values as HEADER to WSO2ESB i am getting normal values using this property <property name="asset" expression="//asset/text()" scope="default"/> but how can i get HEADER in my ESB i am using this property its not not working <property name="username" expression="get-property('transport', 'Accept')"/> how it will work will you revert me as soon as Thanks in advance if what you are trying to access is 'username', the configuration should be: <property name="some_name_here" expression="get-property(

How we can write a data in to text file using wso2esb

别来无恙 提交于 2019-12-06 14:45:35
i am getting a data or string from front end i am setting the data or string in one property that property data i need to send in text file every time they will send the data i need keep the data in same file without override how can i do i have done using VFS transport i uncommented sender section of vfs in configuration file even though its not working fine below configuration <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="FileWrite" transports="https http" startOnLoad="true" trace="disable"> <description/> <target> <inSequence> <property name=

Call WSO2 DSS service using ajax?

我是研究僧i 提交于 2019-12-06 12:20:36
问题 I have one data service in WSO2 DSS. And also its possible to call using browsers.But i can't make a request using ajax to call this service.I think CORS issue is occurring.So i want to add Access-Control-Allow-Origin parameter to response header.How this is possible in WSO2 DSS ,Any suggestion ? 回答1: I think you can put a custom headers by adding axis2 custom out flow handler. http://shivendra-tripathi.blogspot.com/2010/04/adding-handler-in-axis2.html?m=1 http://shivendra-tripathi.blogspot

Call WSO2 DSS service using ajax?

久未见 提交于 2019-12-04 18:37:51
I have one data service in WSO2 DSS. And also its possible to call using browsers.But i can't make a request using ajax to call this service.I think CORS issue is occurring.So i want to add Access-Control-Allow-Origin parameter to response header.How this is possible in WSO2 DSS ,Any suggestion ? I think you can put a custom headers by adding axis2 custom out flow handler. http://shivendra-tripathi.blogspot.com/2010/04/adding-handler-in-axis2.html?m=1 http://shivendra-tripathi.blogspot.com/2010/04/adding-soap-header-in-axiom.html?m=1 来源: https://stackoverflow.com/questions/22086327/call-wso2

Data Service fails when deployed with ESB

岁酱吖の 提交于 2019-12-04 14:22:45
I have a data service that works perfectly when deployed in a DSS only environment. The exact data service when deployed in an environment with both dss and esb will fail an operation that has a simple input parameter. Any pointers as to what is failing would be greatly appreciated. The Data service has two operations; Simple get of information with no input parameters, GetLastRequest More complex get operation in which a single datetime parameter is passed in, GetNewRequests When deployed in DSS only environment, both operations work as expected using TryIT When deployed in the DSS/ESB

How We Can Break a String in Wso2esb using Xpath

岁酱吖の 提交于 2019-12-02 16:36:51
问题 I wish to break a string in wso2esb using xpath my input like this <property name="Message" value="assetname:ups,assetcode:452chi,assetid:548935,assetvalue:215" scope="default"/> i need break in same property using xpath i need like this assetname:ups assetcode=452chi assetid=54895 assetvalue=215 for this i tried with tokenize function but wso2esb showing errors my configure file <proxy xmlns="http://ws.apache.org/ns/synapse" name="Xpathcheck" transports="https,http" statistics="disable"