payload: {"action":"created","issue":{"url":"https://api.github.com/repos/wso2/product-apim/issues/5534","repository_url":"https://api.github.com/repos/wso2/product-apim","labels_url":"https://api.github.com/repos/wso2/product-apim/issues/5534/labels{/name}","comments_url":"https://api.github.com/repos/wso2/product-apim/issues/5534/comments","events_url":"https://api.github.com/repos/wso2/product-apim/issues/5534/events","html_url":"https://github.com/wso2/product-apim/issues/5534","id":492403675,"node_id":"MDU6SXNzdWU0OTI0MDM2NzU=","number":5534,"title":"IndexOutOfBoundsException when trying to expose backend soap service as REST API","user":{"login":"prats2017","id":51544668,"node_id":"MDQ6VXNlcjUxNTQ0NjY4","avatar_url":"https://avatars0.githubusercontent.com/u/51544668?v=4","gravatar_id":"","url":"https://api.github.com/users/prats2017","html_url":"https://github.com/prats2017","followers_url":"https://api.github.com/users/prats2017/followers","following_url":"https://api.github.com/users/prats2017/following{/other_user}","gists_url":"https://api.github.com/users/prats2017/gists{/gist_id}","starred_url":"https://api.github.com/users/prats2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prats2017/subscriptions","organizations_url":"https://api.github.com/users/prats2017/orgs","repos_url":"https://api.github.com/users/prats2017/repos","events_url":"https://api.github.com/users/prats2017/events{/privacy}","received_events_url":"https://api.github.com/users/prats2017/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-09-11T18:42:52Z","updated_at":"2019-09-16T21:44:36Z","closed_at":null,"author_association":"NONE","body":"I have a legacy SOAP app that we are thinking to hook to WSo2 and expose as rest.\r\nI could successfully create/run a wso2 Pass through SOAP API that would invoke our backend SOAP service. \r\nNow I am trying to create API that will generate REST APIs but I am getting **_IndexOutOfBoundsException_** when (i think) wso2 tries to parse wsdl.\r\nAlso, on Design API Page, Design tab I don't see operations exposed in API Definition section. and the design screen looks like one when I am doing \"Pass through\".\r\n\r\nI am running my logs in debug mode and still am not finding much details than below. Can anyone please look at this please?\r\n\r\n[2019-09-11 14:32:25,576] ERROR - **_add:jag org.mozilla.javascript.WrappedException: Wrapped java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 (/publisher/site/blocks/item-design/ajax/add.jag#221)_**\r\n        at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)\r\n        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)\r\n        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)\r\n\t.....\r\n\t.....\r\n\tCaused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0\r\n        at java.util.ArrayList.rangeCheck(ArrayList.java:657)\r\n        at java.util.ArrayList.get(ArrayList.java:433)\r\n        at org.wso2.carbon.apimgt.impl.soaptorest.WSDL11SOAPOperationExtractor.getComplexTypeMap(WSDL11SOAPOperationExtractor.java:355)\r\n        at org.wso2.carbon.apimgt.impl.soaptorest.WSDL11SOAPOperationExtractor.getParameters(WSDL11SOAPOperationExtractor.java:285)\r\n        at org.wso2.carbon.apimgt.impl.soaptorest.WSDL11SOAPOperationExtractor.getSoapInputParameters(WSDL11SOAPOperationExtractor.java:226)\r\n        at org.wso2.carbon.apimgt.impl.soaptorest.WSDL11SOAPOperationExtractor.getSOAPOperation(WSDL11SOAPOperationExtractor.java:192)\r\n        at org.wso2.carbon.apimgt.impl.soaptorest.WSDL11SOAPOperationExtractor.getSOAPBindingOperations(WSDL11SOAPOperationExtractor.java:163)\r\n        at org.wso2.carbon.apimgt.impl.soaptorest.WSDL11SOAPOperationExtractor.getSoapBindingOperations(WSDL11SOAPOperationExtractor.java:144)\r\n        at org.wso2.carbon.apimgt.impl.soaptorest.WSDL11SOAPOperationExtractor.getWsdlInfo(WSDL11SOAPOperationExtractor.java:117)\r\n        at org.wso2.carbon.apimgt.impl.soaptorest.util.SOAPOperationBindingUtils.getSoapOperationMapping(SOAPOperationBindingUtils.java:74)\r\n![image](https://user-images.githubusercontent.com/51544668/64725350-6cffba80-d4a2-11e9-8c23-22fc5e368319.png)\r\n\r\n[wsdl.txt](https://github.com/wso2/product-apim/files/3602255/wsdl.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/wso2/product-apim/issues/comments/531970357","html_url":"https://github.com/wso2/product-apim/issues/5534#issuecomment-531970357","issue_url":"https://api.github.com/repos/wso2/product-apim/issues/5534","id":531970357,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMTk3MDM1Nw==","user":{"login":"prats2017","id":51544668,"node_id":"MDQ6VXNlcjUxNTQ0NjY4","avatar_url":"https://avatars0.githubusercontent.com/u/51544668?v=4","gravatar_id":"","url":"https://api.github.com/users/prats2017","html_url":"https://github.com/prats2017","followers_url":"https://api.github.com/users/prats2017/followers","following_url":"https://api.github.com/users/prats2017/following{/other_user}","gists_url":"https://api.github.com/users/prats2017/gists{/gist_id}","starred_url":"https://api.github.com/users/prats2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prats2017/subscriptions","organizations_url":"https://api.github.com/users/prats2017/orgs","repos_url":"https://api.github.com/users/prats2017/repos","events_url":"https://api.github.com/users/prats2017/events{/privacy}","received_events_url":"https://api.github.com/users/prats2017/received_events","type":"User","site_admin":false},"created_at":"2019-09-16T21:44:36Z","updated_at":"2019-09-16T21:44:36Z","author_association":"NONE","body":"Hi, I installed latest APIM update but it didn't help. I am getting IndexOutOfBoundException when my wsdl is being parsed bt APIM.\r\n\r\n[2019-09-16 13:54:22,303] ERROR - add:jag org.mozilla.javascript.WrappedException: **Wrapped java.lang.IndexOutOfBoundsException: Index: 0, Size: 0** (/publisher/site/blocks/item-design/ajax/add.jag#221)\r\n       at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)\r\n       at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)\r\n"}}
other: {"actor":{"display_login":"prats2017"}}