Listening HTTP AJAX request

Hi,
i am developing a very basic webserver running on my mobile phone.
i am using socket connection to listen port 80.
on the other side i have an HTML site sending reqeust to my webserver via AJAX with open method
XMLHttpRequest.open('HEAD', 'http://127.0.0.1/' + cmd_txt,true);
My problem is that i cant receive any data in my webserver.
StreamConnection client;
in = client.openInputStream();
ch = in.read();
How can i read incoming HTTP AJAX request with openInputStream or should i use any other method?
Thanks

I think your servlet isn't getting called because you get a javascript error before your script has a chance to call your servlet. In this line:
var valueA = document.getElementById("A").innerHTML;if there isn't an html element with an id "A", your javascript fails at that point. Try modifying your javascript to something like:
var valueA = "";
if(document.getElementById("A"))
      valueA = document.getElementById("A").innerHTML;
}Message was edited by:
7stud

Similar Messages

  • HttpServer not dispatching (or receiving?) Ajax requests - Help needed

    Hello,
    I have run into a strange problem. Strange because the combination of com.sun.net.httpserver.HttpServer with Internet Explorer works whereas the combination of com.sun.net.HttpServer with Firefox and Opera doesn't work!
    To illustrate I have written a small Java program that implements a HttpHandler that I want to serve Ajax requests that are fired from Javascript. I use the prototype.js Javascript library to send the Ajax requests.
    The webpage fires a Ajax request every second. The HttpHandler responds with a <script> block that calls the paint() function on the webpage.
    This works fine on Internet Explorer 6, but Firefox and Opera don't get an answer on the Ajax requests that the Javascript sends. Even more, the request doesn't event make it to the MyHandler.handle() method. How can I test whether the request even makes it to the HttpServer object, and if it reaches the HttpServer object, then why isn't it dispatched to my HttpHandler?
    I hope I made myself clear and that someone can point out to me what I am doing wrong or what the code that I wrote is lacking to make it work with Firefox and Opera.
    Thanks a whole lot in advance!
    Here is the code:
    File TestHttpServerWithPrototypeJS.html (run it on IIS or Apache or whatever)
    <html>
         <head>
              <title>Test HttpServer with prototype.js</title>
              <script type="text/javascript" src="http://localhost/prototype.js"></script>
              <script>
                   function uncache(url)
                        return url + '?time=' + (new Date()).getTime();
                   function initialize()
                        try
                             // Make a HTTP request every second to /myapp and update the mydiv1 element.
                             // What is written into the mydiv1 is a <script> section that calls the paint function.
                             // The paint function then updates the mydiv2 element with a counter value that
                             // is incremented by the server code after each http (ajax) request.
                             var myAjax = new Ajax.PeriodicalUpdater(
                                            'mydiv1',
                                            uncache('http://localhost:8000/myapp'),
                                                 method: 'post',
                                                 asynchronous: true,
                                                 frequency: 1,
                                                 evalScripts: true
                        catch(e)
                             alert('Exception: ' + e);
                   function paint(data)
                        $(mydiv2).innerHTML = data;
                   window.onload = initialize;
              </script>
         </head>
         <body>
              <div id='mydiv1'></div>
              <div id='mydiv2'></div>
         </body>
    </html>
    File TestHttpServer.java:
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import com.sun.net.httpserver.HttpServer;
    public class TestHttpServer
    public static void main(String[] args)
         HttpServer server = null;
              try
                   server = HttpServer.create(new InetSocketAddress(8000), 100);
              catch (IOException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         server.createContext("/myapp", new MyHandler());
         server.setExecutor(null); // creates a default executor
         server.start();
    File MyHandler.java:
    import java.io.IOException;
    import java.io.OutputStream;
    import com.sun.net.httpserver.HttpExchange;
    import com.sun.net.httpserver.HttpHandler;
    class MyHandler implements HttpHandler
         int counter = 0;
         public void handle(HttpExchange t) throws IOException
              try
                   String response = "<script type=\"text/javascript\">paint('server side counter = "+ counter + "')</script>";
                   counter++;
                   t.sendResponseHeaders(200, response.length());
                   OutputStream os = t.getResponseBody();
                   os.write(response.getBytes());
                   os.close();
              catch (Exception e)
                   int a_variable_on_which_a_breakpoint_can_be_set = 0;
    }

    Hi there,
    I had run into the same problem, it wouldn't work with Opera, worked but not very well with IE7 and Safari, and on Firefox seemed to work fine. I was able to solve this problem by making sure there was always a result code greater than zero when writing the respose headers. I am now running my application on all major browsers and have no problems at all. The application makes heavy use of ajax as well.
    Summing up:
    - before writing the response, make sure to write the headers and make sure the result code is greater than zero. I use a response length of 0 when writing the headers as I ran into a bit of trouble when using responses of specific length.
    - write the response then make sure to close the connection.

  • Is there a way to force firefox to send ajax-request when user clicks on a link and redirect occurs?

    I'm trying to send ajax-request with web-analytics data when user clicks on a link. But Firefox cancels the request and moves to the link location. Sync requests or waiting for response is not an option because performance is critical.

    Correct me if I'm wrong here:
    <code>jQuery.data()</code> saves the <code>{"foo": "bar"}</code> JSON object to variable <code>data</code>, and then the <code>s.tl()</code> call sends <code>data</code> to the server, right?
    You could use jQuery's [http://api.jquery.com/event.preventDefault/ <code>event.preventDefault()</code>] method to stop the browser from automatically following the link on click. You could wait until the Ajax request was finished before following the link.
    <hr>
    I hope that solved your problem!
    <i>If it did, would you please choose this answer as your solution? It would help other Firefox users to find help on the forums faster and more efficiently. Thanks!</i>
    And of course, feel free to post back if you need more help!
    Happy browsing!

  • Special characters in ajax request

    Hi,
    I can't get special characters like á é í, etc well-printed in an jsp page when processing an ajax request under struts.
    The oracle database is encoded with ISO-8859-1. In my action i set the character encoding for the respose:
    PrintWriter out = response.getWriter();
    response.setCharacterEncoding("ISO-8859-1");
    // get the combo values from database...
    Collection<SimpleBean> opciones = getDistribuidoras(opcionSeleccionada);
    String salida = crearCadenaDeSalida(opciones);
    out.print(salida);
    out.flush();
    out.close();
    return null;Also, i have specified the encoding in the tomcat connector
    <Connector port="8080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8443" URIEncoding="ISO-8859-1"/>The page encoding in the jsp
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> And finally populate the combo by JavaScript
      elementos=respuesta.split("||")
      reiniciarCombo(combo);     
      for ( var i=0; i<elementos.length; i++ ){
       valueLabelPair = elementos.split(";")
    combo.options[i] = new Option(valueLabelPair[0], valueLabelPair[1]);
    Is there something i've missed? i get a questión mark inside a black diamond shape instead the special char.
    Thank you in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Check this
    http://download-east.oracle.com/docs/cd/B10501_01/text.920/a96518/cqspcl.htm#1360

  • Pageflow variable values don't hold between two ajax requests

    I have pageflow application(Portal) where I have implemented typeAhead(like google suggest with AJAX) for two select boxes. Here I have to inform the server of the firstbox value after it is selected(with AJAX) to save it in pageflow variable so that for next request(while typing in second select box), the corresponding select option data determined by first selection has to be returned. But I see that pagflow doesn't hold values between subsequent ajax requests.But as per BEA Pageflow description values are retained till the end of session.
    Does it have anything to do with the ajax requests which are not normal HTTP browser requests? Plz any suggestions are welcome.

    Hi
    Thanks for reply,
    I know that you said, because I did some ABAP programs and some ABAP reports of the bussiness process of Collateral Objects, with information of these tables and when I tried get information,  I did something like you said, or I assigned cms_ast-object_ref_id to a variable, and this varible I converted to the same type of the other field and find the match or join between the tables(cms_movables, cms_ast).
    The problem is not when I do an ABAP program. The problem is:
    (BO)Business Objects needs to get some information about these tables to do some reports, but  BO has not the tools or the capacity to convert  fields, as well as ABAP. BO gets information directly of the tables of database.
    The posible solution to this problem is that I can create a job and a program, which function is replicate the information of cms_ast and insert on a "z" table or get the relation between to tables (cms_movables and cms_ast) and insert on a "z" table. These can help BO to get information, because BO instead of get information of this tables (cms_movables, cms_ast) , now get information of the table z and then get and join with other tables.
    The principal problem is that BO get information online, with these the job which run the program need to be run minute per minute. and I think that it is not the best practice, because all the tables are some scalables.
    I think that my program could be better, how can I catch a INSERT event on table cms_ast, to convert the fields, and insert on a "z" tables
    Or anybody have an idea, how can i solve these problems?

  • Re: Ajax request handled by backing bean

    I have a servlet that is handling an Ajax request for a page. This works very well, however i am struggling with using an event handler in my backing bean to handle this request. It seems like the reqest does not get routed to the backing bean when i try to use it as the url.
    Any guidance would be appreciated.
    Thanks

    To execute a backing bean method from your servlet, you must first make the FacesContext available to your doGet or doPost method. To learn how to make the FacesContext available, look at the init method (and the doGet method) in the 5655_ajaxcreator/ajaxcreator/exercises/exercise1/EmployeeValidationServlet.java in the JavaOne Hands-On Lab 5655. There is a link to the Lab 5655 zip file on this page:
    http://developers.sun.com/prodtech/javatools/jscreator/community/javaone/creatorteam.html
    Once you have emulated the EmployeeValidationServlet.init method to make the FacesContext available to your doGet or doPost method, use code like the following to execute your backing bean method and write out a response:
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    // Acquire the FacesContext instance for this request
    FacesContext context =
    facesContextFactory.getFacesContext(servletConfig.getServletContext(), request,
    response, lifecycle);
    MethodBinding mb = context.getApplication().
    createMethodBinding(...);
    mb.invoke(context, new Object[]{...});
    response.setContentType("text/xml");
    response.setHeader("Pragma", "No-Cache");
    response.setHeader("Cache-Control", "no-cache,no-store,max-age=0");
    response.setDateHeader("Expires", 1);
    response.getWriter().write("<message>hello world</message>");
    }

  • Render HTML in phaselistener for AJAX request

    Hello all,
    I have a page in which some its content is loaded dynamically by an Ajax request. To do this, I have a PhaseListener that build some HTML code and send it back to the client.
    Right now in my PlaseListener, I build the HTML code by concatenating string but I'd like to know if it would be possible to use JSF components and its renderer to build some HTML code.
    Is there an easy way to handle this kind of Ajax request?
    Thank you
    Petch

    Hi,
    According to your description, my understanding is that you want to render column value as the HTML format in the xslt list view.
    I suggest you can set the “disable-output-escaping” attribute like below, it will render as html:
    <xsl:value-of select="@MyColumn" disable-output-escaping="yes"/>
    Here are some detailed articles for your reference:
    http://sharepoint.stackexchange.com/questions/16089/unescape-html-from-list-column
    http://doitwithsharepoint.blogspot.com/2011/06/sharepoint-list-forms-display-html.html
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • Ajax request problem

    Hi , I am writting a simple login application using Ext-js and servlet.
    I need , show login form , if ok then go to success page , with some list generated at server sider otherwise to error page.
    Using Ext.FormPanel , I am submitting form and request param using Ajax request.
    Problem is , I am able to submit a request , it is hitting to doPost() method of servlet , but when it comes back not redirected to any erropage or success page.
    following is the code of login.js, servlet and jsp . Please help me out.I am using Ext.js 3
    login.js
    Ext.ns('ediscovery');
    Ext.onReady(function() {
        var loginForm = Ext.extend(Ext.FormPanel, {
            id : 'loginForm',
            initComponent : function() {
                //this.standardSubmit = true
                this.title = 'Please login'
                //this.url = '/MainController'
                this.items = this.getPageItems();
                this.padding = 30
                this.buttons = this.getButtons();
                this.bodyBorder = false
                this.labelAlign = 'right'
                    this.width = 350
                this.style = { marginLeft : '850px',marginRight:'50px',marginTop:'100px'}  
                loginForm.superclass.initComponent.call(this);
            getPageItems : function() {
                var items = [];
                var userNameField = new Ext.form.TextField({
                    name : 'userName',
                    id : 'userName',
                    fieldLabel : 'User Name'
                    //,anchor : '60% 6%'
                    ,allowBlank : false  
                    ,blankText : 'This field is required'
                    ,value:'eediscoverycloud'
                var passwordField = new Ext.form.TextField({
                    name : 'testname',
                    fieldLabel : 'Password',
                    id : 'password',
                    inputType : 'password'
                    //,anchor : '60% 6%'
                    ,allowBlank : false  
                    ,blankText : 'This field is required'
                    ,value:'parse@123'
                items.push(userNameField);
                items.push(passwordField);
                return items;
            ,getButtons : function(){
                var buttons = [];
                var submitBtn = new Ext.Button({
                    text : 'Submit'
                    ,handler : function(){
                        var userName = Ext.getCmp('userName').getValue();
                        var password = Ext.getCmp('password').getValue();
                        console.log("User Name : "+userName);
                        console.log("Password : "+password);
                        var cmp = Ext.getCmp('loginForm');
                        //cmp.getEl().mask("Processing");
                        /*var fp = this.ownerCt.ownerCt;
                        fp.getForm().submit();*/
                        Ext.Ajax.request({
                            url:"MainController"
                            ,method : 'post'
                            ,params : "userName="+userName+"&password="+password
                            /*,success : function(response,option){
                                console.log(response);
                                Ext.Msg.alert('Status', 'Orders Saved successfully.');
                                cmp.getEl().unmask();
                            ,failure : function(response,option){
                                console.log(response);
                                Ext.Msg.alert('Status', 'Some error occured. Please contact to Administrator');
                                cmp.getEl().unmask();
                var resetBtn = new Ext.Button({
                    text : 'Reset'
                buttons.push(submitBtn);
                buttons.push(resetBtn);
                return buttons;
        new Ext.Viewport({
            resizable: false
            ,items : [new loginForm()]
    servlet
    package com.ediscoverycloud.controller;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import java.util.Iterator;
    import java.util.List;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.ediscoverycloud.util.DocWriter;
    import com.ediscoverycloud.util.Order;
    import com.ediscoverycloud.util.ReadMail;
    * Servlet implementation class MainController
    public class MainController extends HttpServlet {
        private static final long serialVersionUID = 1L;
         * @see HttpServlet#HttpServlet()
        public MainController() {
            super();
            // TODO Auto-generated constructor stub
         * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
        protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            String userName = request.getParameter("userName");
            String password = request.getParameter("password");
            request.getRequestDispatcher("/error").forward(request, response);
            System.out.println("Done");
    Web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>eDiscoveryCloudWeb</display-name>
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <servlet>
        <description></description>
        <display-name>MainController</display-name>
        <servlet-name>MainController</servlet-name>
        <servlet-class>com.ediscoverycloud.controller.MainController</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>MainController</servlet-name>
        <url-pattern>/MainController</url-pattern>
      </servlet-mapping>
    <servlet>
          <servlet-name>Error Page</servlet-name>
          <jsp-file>/errorPage.jsp</jsp-file>
      </servlet>
      <servlet-mapping>
          <servlet-name>Error Page</servlet-name>
          <url-pattern>/error</url-pattern>
      </servlet-mapping>
    </web-app>

    if u want to move from pages like from jsp to servlet and html page
    to another one u have to use ther response.redirection there.
    from this u can move arround the pages.

  • Safari ignores proxy settings for AJAX requests?

    I'm using Safari 4 on Mac OS X 10.5.7.
    When I configure Safari's proxy settings (which redirect to System Preferences -> Network -> Advanced -> Proxies), all my page requests go through the proxy I configured, except for AJAX requests.
    I configured an intercepting proxy (burp suite) to verify this, and indeed, AJAX requests are not being sent to the proxy. I double checked the exact same page on Firefox 3.5 on the same Mac with the same proxy being configured, and in this case the AJAX requests do go via the proxy.
    For Safari, I configured the "Web Proxy (HTTP)" and "Secure Web Proxy (HTTPS). Is there anything else I need to do? Is this a bug in Safari?
    Thanks in advance for all help.

    I'm seeing the same problem. I use privoxy, a local security/privacy/ad-blocking proxy that lives on my computer. Firefox always sends its requests through the proxy, but Safari sometimes ignores the proxy settings. Vienna, my RSS reader, stops going through the proxy when Safari stops doing it. A restart fixes the problem for a while, but eventually the ads start showing up in Safari and Vienna.
    I didn't start seeing this problem until Safari 4. I'm currently using the most up-to-date version of Safari, 4.0.3, with Mac OS X 10.5.8 and all other updates as of 12 Sep 2009. Privoxy is version 3.0.10, not the very latest, but it's working.

  • WinRM - WsManFault - HTTP Bad Request status (400) - Error number: -2144108175 0x80338171

    I am trying to configure the WinRM in my servers for eventlog forwarding but I am facing issue when i run "winrm qc" command on domain controllers. I get the following error,
    WinRM already is set up to receive requests on this machine.
    WSManFault
        Message = The WinRM client received an HTTP bad request status (400), but the remote service did not include any other information about the cause of the failure.
    Error number:  -2144108175 0x80338171
    The WinRM client received an HTTP bad request status (400), but the remote service did not include any other information about the cause of the failure.
    Please help me resolve this. I searched many articles but no result. Nothing helped.
    Regards,
    Sameer Gawde

    Hi Sameer,
    Before going further, would you please let me confirm edition information of the server OS that this issue
    occurred? Was it Windows Server 2008 or Windows Server 2008 R2 or any other?
    Based on the error message, this issue may occur if the Window Remote Management service and its listener functionality
    are broken. Please refer to resolution in following KB and check if can help you.
    Errors when you run winrm commands to check local functionality
    in a Windows Server 2008 environment
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Sending parameters in ajax request

    suppose i have 100 parameters to send in an ajax request how can i send that, is there any mehcanisam for that?
    Thanks,

    If you are doing a post, you will have no problems, because a post request doesn' have limits. When using AJAX to post request this parameters are passed thru the querystring.
    http://developer.mozilla.org/en/docs/AJAX:Getting_Started
    MeTitus

  • AJAX request won't work after a command button has been clicked

    hello,
    i have a simple login form, with a user name text field, password text field, login button, and cancel button....there is a simple ajax request that fires on the onBlur() event of the user name text field. the purpose is to validate the user name as soon as the user enters the name. all works fine when the page is first loaded...the user enters a user name, and either tabs out of the text box, or clicks out, and the ajax request is fired, and works great...
    however, during testing, i discovered that if the user were to click the login button, or the cancel button, before entering text into the user name text field, the onBlur() code never fires after the user writes text into the text field....
    can anyone explain to me why this is, and what i need to do to fix it
    here is my javascript code
    function validateUserName()
    var xmlHttp;
      try {
        xmlHttp = new XMLHttpRequest();
      catch (trymicrosoft) {
        try {
          xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (othermicrosoft) {
          try {
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
          } catch (failed) {
            xmlHttp = false;
      if (!xmlHttp)
        alert("Error initializing XMLHttpRequest!");
      var UserName = document.getElementById("form1:txtUserName").value
      xmlHttp.open("GET", "faces/LoginServlet?UserName=" + UserName, true);
      xmlHttp.onreadystatechange = function () {
          if (xmlHttp.readyState == 4)
              if (xmlHttp.status == 200)
                  if (xmlHttp.responseText == "yes")
                        document.getElementById("form1:txtError").style.color = 'green';
                        document.getElementById("form1:txtError").innerHTML = 'User Name Correct';
                        document.form[0].cmdLogin.disabled = false;
                  else if (xmlHttp.responseText == "no")
                    document.getElementById("form1:txtError").innerHTML = 'User Name not found';
              //else alert(xmlHttp.status);
              //alert(xmlHttp.readyState);
      xmlHttp.send("");
    }here is my JSP page code
    <ui:textField binding="#{ui$Welcome.txtUserName}" id="txtUserName" onBlur="validateUserName();"
                                style="left: 528px; top: 312px; position: absolute; width: 168px" tabIndex="1"/>i use a servlet to handle the request, which in turn uses a Data Access Object to run a simple select query...i don't think any of that is the reason why the onBlur() code never fires...but if it would help to post that code, please let me know
    thank you in advance
    sam

    Check the following example:
    http://java.sun.com/developer/technicalArticles/J2EE/AJAX/RealtimeValidation/index.html
    Also, http://developers.sun.com/jscreator/learning/tutorials/2/textcompletion.html

  • Custom JSP, Javascript (Ajax) request.url

    Hi,
    Im very new to java. Maybee Im not in the right forum :-/ could be a tomcat question.
    I create a custom jsp for teaming and trying to load some information from database.
    Using javascript(Ajax) request.url to call "get.jsp" to load from db.
    PHP Code:
      var url="companyDetails.jsp?companyId=" +tmp
                       http.open("GET", url, true);
                       http.onreadystatechange = callBack; 
    On my development machine everything right. But on teaming prod we get a 404.
    Placing the *.jsp files in the clustom_jsp folder.
    Q1: Maybee I tried wrong URL ?
    Q2: May I have to use webServices like SOA ?.
    In this case Is the Ajax call = a WebService ?
    Q4: Or I have to auth over url at server level.
    Thanks
    *T

    Originally Posted by tbrinkmann
    re...
    are there some teaming, vibe jsp, java application programmer in case of custom application programming in the forum ?
    Ore only admins and users ?
    Thanks
    *T
    Maybe you will get better answers here: Kablink Vibe
    Thomas

  • We encountered a problem with some client machines that use Firefox version 24ESR and IE8. Ajax requests of aspx pages from Firefox are getting the following er

    I encountered a problem with some client machines that use Firefox version 24ESR and IE8.
    Ajax requests of aspx pages from Firefox are getting the following error from the iis server (iis version 7.5):
    Bad Request - Request Too Long
    HTTP Error 400. The size of the request headers is too long.
    From analyzing the request that was sent to the server, I saw that the request consist of only the viewstate of the aspx page.
    I tried to disable the viewstate for one page and the server got the request correctly.
    I do not encounter any issues on these laptops with postback requests from Firefox or when running the same application with IE8.

    Sometimes that means that the page address sent is loo long.
    Check the link address you are using.
    I can't help you further and will send for more help.

  • Using ADFS authentication to perform SSO via HTTP GET request

    Hi,
    Can i authenticate users (those users are clients, at home) to a web application using ADFS without SAML tokens?
    The situation is that i want the clients to perform SSO to the website via a link they receive in their mailboxes. 
    I thought about a solution that combines JWT in a URL link that each user will get to his private mail. this link will contain the users' claim (such as ID Num, given from AD DS Server dedicated especially for them).
    Thus, the user will receive an email with a link that already contains a short period of time JWT to perform SSO to the webapp.
    Is it possible ? anybody heard about a similar solution ?

    Sandra
    Thanks for your message
    Here is the my requirment
    The basic flow of a Where 2 Get It REST API call is:
    1) create the required XML structure,
    2) URI encode it,
    3) make a HTTP GET request,
    4) then parse the return XML document.
    Currently i have some data in ABAP structure with 5 fields, i need to create XML from the those 5 fields,and needs to be URI
    encode it, and then needs to make a HTTP get request to connect Where to Get It REST API, finally it will return XML document via HTTP Get request , and then needs to convert the return XML to  ABAP structure for further processing .the above 4 points will be implemented in my report.
    Any  body could help on this

Maybe you are looking for