I am currently developing an application in Jaggery that I am deploying in my API manager.
From the back of Jaggery, I invoke the SOAP web service using the method registered here , which indicates:
<% var url = 'http://jaggeryjs.org/apidocs/resources/home.jag'; var xhr = new XMLHttpRequest(); xhr.open("GET", url); xhr.setRequestHeader("user" , "madhuka"); xhr.send(); print("ReadyState : "+xhr.readyState); print("<br>ResponseStatus : "+xhr.status); print("<br>ResponseText : "+xhr.responseText); %>
Everything works and works fine for me, however, I would like to remove the hard-coded URL and replace it with some kind of environment-based URL search .
What is the right way to do this? Can I specify an endpoint in the API manager and access it? Or maybe use an EPR file. In this sense, I have had little luck with the Jaggery documentation.
web-services wso2 wso2-am api-manager jaggery-js
Continuity8
source share