wso2

Generate working Onvif code with wsdl2cpp

杀马特。学长 韩版系。学妹 提交于 2020-01-06 18:08:52
问题 I generated the DeviceMgmt stub from cmd with WSDL2CPP.bat -uri http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl -u -d adb -o OutputDirectory The first time, I got an error like "No service was found" and I solved it by adding this: <wsdl:service name="OnvifService"> <wsdl:port name="OnvifEndpoint" binding="DeviceBinding"> <soap:address location="http://www.onvif.org/ver10/device/wsdl"/> </wsdl:port> </wsdl:service> in devicemgmt.wsdl I opened the generated project in VS2012 and

WSO2 - How to convert this XML to Json using script mediator?

和自甴很熟 提交于 2020-01-06 15:51:12
问题 Im using WSO2 ESB and DDS to make an API to read data from database and finally I got this respone. How to convert this XML to Json using script mediator? Give me an example please. <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Body> <employeeCollection xmlns="http://employee.us.wso2.com"> <employee> <EmployeeID>17</EmployeeID> <FirstName>jak</FirstName> <LastName>123</LastName> <Team>ok</Team> </employee> <employee>

wso2 esb: Construct one message from multiple web service calls

醉酒当歌 提交于 2020-01-06 13:26:27
问题 I have a number of web services each returning a list of user ids as follows: <application name="abc"> <users> <id>123</id> <id>456</id> <id>789</id> </users> </application> I need to be able to Call a proxy service with a specific id (for example 123); Call each webservice and search for the ID; Create a response for each webservice and finally Aggregate all responses in one message which is sent to the client as follows: <response> <id>123</id> <application name="abc"> found </application>

Where I can download WSO2CEP 4.0.0 newest version?

夙愿已清 提交于 2020-01-06 11:47:00
问题 I want to learn WSO2CEP by doing the example in documentation here one by one. But I'm stuck on the first example sn=0001, the error when i try to build producer is [java] Starting WSO2 Http Client [java] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:4 [java] at org.wso2.carbon.sample.http.Http.main(Unknown Source) [java] Java Result: 1 Please.. is anyone know where I can download WSO2CEP 4.0.0 version that work for all sample in documentation? 回答1: All samples are

Case Insensitive URLs for wso2 Request URL

ぃ、小莉子 提交于 2020-01-06 08:47:22
问题 I created an api with context MyStudents in wso2 publisher. So the Request URL is MyStudents/v1. When I publish this api, I have resource /Students/{name}. In the wso2 store, when I try out the feature, the URL is http://MyServer.com/MyStudents/v1/Students/foo. If I keep the case as is in the URL, then my api works. If I use any other tool to call and change the case in url to http://MyServerName.com/mystudents/students/foo, then I get a 202 error. Can you please tell me how to make my urls

WSO2 sh wso2server.sh -Dmigrate -Dcomponent=identity is not running the migration scripts

半世苍凉 提交于 2020-01-06 06:41:33
问题 I am migrating WSO2 Idenitity server as per https://docs.wso2.com/display/IS530/Upgrading+from+a+Previous+Release I copied the scripts to wso2is-km-5.3.0/dbscripts/identity/migration-5.2.0_to_5.3.0 folder. But after running sh wso2server.sh -Dmigrate -Dcomponent=identity , it doesnt look like its running the scripts.None of the new tables are getting created. Any clue? [ec2-user@ip-171-30-1-7 bin]$ sh wso2server.sh -Dmigrate -Dcomponent=identity JAVA_HOME environment variable is set to /usr

how to force text/plain in WSO2 call to an endpoint

时光毁灭记忆、已成空白 提交于 2020-01-06 06:07:12
问题 I have an enrich mediator in a sequence which has a value in a plain text. I have verified the value with log and ensured it is a text. But when I do the call after the enrich (see below) the API received the payload as a JSON with key always as "test": and then the plaintext value. The API below expects any values, it just saves the body to a file. When I try to set a property before the call to state message type=text/plain it just hangs, does not do the call? QUESTION: Does WSO2 mediator

WSO2 APIM Application Registration urn:approve action not found

半腔热情 提交于 2020-01-06 05:45:05
问题 UPDATE: We have reproduced the same problem connecting to EI 6.1.1 business process module We are trying to implement a application registration (generation of key) for API manager (version 2.1.0), using BPS (version 3.6.0). For this, we are following the instructions in https://docs.wso2.com/display/AM210/Adding+an+Application+Registration+Workflow We have also corrected a typo in the content of the package, as provide by the https://github.com/wso2/product-apim/pull/2730/files#diff

How the external authentication handled in WSO2 APIM for an external/Third Party APIs

爱⌒轻易说出口 提交于 2020-01-06 04:53:25
问题 I am using WSO2 APIM (2.5.0) and IS (5.6.0). They both are integrated and working well. Now, if I onboard an third party API in API Management and using oauth token I can be able to access it. But question is how to handle any external or third party APIs which has its own authentication. SO basically, using WSO2 APIM token I can be able to access the onboarded API to use but we will not be able to get any response as the onboarded API has its own authentication (basic or oauth). How to

WSO2 API Manager 1.6 file corrupted error

坚强是说给别人听的谎言 提交于 2020-01-06 04:24:05
问题 I working with API Manager 1.6. I created roles, users, publish API, etc.. and works fine. When i restart server show this error. Any Idea? org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "958 of 958". Possible solution: use the recovery tool [90030-140] at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) at org.h2.message.DbException.get(DbException.java:167) at org.h2.message.DbException.get(DbException.java:144) at org.h2.store.PageStore.readPage