How to send SAML response from ADFS server on web page

Hi
I have integarted ADFS and Orcale application for single sign on.
problem description: need SAML token on web page which published on application.
please tell me; how to set SAML response on web page defined on ADFS or what configuration required from ADFS side to send SAML response.
Regards
Kapil

This has a web app that will display claims. You could probably modify it for your needs. 
http://blogs.technet.com/b/askpfeplat/archive/2013/12/23/how-to-build-your-adfs-lab-on-server-2012-part2-web-sso.aspx
Mark Morowczynski
Microsoft Senior Platforms PFE
Blog:
http://blogs.technet.com/b/askpfeplat  Twitter:
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Similar Messages

  • How to send communication message from application server to load balancer

    Hi,
    Environment: 8 application servers are clustered behind a load balancer. Java/J2EE based client-server application
    When any one of the servers is supposed to go down, I want to send a message from that server, programmatically, to load balancer something which signifies "server is down or going down, do not forward any client connections to me". This is to avoid any CLOSE_WAITs.
    How do I achieve this? How can I send message programmatically from app server to load balancer? From very basic knowledge, SNMP can be used for this. But do not know how to start of. Any other means is also OK. Need details.
    Thanks
    Sunil

    At the same time we stop accepting any new connections [ServerSocket.accept() will be escaped during server shutdown].Just close the ServerSocket.
    Both these are working fine. But during the 25 seconds, still the client connections gets queued up trying to find that serverNot if you close the ServerSocket.
    reason being the load balancer is still forwarding requests to this server whose shutdown has started but not completed. So CLOSE_WAITS happen.Not if you close the ServerSocket. Not that the CLOSE_WAITS are the actual problem, as they will all disappear when the server exits. It's more that the clients shouldn't have been able to create the connection in the first place. Which wouldn't have happened if you had closed the ServerSocket.
    If we tell load balancer not to send any more client socket connections, then we completely avoid getting CLOSE_WAITS.If you close the ServerSocket ditto.

  • SCOT - How to send a mail from mail server to a SAP system

    Dear SAP colleagues,
    With SCOT you can configure the SAPConnect administration.
    You can easily configure your SAP system to allow the send of email from SAP to your mail server.
    Exemple :
    1. SID SAP : DL1
    2. Mail server : sn1exch.lec.local
    3. Target email : "myeamailaddress"
    Send email process 01 : 1. DL1 ==> 2. Mail Server ==> 3. You read your email in your inbox "myeamailaddress"
    My problem :
    From my inbox "myeamailaddress", I want to be able to send email to SAP (Dl1).
    Send email process 02 : 1. My inbox "myeamailaddress" ==> 2. Mail Server ==> 3. SAP (DL1).
    Question :
    Do you have any help to configure it ?
    Thanks in advance for your input.
    Best regards
    NetWeavAdmin

    Dear Olivier,
    I do not have a specifi technical problem.
    Let's summarize - my request concerns a SRM Workflow :
    I am ordering an article. When the order is higher than 2'000 USD, I need to get the approval of my manager.
    That's the workflow.
    Workflow :
    1. I am user in DL1 SAP System.
        UserName : CharlesN
        In SU01,
        charles(a)green.com
    2. From DL1 SAP system, I order articles. The order total amount is higher than 2'000 USD.
        In the workflow, an mail from DL1 is automatically send to my manager in his MS-Outook inbox.
        (manager(a)green.com)
    3. My manager reads the mail I have sent him and give his approvals by clicking on a approvals button.
        When clicking the button, an mail must be automatically send from my manager MS-Outlook inbox
        to DL1 to CharlesN inbox in SBWP in DL1 SAP system.
    I have configured SCOT and read OSS Note 455140.
    The SAPconnect virtual host is activated in DL1 (SICF).
    I think a miss a step in our mail server to relay a mail from MS-Outlook to my SAP system.
    Any suggestion is welcome.
    Best regards

  • How to send PO IDOC from SRM server

    Hi All,
    How to send IDOC, after successful creation of the PO in SRM ?
    Please tell me how to configure the SRM system ?
    Regards

    Hi,
    See the foll related useful link:
    Re: Intercompany process u0096 MM u0096 SD
    BR,
    Disha.
    Pls reward points for useful answers.

  • When restarting firefox after a crash, how do I stop it from re-opening all web pages that were open at the time of the crash?

    When firefox crashes, or if it hangs and I have to kill it, then when I go to restart it, it tries to re-open all pages that were open at the time it crashed or was killed. This is incredibly annoying, especially if one of the visited pages caused the crash or hang. It is also really annoying if some of the web pages happened to require passwords to log in, from multiple sites. In my case this occurs as I am frequently logged into multiple online educational web sites like ucsc-extension.edu and berkleemusic.com. In the login case you get multiple login prompt pop-ups with no way to correlate which pop-up goes with which web page. If there are a lot of them then it's a hopeless mess. This behavior is something that I never ever want and it infuriates me that not only is it the default behavior, it is something that there seems to be no way to turn off, at least via the configuration menus. Am I wrong? Is there a way to turn this off? If not can somebody either make it configurable or get rid if this fantastically idiotic behavior?
    I suspect there's a command line option for this but on my Mac (or most systems these days) it's sort of "unnatural" to be starting programs like browsers by means other than a provided program start-up icon, which gives you no choice about the command line options.
    Besides, as a default behavior the current behavior is something I cannot conceive of ever wanting. I would rather have a poke in the eye with a sharp stick.
    == This happened ==
    Every time Firefox opened
    == firefox crashed

    You can try this.
    In the address bar type about:config you will be warned that this is dangerous.
    Search for browser.sessionstore.resume_from_crash
    Double click on true to toggle it to false.
    Exit the page.
    Firefox will now NOT try to reload websites after a crash.

  • How to reuse a response from a server in the next request?

    Hello all,
    I am invoking the doGet method to get authenticated by the clickatell's server... the server responds with a "Ok: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" (not exact values) message in a fresh html page. This is the status code and its session_id after authentication.
    The problem is, how to reuse the session_id value in a request to invoke the doPost method?
    Can anyone help with an idea?
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
         String urlStr = new String ("http://api.clickatell.com/http/auth?api_id="
         + api_id + "&user="
         + username + "&password=" + password);
         res.sendRedirect(res.encodeRedirectURL(urlStr)) ;     
    public void doPost (HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {          
         String msg, to;
         msg = req.getParameter("msg");
         to = req.getParameter("to");          
         String urlStr = new String ("http://api.clickatell.com/http/sendmsg?session_id=" +sessionID + "&to=" + to + "&text=" + msg);
    HttpServletResponseWrapper hsrw = new HttpServletResponseWrapper(res);               
         res.sendRedirect(res.encodeRedirectURL(urlStr));
    }

    Hello,
    Can you try with the following code after doing appropriate modifications for your requirements.
    package servlet;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    import java.net.*;
    public class TestServlet extends HttpServlet {
         public void service(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException{
              System.out.println("Start ..........................................................");
              URL url                              = new URL("Your Portlet URL");
              HttpURLConnection urlConn     = (HttpURLConnection)url.openConnection();
              String toPost = "Your string";
              System.out.println("URLConnection object\t" + urlConn);
              urlConn.setDoInput(true);
              urlConn.setDoOutput(true);
              urlConn.setUseCaches(false);
              urlConn.setRequestProperty ("Content-Type", "Appropriate content type");
              //urlConn.setRequestProperty("Content-Length","Appropriate content length");
              urlConn.setRequestMethod("POST");
              OutputStream out = urlConn.getOutputStream();
              out.writeBytes(toPost.getBytes());          
              out.flush();
              out.close();          
              PrintWriter outStream = new PrintWriter(res.getOutputStream(),true);
              DataInputStream in = new DataInputStream(urlConn.getInputStream());
              String inputLine = in.readLine();
              while(inputLine!=null){
                   outStream.println(inputLine);
                   inputLine= in.readLine();
              outStream.close();
              in.close();
              System.out.println("End ...........................................................");
    As long as you do not get input stream from your URL Connection you will experience problems. Also the parameters should be passed as query string in the url. Rather pass them using output stream object obtained from URL connection. Also in your responding servlet you will be required to read the parameters using an Input Stream something like this.
    DataInputStream in = new DataInputStream(request.getInputStream());
                   String inputLine = in.readLine();          
                   while(inputLine!=null){
                        System.out.println("Input Received by servlet\t" + inputLine);                                        
                        inputLine = in.readLine();
    HTH
    VJ

  • How to get documents from content server on web pages

    Hello,
    I want to get the documents from the ECM(UCM server) of same document type and also want their metadata fields to displayed on adf application.
    How can i fetch these documents?

    Hi,
    You mean Data transfer between two components..
    To pass the value from one component to other component, you can use used component scenario.
    For example let use assume we have two comp ..
    Comp A,
    Comp B.
    now we need to pass the value from Comp A to Comp B.
    Then declare the Comp A as used component in Comp B.
    Now then you can create a node in the comp A component controller and check the interface check box there then the
    node and the attribute will be present in the interface controller also .
    and this interface controller context you can access in the component and map it to view there and display it.
    Webdynpro Application Integration..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
    cheers,
    Kris.

  • How to send the file in *application server* as an email?

    Hi,
    I have a file in application server and I want to send that file as an email from application server.
    Please let me know how to do it.

    Hi Suman,
    look here:
    Re: How to send an email from Application server?
    Regards, Dieter

  • How to send a file from FTP to external server

    My requirement is to send a file from FTP to D3(External) server.
    Now I am able to store the file in Appln server.
    I want to send the file created by the program thru FTP to D3 server.
    I know the username,Password,HostID,RFC destination details.
    How to send the file from FTP to D3.
    If u have any program,Plz send it...
    I dont want the function modules name...I want the example code ....
    Thanks in advance.

    Hi Sumi,
    You could do it so that you create a .bat or .cmd script to your server which does your ftp transfer.
    To do this you must use sm69 to create a external operating system command which you can call from FM SXPG_COMMAND_EXECUTE. To SXPG_COMMAND_EXECUTE you the file you need to transfer as a parameter.
    What happens is that your abap program passes the file to windows batch script (.bat .cmd) which will then do the transfer for you.
    Here's a sample of ftp-script for windows:
    echo open IP_ADDRESS_TO_YOUR_SERVER > c:zftp_transfer.ftp
    echo USERNAME>> c:zftp_transfer.ftp
    echo PASSWORD>> c:zftp_transfer.ftp
    echo put YOUR_FILE>> c:zftp_transfer.ftp
    echo quit>> c:zftp_transfer.ftp
    ftp -s:c:zftp_transfer.ftp
    also take a look here for more details:
    http://support.microsoft.com/?kbid=96269
    Ok, this might be a bit trivial but if your server is unix/aix etc.. Instead of using batch script you must do a shell script.
    Regards,
    Ville

  • How to decrease timeout value when there is no response from BOE server?

    We are using BOE XI R2 .NET SDK to logon BOE XI R2 Server as below as well as using Infoview/CMC logon BOE:
    set boSessionManager = Server.CreateObject("CrystalEnterprise.SessionMgr")
    set boEnterpriseSession = boSessionManager.Logon(boUserID, boPassword, boCMS, boAuthType)
    There is no response for long time from BOE server after I excuting log on BOE using .NET SDK or Infoview/CMC App for more than one minute.
    So I want to timeout the logon atction after a certain time such as one minute if there is no response from BOE server.
    My question comes:
    1. What is the default timeout value for this operation?
        Where can I find it and how to modify it?
    2. I found ther are some registry keys on .NET APP Server:
        HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\InprocServer\EnterpriseRequestTimeout
        HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\Client SDK\CorbaAdapter\WaitReplyTimeout
    Are they for the action timeout I mentioned above? If not, what do they work for?
    It seems that WaitReplyTimeout is for report data retrieval timeout according to Kbase article 1199286 and which registry setting to change for long running reports, is it correct?
    Thanks for any response.
    Thanks,
    Sunny

    I don't think there is a setting available for this.  The timeouts you are looking at are essentially how long to wait for a report to process.
    My concern about trying to find a setting like this is that if you do get the client (aka SDK) to timeout after one minute, the CMS may still recieve this request shortly after and logon, creating a session that no longer has a handle to it and will then have to wait for it to timeout because of inactivity which would tie up a license.

  • No Response From Application Server - How To over come this error message

    I am Using Oracle 10g Application server. if we run a report from our front end - jsp , if the transaction takes more than 10 minutes then 'No Response From Application Server ' error message is coming in browser. How to over come this. whether i have to set any transaction time in application server. If anybody knows this kindly give reply immediatly.

    There are settings in the reports configuration to modify your timeout. This is documented in the repors config file itself.
    cu
    Andreas

  • No Response From Application Server-how to overcome this error message

    I am Using Oracle 10g Application server. if we run a report from our front end - jsp , if the transaction takes more than 10 minutes then 'No Response From Application Server ' error message is coming in browser. How to over come this. whether i have to set any transaction time in application server. If anybody knows this kindly give reply immediatly.

    Can you provide additional background information? Is this a in-house application serviced through an OC4J container or a Report from the Middle Tier install?
    Is this request being front-ended by an OHS server? Are there firewalls involved?
    Regards.

  • Getting response from a server

    im working on a simple smtp mail sender and i want to get responses to the commands that i post to the DataOutputStream. in all examples on java.sun.com and the net, there is a while block used for reading response from the server.
    while((c=is.read()) != -1)
    sb.append((char)c);
    this code did not work on my application, i changed a bit like below:
    /**Get a response from server */
    private String getResponse() throws IOException {
    int CR = 0, LF = 0;
    int c;
    char ch;
    int count = 0;
    StringBuffer sb = new StringBuffer();
    while (true) {
    c = is.read();
    count++;
    ch = (char) c;
    if (c == -1) {
    break;
    else if (ch == '\r') {
    CR = count;
    else if (ch == '\n') {
    LF = count;
    if (LF - 1 == CR) { //CRLF seen
    sb.append(ch);
    break;
    sb.append(ch);
    return sb.toString();
    and i use this function in my code as
    os.write( ("QUIT\r\n").getBytes());
    System.out.println("QUIT : " + getResponse());
    this works, because it returns a single line that has a CRLF at the and of line, but if i want to read multi-line responses like greeting messages, i tried to change the code as on the examples like:
    /**Get a response from server */
    private String getResponse() throws IOException {
    int c;
    StringBuffer sb = new StringBuffer();
    while((c=is.read()) != -1)
    sb.append((char)c);
    return sb.toString();
    this code does not work, because i cannot reach the end of stream. i want to post one command and get one response for that command.
    how an algorithm i can develop to solve this problem?
    thanks for all help.

    i changed the code and it's working well now:
    /**Get a response from server */
    private String getResponse() throws IOException {
    int c;
    if((c=is.read()) != -1) {
    byte[] b = new byte[is.available()];
    StringBuffer sb = new StringBuffer();
    is.read(b);
    sb.append((char)c);
    for(int i=0; i<b.length; i++) {
    sb.append((char)b);
    return sb.toString();
    return "";
    if you directly use is.available() when there is no response currently available, it returns 0. we wait for the first character of server response, and then use is.available(). thanks to Kay_Kadner for the idea.
    (im a newbie, and dont know how to convert byte[] to String, tried b.toString() but only got meaningless values)

  • How to delete multiple rows from ADF table

    How to delete multiple rows from ADF table

    Hi,
    best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
    Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
    Frank

  • Java Client throws exception – while sending NTLMV2 Response from WIN7 to W

    We have written a Java client which connects to a webservices application using NTLM authentication against Windows 2008 R2 Server (using IIS7). This program works fine when running from Windows XP, Linux but failing when running from Windows 7.
    Error encountered is: java.io.IOException: Authentication failure.
    Here is what we have written to connect to HTTPS with credential using SSLContext as mentioned below.
    SSLContext sc = SSLContext.getInstance( "SSL" );
    sc.init( null, trustAllCerts, new java.security.SecureRandom() );
    HttpsURLConnection.setDefaultSSLSocketFactory( sc.getSocketFactory() );
    ( ( HttpsURLConnection )( m_oHttpURLConnection ) ).setHostnameVerifier( this );
    URL url = new URL("https://testsite...");
    HttpsURLConnection m_oHttpURLConnection = (HttpsURLConnection) url.openConnection();
    Following properties are set to HttpsURLConnection:
    RequestMethod : GET
    InstanceFollowRedirects : true
    AllowUserInteraction : true
    UseCaches : false
    DoOutput : true
    DoInput : true
    After setting all the above parameters the following code is used to set credentials data and connect to site
    Authenticator.setDefault(new MyAuthenticator ());
    m_oHttpURLConnection.connect();
    After connection is successful request XML is sent to server and expecting a response from the server. So when the below line is called exception is thrown.
    m_oHttpURLConnection.getResponseCode();
    Exception :
    java.io.IOException: Authentication failure
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1173)
         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
    After changing LAN Manager Authentication level setting of Windows 7 from “Send NTLMv2 response only” to “Send LM & NTLM – use NTLMv2 session security if negotiated”, application is working fine.
    Local Security Settings àSecurity SettingsàLocal Policies à Security Optionsà Network security: LAN Manager Authentication level
    By default in Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2: Send NTLMv2 response only , Lowering the security level at the client end is bit risk and typically is not recommended.

    this subforum is about Kerberos and GSS and not about NTLM. Why are you hasseling with NTLM? Take Kerberos.

Maybe you are looking for

  • File's Owner does not show methods in Interface Builder 3.2.6 but the class is set correctly and the nib on the lower left is green

    Hi, I'm trying to make my first IPhone app. After having problems with interface builder the first time I coppied the code directly from a tutorial in case I made any mistakes. I saved the program, and re-opened the .xib file. Right clicking  File's

  • What are the differences between ESB 10g and OSB 10g

    Hi, I'm newbie to OSB 10g. I have installed OSB 10g. I came to know after Oracle acquired BEA, the ALSB is renamed as OSB. I'm curious to know what are the differences between ESB and OSB. If there are many differences, please post any links which pr

  • 2d and 3d?

    Hi At the moment I am trying to figure out how to mix 2d and 3d graphics. I am using bufferStrategy. I started off drawing a sphere, but then when I turned double buffering on and added a 2d image, the Sphere dissapeared. This is the loop I am using:

  • Gr/ir clearing in month end

    hi in case of gr/ir why should do gr/ir clrg in month end in f.13. up getting vendor invoice ,it should be credit ,other than what will happen here plz tell me clearly thank u sowmya

  • Alter express code to include views and unions for top dim items

    If a user selects a dimension item at the top most level, the explain plan shows that it does a full table scan of the fact table instead of using the materialized views. If we add the highlighted information(see below) to the osa generated sql, then