Extract Portal User Name From HTTP POST Request (WSRP SOAP)

How can we extract the user name from the HTTP POST Request (*WSRP SOAP*) from the Portal to the Portlet Provider (Producer)?
We are load balancing between the Portal (10.1.14.2) and the providers (OC4J 10.1.3.3) and would like to extract the user name within the load balancer so we can create session affinity based on it.
BTW, we already tried using TCP Flow but were unable to see the user name.

From the documentation, it seems that you need to use
HttpURLConnection.setRequestMethod("POST"); // "GET" is the defaultalthough I have seen examples on the web without it.
Try!
Edit: Also the single quotes around userid and password may be a problem.
Use the previous poster suggestion, but do not include the single quotes.
Edited by: baftos on Aug 6, 2008 4:27 PM

Similar Messages

  • Retrieve data/files fro HTTP POST request in On-Demand process

    Hello,
    I would like to integrate https://github.com/blueimp/jQuery-File-Upload to my APEX 4.2 application inside XE11g. I would like to use this kind of jQuery component, multiple file upload, use Drag & Drop, image resize, size limit, filter extensions etc...
    This jQuery component and also others javascript uploaders sends data files to some defined URL. Developer need to build some servlet, php script or something on server side that will read files from HTTP request and stores it somewhere.
    Do you know how to do it in APEX? How can I read data from HTTP POST request in PL/SQL? Now I can only call my On-Demand application process from javascript, but I am not able to read any data from HTTP POST in it.
    Can I do it in APEX, or using MOD_PLSQL?
    I would like to implement this:
    1) some javascript uploader will call some URL of my application and sends HTTP POST with data files
    2) I will read data files from HTTP POST and store them into database
    3) I will create some HTTP response for javascript uploader
    Thank you for some tips

    I know about that existing plugin " Item Plugin - Multiple File Upload"
    But I doesn't work in IE and has only basic features. Licence for commercial use is also needed. I would like to use some existing jQuery plugin. There are many of these plugins with nice features. And only one problem is that I need to create some server side process/servlet/script.. that can recieve HTTP request, get files from it and stores them into DB.

  • How to get the system property - user.name from a client system

    Hi All,
    I have an application which would enable active users from the domain of the company. I want to get the name of the client from the system. I tried to run it on the local machine from Jdeveloper, it returned me the correct user name. But when the application is deployed on the Oracle Application server, and i hit the URL of the application, it returns the server URL.
    I understand that the JSP works on the server side here but help me out to get a solution. I want to read the user name from the client side.
    Thanks in advance!
    Akhil

    Akhil,
    I hope this will never work. Think about your requirement for a second....
    This would mean an application is able to see my user credentials without my knowledge. It's bad enough the know my IP if I'm not using TOR.
    To get your requirement to work you have to redefine it a bit. The user have to log in to your application. The application holds the name together with an ID of the session to know the user in further requests.
    Thats a basic security theme, described in the dos [Adding Security to a Fusion Web Application|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/adding_security.htm] .
    Timo

  • Extract "lineageId and Name" from sysssispackages Using XQuery

    Hi All,
    can someone help me, how to Extract "lineageId and Name" from sysssispackages?
    Below query gives me the XML structure of SSIS package but need to pull only those 2 values from that
    SELECT  
           Package= CAST(CAST(packagedata AS VARBINARY(MAX)) AS XML) 
        FROM      [msdb].[dbo].[sysssispackages]
    Thanks

    Thanks Latheesh for responding
    Below is the sample structure 
    <DTS:Executable xmlns:DTS="www.microsoft.com/SqlServer/Dts" DTS:ExecutableType="SSIS.Package.2">
      <DTS:Property DTS:Name="PackageFormatVersion">3</DTS:Property>
      <DTS:Property DTS:Name="VersionComments" />
      <DTS:Property DTS:Name="CreatorName">MyWorld\Sar</DTS:Property>
      <DTS:Property DTS:Name="CreatorComputerName">MYWORLD</DTS:Property>
      <DTS:Property DTS:Name="CreationDate" DTS:DataType="7">3/22/2014 8:12:40 PM</DTS:Property>
      <DTS:Property DTS:Name="PackageType">5</DTS:Property>
      <DTS:Property DTS:Name="ProtectionLevel">1</DTS:Property>
      <DTS:Property DTS:Name="MaxConcurrentExecutables">-1</DTS:Property>
      <DTS:Property DTS:Name="PackagePriorityClass">0</DTS:Property>
      <DTS:Property DTS:Name="VersionMajor">1</DTS:Property>
      <DTS:Property DTS:Name="VersionMinor">0</DTS:Property>
      <DTS:Property DTS:Name="VersionBuild">17</DTS:Property>
      <DTS:Property DTS:Name="VersionGUID">{3A8DDC68-97D0-4463-94AB-C9E1EF617E35}</DTS:Property>
      <DTS:Property DTS:Name="EnableConfig">0</DTS:Property>
      <DTS:Property DTS:Name="CheckpointFileName" />
      <DTS:Property DTS:Name="SaveCheckpoints">0</DTS:Property>
      <DTS:Property DTS:Name="CheckpointUsage">0</DTS:Property>
      <DTS:Property DTS:Name="SuppressConfigurationWarnings">0</DTS:Property>
      <DTS:ConnectionManager>
        <DTS:Property DTS:Name="DelayValidation">0</DTS:Property>
        <DTS:Property DTS:Name="ObjectName">fftest</DTS:Property>
        <DTS:Property DTS:Name="DTSID">{9EE16655-EBB1-4EAB-977A-334CBABE5855}</DTS:Property>
        <DTS:Property DTS:Name="Description" />
        <DTS:Property DTS:Name="CreationName">FLATFILE</DTS:Property>
        <DTS:ObjectData>
          <DTS:ConnectionManager>
            <DTS:Property DTS:Name="FileUsageType">0</DTS:Property>
            <DTS:Property DTS:Name="Format">Delimited</DTS:Property>
            <DTS:Property DTS:Name="LocaleID">1033</DTS:Property>
            <DTS:Property DTS:Name="Unicode">0</DTS:Property>
            <DTS:Property DTS:Name="HeaderRowsToSkip">0</DTS:Property>
            <DTS:Property DTS:Name="HeaderRowDelimiter" xml:space="preserve">_x000D__x000A_</DTS:Property>
            <DTS:Property DTS:Name="ColumnNamesInFirstDataRow">-1</DTS:Property>
            <DTS:Property DTS:Name="RowDelimiter" xml:space="preserve" />
            <DTS:Property DTS:Name="DataRowsToSkip">0</DTS:Property>
            <DTS:Property DTS:Name="TextQualifier">&lt;none&gt;</DTS:Property>
            <DTS:Property DTS:Name="CodePage">1252</DTS:Property>
            <DTS:FlatFileColumn>
              <DTS:Property DTS:Name="ColumnType">Delimited</DTS:Property>
              <DTS:Property DTS:Name="ColumnDelimiter" xml:space="preserve">_x0009_</DTS:Property>
              <DTS:Property DTS:Name="ColumnWidth">0</DTS:Property>
              <DTS:Property DTS:Name="MaximumWidth">50</DTS:Property>
              <DTS:Property DTS:Name="DataType">129</DTS:Property>
              <DTS:Property DTS:Name="DataPrecision">0</DTS:Property>
              <DTS:Property DTS:Name="DataScale">0</DTS:Property>
              <DTS:Property DTS:Name="TextQualified">-1</DTS:Property>
              <DTS:Property DTS:Name="ObjectName">ID</DTS:Property>
              <DTS:Property DTS:Name="DTSID">{D444A9DE-0FFC-47E9-9747-3A481D7DCEAA}</DTS:Property>
              <DTS:Property DTS:Name="Description" />
              <DTS:Property DTS:Name="CreationName" />
            </DTS:FlatFileColumn>
            <DTS:FlatFileColumn>
              <DTS:Property DTS:Name="ColumnType">Delimited</DTS:Property>
              <DTS:Property DTS:Name="ColumnDelimiter" xml:space="preserve">_x000D__x000A_</DTS:Property>
              <DTS:Property DTS:Name="ColumnWidth">0</DTS:Property>
              <DTS:Property DTS:Name="MaximumWidth">50</DTS:Property>
              <DTS:Property DTS:Name="DataType">129</DTS:Property>
              <DTS:Property DTS:Name="DataPrecision">0</DTS:Property>
              <DTS:Property DTS:Name="DataScale">0</DTS:Property>
              <DTS:Property DTS:Name="TextQualified">-1</DTS:Property>
              <DTS:Property DTS:Name="ObjectName">Name</DTS:Property>
              <DTS:Property DTS:Name="DTSID">{9BF026D2-6FD7-4038-93A7-25B1AA4DE092}</DTS:Property>
              <DTS:Property DTS:Name="Description" />
              <DTS:Property DTS:Name="CreationName" />
            </DTS:FlatFileColumn>
            <DTS:Property DTS:Name="ConnectionString">D:\XML Test\test.txt</DTS:Property>
          </DTS:ConnectionManager>
        </DTS:ObjectData>
      </DTS:ConnectionManager>
      <DTS:ConnectionManager>
        <DTS:Property DTS:Name="DelayValidation">0</DTS:Property>
        <DTS:Property DTS:Name="ObjectName">LocalHost.MyPOCs</DTS:Property>
        <DTS:Property DTS:Name="DTSID">{DCE78F76-3B49-4318-993E-13FE9B71E2D5}</DTS:Property>
        <DTS:Property DTS:Name="Description" />
        <DTS:Property DTS:Name="CreationName">OLEDB</DTS:Property>
        <DTS:ObjectData>
          <DTS:ConnectionManager>
            <DTS:Property DTS:Name="Retain">0</DTS:Property>
            <DTS:Property DTS:Name="ConnectionString">Data Source=.;Initial Catalog=MyPOCs;Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False;Application Name=SSIS-Package-{DCE78F76-3B49-4318-993E-13FE9B71E2D5}LocalHost.MyPOCs;</DTS:Property>
          </DTS:ConnectionManager>
        </DTS:ObjectData>
      </DTS:ConnectionManager>
      <DTS:Property DTS:Name="LastModifiedProductVersion">10.0.1600.22</DTS:Property>
      <DTS:Property DTS:Name="ForceExecValue">0</DTS:Property>
      <DTS:Property DTS:Name="ExecValue" DTS:DataType="3">0</DTS:Property>
      <DTS:Property DTS:Name="ForceExecutionResult">-1</DTS:Property>
      <DTS:Property DTS:Name="Disabled">0</DTS:Property>
      <DTS:Property DTS:Name="FailPackageOnFailure">0</DTS:Property>
      <DTS:Property DTS:Name="FailParentOnFailure">0</DTS:Property>
      <DTS:Property DTS:Name="MaxErrorCount">1</DTS:Property>
      <DTS:Property DTS:Name="ISOLevel">1048576</DTS:Property>
      <DTS:Property DTS:Name="LocaleID">1033</DTS:Property>
      <DTS:Property DTS:Name="TransactionOption">1</DTS:Property>
      <DTS:Property DTS:Name="DelayValidation">0</DTS:Property>
      <DTS:Variable>
        <DTS:Property DTS:Name="Expression" />
        <DTS:Property DTS:Name="EvaluateAsExpression">0</DTS:Property>
        <DTS:Property DTS:Name="Namespace">User</DTS:Property>
        <DTS:Property DTS:Name="ReadOnly">0</DTS:Property>
        <DTS:Property DTS:Name="RaiseChangedEvent">0</DTS:Property>
        <DTS:Property DTS:Name="IncludeInDebugDump">2345</DTS:Property>
        <DTS:VariableValue DTS:DataType="8" />
        <DTS:Property DTS:Name="ObjectName">Error</DTS:Property>
        <DTS:Property DTS:Name="DTSID">{F72B40BF-8B93-429B-8035-96AECD3631A3}</DTS:Property>
        <DTS:Property DTS:Name="Description" />
        <DTS:Property DTS:Name="CreationName" />
      </DTS:Variable>
      <DTS:LoggingOptions>
        <DTS:Property DTS:Name="LoggingMode">0</DTS:Property>
        <DTS:Property DTS:Name="FilterKind">1</DTS:Property>
        <DTS:Property DTS:Name="EventFilter" DTS:DataType="8" />
      </DTS:LoggingOptions>
      <DTS:Executable DTS:ExecutableType="SSIS.Pipeline.2">
        <DTS:Property DTS:Name="ExecutionLocation">0</DTS:Property>
        <DTS:Property DTS:Name="ExecutionAddress" />
        <DTS:Property DTS:Name="TaskContact">Performs high-performance data extraction, transformation and loading;Microsoft Corporation; Microsoft SQL Server v10; (C) 2007 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1</DTS:Property>
        <DTS:Property DTS:Name="ForceExecValue">0</DTS:Property>
        <DTS:Property DTS:Name="ExecValue" DTS:DataType="3">0</DTS:Property>
        <DTS:Property DTS:Name="ForceExecutionResult">-1</DTS:Property>
        <DTS:Property DTS:Name="Disabled">0</DTS:Property>
        <DTS:Property DTS:Name="FailPackageOnFailure">0</DTS:Property>
        <DTS:Property DTS:Name="FailParentOnFailure">0</DTS:Property>
        <DTS:Property DTS:Name="MaxErrorCount">1</DTS:Property>
        <DTS:Property DTS:Name="ISOLevel">1048576</DTS:Property>
        <DTS:Property DTS:Name="LocaleID">-1</DTS:Property>
        <DTS:Property DTS:Name="TransactionOption">1</DTS:Property>
        <DTS:Property DTS:Name="DelayValidation">0</DTS:Property>
        <DTS:LoggingOptions>
          <DTS:Property DTS:Name="LoggingMode">0</DTS:Property>
          <DTS:Property DTS:Name="FilterKind">1</DTS:Property>
          <DTS:Property DTS:Name="EventFilter" DTS:DataType="8" />
        </DTS:LoggingOptions>
        <DTS:Property DTS:Name="ObjectName">Data Flow Task</DTS:Property>
        <DTS:Property DTS:Name="DTSID">{9D6476B8-543C-488D-96C2-7C787F892763}</DTS:Property>
        <DTS:Property DTS:Name="Description">Data Flow Task</DTS:Property>
        <DTS:Property DTS:Name="CreationName">SSIS.Pipeline.2</DTS:Property>
        <DTS:Property DTS:Name="DisableEventHandlers">0</DTS:Property>
        <DTS:EventHandler>
          <DTS:Property DTS:Name="EventID">0</DTS:Property>
          <DTS:Property DTS:Name="EventName">OnError</DTS:Property>
          <DTS:Property DTS:Name="ForceExecValue">0</DTS:Property>
          <DTS:Property DTS:Name="ExecValue" DTS:DataType="3">0</DTS:Property>
          <DTS:Property DTS:Name="ForceExecutionResult">-1</DTS:Property>
          <DTS:Property DTS:Name="Disabled">0</DTS:Property>
          <DTS:Property DTS:Name="FailPackageOnFailure">0</DTS:Property>
          <DTS:Property DTS:Name="FailParentOnFailure">0</DTS:Property>
          <DTS:Property DTS:Name="MaxErrorCount">1</DTS:Property>
          <DTS:Property DTS:Name="ISOLevel">1048576</DTS:Property>
          <DTS:Property DTS:Name="LocaleID">-1</DTS:Property>
          <DTS:Property DTS:Name="TransactionOption">1</DTS:Property>
          <DTS:Property DTS:Name="DelayValidation">0</DTS:Property>
          <DTS:Variable>
            <DTS:Property DTS:Name="Expression" />
            <DTS:Property DTS:Name="EvaluateAsExpression">0</DTS:Property>
            <DTS:Property DTS:Name="Namespace">System</DTS:Property>
            <DTS:Property DTS:Name="ReadOnly">0</DTS:Property>
            <DTS:Property DTS:Name="RaiseChangedEvent">0</DTS:Property>
            <DTS:Property DTS:Name="IncludeInDebugDump">6789</DTS:Property>
            <DTS:VariableValue DTS:DataType="11">-1</DTS:VariableValue>
            <DTS:Property DTS:Name="ObjectName">Propagate</DTS:Property>
            <DTS:Property DTS:Name="DTSID">{C0BBF3C9-2116-4152-AB9E-FF436DA214CB}</DTS:Property>
            <DTS:Property DTS:Name="Description">The propagate property of the event</DTS:Property>
            <DTS:Property DTS:Name="CreationName" />
          </DTS:Variable>
          <DTS:LoggingOptions>
            <DTS:Property DTS:Name="LoggingMode">0</DTS:Property>
            <DTS:Property DTS:Name="FilterKind">1</DTS:Property>
            <DTS:Property DTS:Name="EventFilter" DTS:DataType="8" />
          </DTS:LoggingOptions>
          <DTS:Executable DTS:ExecutableType="Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask.ExecuteSQLTask, Microsoft.SqlServer.SQLTask, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91">
            <DTS:Property DTS:Name="ExecutionLocation">0</DTS:Property>
            <DTS:Property DTS:Name="ExecutionAddress" />
            <DTS:Property DTS:Name="TaskContact">Execute SQL Task; Microsoft Corporation; Microsoft SQL Server 2008; © 2007 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1</DTS:Property>
            <DTS:Property DTS:Name="ForceExecValue">0</DTS:Property>
            <DTS:Property DTS:Name="ExecValue" DTS:DataType="3">0</DTS:Property>
            <DTS:Property DTS:Name="ForceExecutionResult">-1</DTS:Property>
            <DTS:Property DTS:Name="Disabled">0</DTS:Property>
            <DTS:Property DTS:Name="FailPackageOnFailure">0</DTS:Property>
            <DTS:Property DTS:Name="FailParentOnFailure">0</DTS:Property>
            <DTS:Property DTS:Name="MaxErrorCount">1</DTS:Property>
            <DTS:Property DTS:Name="ISOLevel">1048576</DTS:Property>
            <DTS:Property DTS:Name="LocaleID">-1</DTS:Property>
            <DTS:Property DTS:Name="TransactionOption">1</DTS:Property>
            <DTS:Property DTS:Name="DelayValidation">0</DTS:Property>
            <DTS:LoggingOptions>
              <DTS:Property DTS:Name="LoggingMode">0</DTS:Property>
              <DTS:Property DTS:Name="FilterKind">1</DTS:Property>
              <DTS:Property DTS:Name="EventFilter" DTS:DataType="8" />
            </DTS:LoggingOptions>
            <DTS:Property DTS:Name="ObjectName">Execute SQL Task</DTS:Property>
            <DTS:Property DTS:Name="DTSID">{380C43D8-73EC-40A9-935B-5CA483E12652}</DTS:Property>
            <DTS:Property DTS:Name="Description">Execute SQL Task</DTS:Property>
            <DTS:Property DTS:Name="CreationName">Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask.ExecuteSQLTask, Microsoft.SqlServer.SQLTask, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91</DTS:Property>
            <DTS:Property DTS:Name="DisableEventHandlers">0</DTS:Property>
            <DTS:ObjectData>
              <SQLTask:SqlTaskData xmlns:SQLTask="www.microsoft.com/sqlserver/dts/tasks/sqltask" SQLTask:Connection="{DCE78F76-3B49-4318-993E-13FE9B71E2D5}" SQLTask:TimeOut="0" SQLTask:IsStoredProc="False" SQLTask:BypassPrepare="True"
    SQLTask:SqlStmtSourceType="DirectInput" SQLTask:SqlStatementSource="Declare @Error Varchar(250) = ?&#xA;  &#xA;Select @Error as Errodesc" SQLTask:CodePage="1252" SQLTask:ResultType="ResultSetType_SingleRow">
                <SQLTask:ResultBinding SQLTask:ResultName="Errodesc" SQLTask:DtsVariableName="User::Error" />
                <SQLTask:ParameterBinding SQLTask:ParameterName="@Error" SQLTask:DtsVariableName="System::ErrorDescription" SQLTask:ParameterDirection="Input" SQLTask:DataType="129" SQLTask:ParameterSize="-1" />
              </SQLTask:SqlTaskData>
            </DTS:ObjectData>
          </DTS:Executable>
          <DTS:Property DTS:Name="DTSID">{9FF1A2A2-474A-4477-BE6A-6CD9AEEDC0D2}</DTS:Property>
          <DTS:Property DTS:Name="Description" />
          <DTS:Property DTS:Name="CreationName">OnError</DTS:Property>
        </DTS:EventHandler>
        <DTS:ObjectData>
          <pipeline id="0" name="pipelineXml" description="pipelineXml" defaultBufferMaxRows="10000" engineThreads="10" defaultBufferSize="10485760" BLOBTempStoragePath="" bufferTempStoragePath="" runInOptimizedMode="true">
            <components>
              <component id="18" name="OLE DB Destination" componentClassID="{5A0B62E8-D91D-49F5-94A5-7BE58DE508F0}" description="OLE DB Destination" localeId="-1" usesDispositions="true" validateExternalMetadata="True" version="4" pipelineVersion="0"
    contactInfo="OLE DB Destination;Microsoft Corporation; Microsoft SqlServer v10; (C) Microsoft Corporation; All Rights Reserved; http://www.microsoft.com/sql/support;4">
                <properties>
                  <property id="19" name="CommandTimeout" dataType="System.Int32" state="default" isArray="false" description="The number of seconds before a command times out.  A value of 0 indicates an infinite time-out."
    typeConverter="" UITypeEditor="" containsID="false" expressionType="None">0</property>
                  <property id="20" name="OpenRowset" dataType="System.String" state="default" isArray="false" description="Specifies the name of the database object used to open a rowset." typeConverter="" UITypeEditor=""
    containsID="false" expressionType="None">[Datacheck]</property>
                  <property id="21" name="OpenRowsetVariable" dataType="System.String" state="default" isArray="false" description="Specifies the variable that contains the name of the database object used to open a rowset."
    typeConverter="" UITypeEditor="" containsID="false" expressionType="None" />
                  <property id="22" name="SqlCommand" dataType="System.String" state="default" isArray="false" description="The SQL command to be executed." typeConverter="" UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor,
    Microsoft.DataTransformationServices.Controls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" containsID="false" expressionType="None" />
                  <property id="23" name="DefaultCodePage" dataType="System.Int32" state="default" isArray="false" description="Specifies the column code page to use when code page information is unavailable from the data source."
    typeConverter="" UITypeEditor="" containsID="false" expressionType="None">1252</property>
                  <property id="24" name="AlwaysUseDefaultCodePage" dataType="System.Boolean" state="default" isArray="false" description="Forces the use of the DefaultCodePage property value when describing character data."
    typeConverter="" UITypeEditor="" containsID="false" expressionType="None">false</property>
                  <property id="25" name="AccessMode" dataType="System.Int32" state="default" isArray="false" description="Specifies the mode used to access the database." typeConverter="AccessMode" UITypeEditor="" containsID="false"
    expressionType="None">3</property>
                  <property id="27" name="FastLoadKeepIdentity" dataType="System.Boolean" state="default" isArray="false" description="Indicates whether the values supplied for identity columns will be copied to the destination.
    If false, values for identity columns will be auto-generated at the destination. Applies only if fast load is turned on." typeConverter="" UITypeEditor="" containsID="false" expressionType="None">false</property>
                  <property id="28" name="FastLoadKeepNulls" dataType="System.Boolean" state="default" isArray="false" description="Indicates whether the columns containing null will have null inserted in the destination. If
    false, columns containing null will have their default values inserted at the destination. Applies only if fast load is turned on." typeConverter="" UITypeEditor="" containsID="false" expressionType="None">false</property>
                  <property id="29" name="FastLoadOptions" dataType="System.String" state="default" isArray="false" description="Specifies options to be used with fast load.  Applies only if fast load is turned on." typeConverter=""
    UITypeEditor="" containsID="false" expressionType="None">TABLOCK,CHECK_CONSTRAINTS</property>
                  <property id="30" name="FastLoadMaxInsertCommitSize" dataType="System.Int32" state="default" isArray="false" description="Specifies when commits are issued during data insertion.  A value of 0 specifies
    that one commit will be issued at the end of data insertion.  Applies only if fast load is turned on." typeConverter="" UITypeEditor="" containsID="false" expressionType="None">2147483647</property>
                </properties>
                <connections>
                  <connection id="26" name="OleDbConnection" description="The OLE DB runtime connection used to access the database." connectionManagerID="{DCE78F76-3B49-4318-993E-13FE9B71E2D5}" />
                </connections>
                <inputs>
                  <input id="31" name="OLE DB Destination Input" description="" hasSideEffects="true" dangling="false" errorOrTruncationOperation="Insert" errorRowDisposition="FailComponent" truncationRowDisposition="NotUsed">
                    <inputColumns>
                      <inputColumn id="39" name="" description="" lineageId="121" usageType="readOnly" errorOrTruncationOperation="" errorRowDisposition="NotUsed" truncationRowDisposition="NotUsed" externalMetadataColumnId="37"
    mappedColumnId="0" />
                      <inputColumn id="186" name="" description="" lineageId="181" usageType="readOnly" errorOrTruncationOperation="" errorRowDisposition="NotUsed" truncationRowDisposition="NotUsed" externalMetadataColumnId="36"
    mappedColumnId="0" />
                    </inputColumns>

  • Retrieve authenticated user name from environment

    Hi All,
    I'm connecting to Oracle from C++ using OCCI API. At the same time, the database authentication is based on secure Oracle Wallet feature.
    conn = env->createConnection("","",connection_string);
    Now, after I've created connection can I retrieve user name from the environment or connection object without querying database?
    Thank you.

    Hi Patrick,
    I'm just trying your code example in Eclipse but it gives me plenty of errors so I guess I'm not importing the right libraries or so.
    My goal was to write just a simple response.write of the userID stored in the cookie...
    The first error appears in the "ticket.setCertificates(this.certificates);" line, saying that "certificates cannot be resolved"..
    Here's what I used :
    import com.sapportals.portal.prt.component.*;
    import com.sap.security.*;
    public class cookie extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              try
              com.sap.security.core.ticket.imp.Ticket ticket = new com.sap.security.core.ticket.imp.Ticket();
              ticket.setCertificates(this.certificates);
              ticket.setTicket(base64Value);
              String vali = ticket.toString();
              ticket.verify();
              if (ticket.isValid())
              info = new SAPTicketInfo(ticket.getUser(),ticket.getSystemID(),ticket.getSystemClient(),ticket.getExpirationDate(),ticket.getCodepage());
              response.write (info);
              else
              throw new TicketVerifierException("Ticket is invalid ");
              catch (Exception ex)
              throw new TicketVerifierException("Error in verifying ticket "+ex.getMessage(),ex);
    What am I missing ?

  • How can I transfer two user names from an iMac to a new macbook?

    How can I transfer two user names from an iMac to a new macbook?
    got a new laptop and need to transfer two usernames to it, complete with all documents help?

    Assuming you haven't already set up a user, the easiest way is to use the Setup Assistant during first boot of the new Mac, with the two Macs connected by firewire.
    You'll be prompted to migrate from a choice of sources - choose "from another Mac", select the catagories of data you want to transfer and follow the instructions.
    More info here, in Pondini's FAQ; http://pondini.org/OSX/SetupAsst.html

  • How to get the Users Name from the SSL certificate?

    Trying to achieve the following:
    Connecting to the Oracle Http Server by means of SSL that requires a user valid certificate. Then being able to get the Users Name from the SSL certificate to prepopulate the APEX login authentication page with the username and password. Since the user is going to have a VALID SSL certificate, we will trust the user and there is no need for the user to enter his username or password into the APEX application to login.
    Does SSO do this or something else?

    Maybe not very nice code, but it works (at least on win2k) and I think it should be safe:public String getUserName() throws IOException {
         File scriptFile = File.createTempFile("script", ".js");
         FileWriter fw = new FileWriter(scriptFile);
         fw.write ("WScript.Echo(WScript.CreateObject('WScript.Network').UserName)");
         fw.flush();
         fw.close();
         BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("CSCRIPT.EXE \"" + scriptFile + "\" //Nologo").getInputStream()));
         String uName = br.readLine();
         br.close();
         scriptFile.delete();
         if (scriptFile.exists()) scriptFile.deleteOnExit();
         return uName;
    }

  • HTTP POST Request with XML file in

    Hi @ all,
    I would like to send an HTTP Request with an XML File in the body to an SAP System
    I have the target URL and the a XML File.
    Now the question is. Is it possible to use something like the HTTP_POST FuBa to send an url post request with an xml file?
    If yes can anybody give me a hint?
    I have a php script which exactly do this coding. But to integrate it all in one system it is necessary to transform it into ABAP and call it there.
    // compose url and request and call send function
    function test($productID, $categoryID) {
         // create url
         $PIhost = "XXX.wdf.sap.corp";
         $PIport = "50080";
         $PIurl = "/sap/xi/adapter_plain";
         $PIurl .= "?sap-client=800";
         $PIurl .= "&service=XXX";
         $PIurl .= "&namespace=XXX";
         $PIurl .= "&interface=Frontend_Interface";
         $PIurl .= "&qos=EO";
         $PIurl .= "&sap-user=XXX";
         $PIurl .= "&sap-password=XXX";
         // create xml
         $request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
         $request .="<n1:FrontendInbound_MessageType xmlns:n1=\"http://crmpiebay.com\">\n";
         $request .= "\t<FrontendInbound>\n";
         $request .= "\t\t<ProductName/>\n";
         $request .= "\t\t<ProductCategory>".$categoryID."</ProductCategory>\n";
         $request .= "\t\t<ProductID>".$productID."</ProductID>\n";
         $request .= "\t\t<MessageID/>\n";
         $request .= "\t</FrontendInbound>\n";
         $request .= "</n1:FrontendInbound_MessageType>";
         // send http request
         postToHost($PIhost, $PIport, $PIurl, $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"]."/".$_SERVER["PHP_SELF"], $request);
    // send post request to PI server
    function postToHost($host, $port, $path, $referer, $data_to_send) {
      $fp = fsockopen($host, $port);
      if($fp) {
           $res="";
           fputs($fp, "POST $path HTTP/1.1\r\n");
           fputs($fp, "Host: $host\r\n");
           fputs($fp, "Referer: $referer\r\n");
           fputs($fp, "Content-type: text/plain\r\n");
           fputs($fp, "Content-length: ". strlen($data_to_send) ."\r\n");
           fputs($fp, "Connection: close\r\n\r\n");
           fputs($fp, $data_to_send);
           while(!feof($fp)) {
               $res .= fgets($fp, 128);
           fclose($fp);
           return $res;
    Would be great if anybody could give me a hint how to solve such a HTTP Post request with XML body data.
    Thanks in advance.
    Chris
    Edited by: Christian Kuehne on Feb 26, 2009 4:32 PM

    hi friend could you please share your solution regarding this query if u got it already?

  • Getting user name from sopa header

    How should get user name from soap header in my udf...?i searched in sdn,but not get exact solution...

    I din't get this with SRemoteUser
    1. i've enabled " Do Not Use SOAP Envolope"
    2.Enabled ASMA
    3.Variable Transport Binding .
    used the following code as well:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey user = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
    conf.get(user);
    But not value in it.. Correct me if iam wrong..

  • Query regarding sending XML over HTTP Post request

    Hello,
    I am trying to send XML data from a server to client via HTTP Post request
    And vice versa � receive the data by a client
    Assume that the xml data looks something like
    <?xml+version="1.0"?>
    So my post query will look like
    http://<IP Address>:<port>/
    POST /MessageReceiver.jsp HTTP/1.0
    Host: www.SomeHost.net
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 38
    %3C%3Fxml%2Bversion%3D%221.0%22%3F%3E+
    This information will be received by the client and converted back to xml data.
    My query is - is there some library/open-source stuff that
    does the process of transcoding the entity's non-ASCII characters
    at the server side
    and decoding the URL back to human-readable form at the client side?
    i.e. I need a simple mechanism to convert
    <?xml+version="1.0"?>
    to
    %3C%3Fxml%2Bversion%3D%221.0%22%3F%3E+
    at the server side, while sending data
    and do the opposite at the client side to get the xml back.
    Also could some one confirm if JTidy is a right tool to check if the xml is well-formed?
    Or is there any other standard tool that checks for well-formed properties of xml?
    regards,
    Deepak.

    java.net.URLEncoder / URLDecoder?
    Also could some one confirm if JTidy is a right tool to check if the xml is well-formed?No, it's for parsing HTML. An XML parser is checking for well-formedness in any case.

  • How to get the Portal Page name from PLSQL?

    Can anyone tell me how to get the portal page name from my dynamic page using plsql?
    Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
    My code for attempting to get the page id is below.
    <oracle>
    declare
    v_pageid varchar2(30);
    begin
    v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
    htp.print('Page is '|| v_pageid);
    end;
    </oracle>
    Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
    Thanks in advance!
    Sarah

    Few clarifications -
    1. wwpro_api_parameters cannot be used to get default portal
    page parameters such as '_pageid', '_dad', '_schema' etc.,
    2. Page information can be obtained through any components which
    are available in that particular page. For example, in case of
    dynamic page, we need to publish it as a portlet and add it to the
    page. This process creates necessary packages in the DB, but we
    will not have access to the portlet methods.
    So, I would prefer creating a simple DB provider & portlet and access
    page title from its show method as follows -
    //Declare local variable l_page_id, l_page_title as varchar2
    select page_id into l_page_id from wwpob_portlet_instance$ where
    portlet_id = p_portlet_record.portlet_id and
    provider_id = p_portlet_record.provider_id;
    select name into l_page_title from wwpob_page$ where id=l_page_id;
    More information on DB provider can be found at
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
    Secondly, usage of wwpro_api_parameters.get_value method is
    incorrect. This method expects two arguments -
    <ul>
    <li><b>p_name : </b> The name of the parameter to be returned.</li>
    <li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
    </ul>
    p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
    The following code fragment fetches all parameters available
    for a portlet.
    Note : Copy this code into 'show' method of your portlet.
    //Declare l_names, l_values as owa.vc_arr
    * Retreive all of the names of parameters for this portlet
    l_names := wwpro_api_parameters.get_names(
    p_reference_path=>p_portlet_record.reference_path);
    * Retreive all of the values of parameters for this portlet
    l_values := wwpro_api_parameters.get_values(p_names=>l_names,
    p_reference_path=>p_portlet_record.reference_path);
    //Loop through these arrays to get parameter information
    htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
    htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
    htp.tableRowClose;
    if l_names.count = 0 then
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.p('<td COLSPAN="2">'
    ||wwui_api_portlet.portlet_text(
    'No portlet parameters were passed on the URL.',1)
    ||'</td>');
    htp.tableRowClose;
    else
    for i in 1..l_names.count loop
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(l_names(i));
    htp.tableData(l_values(i));
    htp.tableRowClose;
    end loop;
    end if;
    htp.p('</table></center>');
    Hope it helps...
    -aMJAD.

  • Retrieving portal user name

    Hi,all
    In NW 2004 I retrieved the user name of portal user by following:
    HttpServletRequest req =((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter ()).getHttpServletRequest();   
    wdContext.currentContextElement().setUserName(req.getRemoteUser());
    But in NW 2004S it is not working.I can not to locate IWebContextAdapter.
    How can I retrieve the portal user name here?
    Regards,
    Michael

    Hi,
    Please try following code and let me know.
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    try
         //get the currently logged in user
         IWDClientUser wdUser = WDClientUser.getCurrentUser();
        //get the com.sap.security.api.Iuser; It is null in case wdUser represents an anonymous user
        IUser user = wdUser.getSAPUser();
       //check whether the user is anonymous
       if (user != null)
          //access logon ID by iterating through the IUserAccount array
          IUserAccount[] acct = user.getUserAccounts();
         if(acct[0] != null)
            String strUserid = acct[0].getLogonUid();
            wdContext.currentContextElement().setId(strUserid);
            //pass the value obtained from the portal to value attribute
    catch (Exception e)
       wdComponentAPI.getMessageManager().reportException("Failed to get current user: " + e.getLocalizedMessage(), true);
    Regards,
    Vaibhav

  • We have an itunes account on our desktop and my kids have it on their ipod and iphone. I went in and changed our user name from my old e-mail address which is no longer accessible to my new one and now either of my kids can access the itunes store..

    We have an itunes account on our desktop and both my kids have it on iphone and ipod. I went in and changed out user name from an old e-mail address which is no longer accessible to my one I use now... When the kids try to sign onto the itunes store it tells them they have the wrong user name..
    Can this be fixed??

    Did you change the email address or create a new Apple ID?
    If the email address associated with the account was merely changed, sign out of the Apple ID on the devices and sign in using the new credentials.

  • How to access a Portal User Info from a J2EE application?

    Hi,
    I have deployed a j2ee application in portal and its running fine.
    from that application i need to assign some roles to some users.i have the user id.
    so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?
    plz help me
    regards,
    Visweswar

    Hi,
    Please check out this to get the portal user information from Java -
    WdClientUser class/Interface to aciehve this.
    Please check out these links on the same -
    WDClientUser.getClientUser IUser
    help needed
    Regards
    Lekha

  • How to retrieve user name from a given Subject?

    I am in a situation where I need to retrieve user name from the Subject that is populated when user logs in. I have the active Subject and I do following to get the principals in the subject and iterate through them:
    Set principals = subject.getPrincipals();
    Iterator ite = principals.iterator();
    while (ite.hasNext()) {
    Principal prin = (Principal)ite.next();
    String name = prin.getName();
    But this contains all the principals, including user name, roles, password, etc. How do I programmatically determine which one is user name?

    Don't you have different principal types? I am making a jaas module and I have different principals for roles, groups etc. I think of principals as attributes, the type in the attribute name and the principal name is the attribute value.
    To get all the principals of the type SomePrincipal, you can use:
    Set principals = subject.getPrincipals(SomePrincipal.class)
    You can also take som principal an test wether it is an instance of som type:
    if (Principal p instanceof SomePrincipal){..}
    An other solution which might be better if you have many different attributes is to store both attribute name and value in the name of the principal.
    If "mark" is a username the principal name will be "username:mark" el.
    Then it will be easy to find the username.

Maybe you are looking for

  • How do I install Adobe Shockwave Player  on the new Macbook Air 2013

    I have just purchased the new Macbook Air 2013 I was trying to install the Adobe Shockwave Flashplayer. Now it dowloads but the problem is that when I go try to play the game it still says I am missing a plug-in. I have been trying to switch it to op

  • Please explain me about  SDM & JSPM

    Hi Experts please explain me about  SDM & JSPM, what is diffrence between SDM & JSPM and why we use both tools. please provide me any documents or any links about SDM & JSPM. Regards BANDLA

  • I have set up an offline payment gateway...but when done checking out it always gives an error messa

    When I receive the error...and then click refresh on the same page it goes to the desired content. Also the cart is emptied...which is good but no message telling the customer that their order has been completed and received.

  • Route dtermine in the delivery

    When i am doing stock transport order.after that i am doing delivery through cl10d after that in delivery route is not appearing ,where we should do the settings for route determination in delivery ,please let me know Regards Damodhar

  • Tip: Track Titles listed twice

    I've noticed this sometimes when I open the track list for an album, iTunes will show duplicate titles as follows. The astrisks are the Ratings column. Example for album Foreigner - 4 1. Night Life                              ***** 1. Night Life 2.