soapui - WSO2 Gadget cannot access SOAP payload -


i have created data service, tests out correctly via tryit , soapui. however, when try include gadget, error:

"an error occurred while relaying soap payload, end point https://data.stratoslive.wso2.com/services/t/inova8.com/productvendordataservice.soap11endpoint/" gadget includes fragment: function dosoapcall(){ var endpoint = "https://data.stratoslive.wso2.com/services/t/inova8.com/productvendordataservice.soap11endpoint/"; var payload = ""; var operation = "urn:getproduct"; document.getelementbyid("response-disp").innerhtml = wso2.io.makesoaprequest(endpoint, operation, payload); }

the data service based on example http://wso2.org/library/tutorials/2011/11/expose-your-cloud-data-as-rdf-data-model. note operation needs no parameters, have tried every variant of payload without success.

i tried steps , found there 2 issues gadget code segment soap call.

first 1 is,since operation accessing data service end point,do not need payload pass it.such inside gadget xml have set payload 'null'[not payload=""].

second issue that,your defined operation name in gadget xml incorrect.once tried data-service try-it option,i found accessing operation name "_getproduct" , it's not "getproduct".

once corrected above 2 issues,soap gadget works end point , able response in gadget accessing operation.the corrected code segment dosoapcall() function below.

function dosoapcall(){ var endpoint = "https://data.stratoslive.wso2.com/services/t/inova8.com/productvendordataservice.soap11endpoint/"; var payload = null; var operation = "urn:_getproduct"; document.getelementbyid("response-disp").innerhtml = wso2.io.makesoaprequest(endpoint, operation, payload); }

thanks;

lalaji


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -