Unable to get Http Header info in webservice Handler

Hi,
I have been trying to get the Header info in my custom Handler unsuccessfully
for the past few days.
Upon web search, I am constantly redirected to use a Servlet filter to get the
headers. I have to use the Weblogic Native SOAP engine and not any Servlet Filters.
In Axis, I can do a (HttpServletRequest)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)
which returns the HttpServletRequest and then I can get the headers off that.
I can't find something similar in WebLogic. Any ideas?
Any help in helping me track this problem down would be much appreciated.
Thanks,
Sridhar.

Yes, you are correct that you are taking a risk by using the "__BEA_PRIVATE_BINDING_PROP"
property, on the MessageContext object. The mechanism I provided is the recommended
(and supported) way to get the HTTP headers, as it only uses "documented" class.
Some developers think you are trying to "hide" something with undocumented classes,
but I don't think this is the case with BEA. There are good reasons and the point
you made about the likelihood of an unannouced future change breaking your code,
is probably pretty high on the list :-)
Getting the REMOTE_ADDR (or REMOTE_HOST) would most likely require the "undocumented"
approach you've taken. You could get the HttpServletRequest from this same HttpServerBinding
object, and call the getRemoteAddr() method on it. However, I really, really,
really think you should consult our "fantabulous" BEA support department, to see
if doing this will be supported.
Regards,
Mike Wooten
"Sridhar" <[email protected]> wrote:
>
Michael,
Thanks a bunch for your reply. I have been going crazy over this and
your reply
made my day.
I still have a slight problem with this though. This does not seem to
give me
the Client IP etc. Any ideas to get that?
Thanks again for the code. It was a great help.
Sridhar.
PS BTW, I found another way of getting the same info:
HttpServerBinding httpBinding = (HttpServerBinding) messageContext.getProperty("__BEA_PRIVATE_BINDING_PROP");
Enumeration headerEnum = httpBinding.getRequest().getHeaderNames();
while (headerEnum.hasMoreElements()) {
String header = (String) headerEnum.nextElement();
System.out.println("header = " + header);
System.out.println("header Value = " + httpBinding.getRequest().getHeader(header));
But, I am guessing BEA doesn't want me to go this route as they might
change the
implementation and my code will immediately break.
"Michael Wooten" <[email protected]> wrote:
Hi Sridhar,
You should be able to get at the HTTP Headers that were sent by theconsumer
of
your web service, by using the following code in your JAX-RPC handler:
import java.util.Iterator;
import javax.xml.rpc.handler.MessageContext;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import javax.xml.rpc.JAXRPCException;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.MimeHeader;
import javax.xml.soap.SOAPMessage;
public boolean handleRequest(MessageContext mc)
SOAPMessageContext messageContext = (SOAPMessageContext) mc;
try
SOAPMessage original = messageContext.getMessage();
MimeHeaders mimeheaders = original.getMimeHeaders();
MimeHeader mimeheader = null;
Iterator iter = mimeheaders.getAllHeaders();
for (; iter.hasNext();)
mimeheader = (MimeHeader) iter.next();
System.out.println("name=" + mimeheader.getName() + ", value="
+ mimeheader.getValue());
catch (Exception e)
e.printStackTrace();
throw new JAXRPCException(e);
Here's the output from the System.out.println():
name=Content-Type, value=text/xml
name=SOAPAction, value=""
name=User-Agent, value=Java1.4.1_05
name=Host, value=localhost:7001
name=Accept, value=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
name=Connection, value=Keep-Alive
name=Content-Length, value=505
Regards,
Mike Wooten
"Sridhar" <[email protected]> wrote:
Hi,
I have been trying to get the Header info in my custom Handler unsuccessfully
for the past few days.
Upon web search, I am constantly redirected to use a Servlet filterto
get the
headers. I have to use the Weblogic Native SOAP engine and not any
Servlet
Filters.
In Axis, I can do a (HttpServletRequest)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)
which returns the HttpServletRequest and then I can get the headersoff
that.
I can't find something similar in WebLogic. Any ideas?
Any help in helping me track this problem down would be much appreciated.
Thanks,
Sridhar.

Similar Messages

  • How can i get the HTTP header info using Java

    Hi,
    I kinda need to extract the HTTP header info from a page that i goto through a URL objecrt and socket. Java.
    Can someone please help me.. thanks!!!!
    System.out.println("Enter URL : ");
    String getAdd; // The URL that the crawler begins at.
    // Manually take in URL
    Scanner sc = new Scanner(System.in);
    getAdd = sc.nextLine();
    URL myURLobj = new URL(getAdd);
    String hostName = myURLobj.getHost();
              Socket s = new Socket(hostName, 80);

    URL url = new URL(getAdd);HttpURLConnection conn = (HttpURLConnection)url.openConnection();
    Map<String, List<String>> headerFields = conn.getHeaderFields();

  • Any way to get HTTP header in web dynpro Java?

    Is there any way to get HTTP header in web dynpro java? This method gives me the params. Is params same as header? It doesn't have any way to retrieve header data. I am on NW 7.0.19
    WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("param");

    Dear Faraz,
    I'm afraid the code you've pasted is only to retrieve URL parameters.
    Have you tried this document to see if it offers any good hint:
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9]
    Not sure if you can process the HTTP header with a WD4J.
    An alternative could be to develop some Portal component in plain JAVA working as a proxy to call your WD4J afterwards.
    That portal component would process your HTTP header and forward any parameter to your WD4J.
    But this is me just guessing.
    Kind Regards
    /Ricardo

  • Hoiw do I get HTTP Header fields?

    Hi,
    I want to get the http header field If-None-Match. How do I get a hold of the HTTP headers for a request? I do not want to use If-Modified-Since due the the problems with out of synchronized clocks, determining time zones etc.
    The content is in a BLOB, and I don't want to deliver it at all if not necessary. OWA_CACHE does not help, it still delivers the large amount of data.
    I can set the ETag header, no problem, but how do I get theIf-None-Match header field returned from the browser so I can avoid unnecessary content delivery?
    Thanks,
    Larry

    Is there a mod_plsql forum?
    I can't seem to find it, this looked the closest since I am under the impression HTMLDB depends on mod_plsql...
    Larry

  • Unable to get Reponse Header in BPEL

    We are invoking a webservice from BPEL .We are not able to get the response header returned by the Webservice .
    Below is the extract of the invoke activity invoking the webservice.
    <invoke name="InvkGWMGetServiceAgentTransactionSummary"
    portType="ns1:GetServiceAgentTransactionSummaryPortType"
    inputVariable="InvkGWMGetServiceAgentTransactionSummary_GetServiceAgentTransactionSummary_InputVariable"
    outputVariable="InvkGWMGetServiceAgentTransactionSummary_GetServiceAgentTransactionSummary_OutputVariable"
    partnerLink="PartnerLink_1"
    operation="GetServiceAgentTransactionSummary"
    bpelx:outputHeaderVariable="varOutMsg"
    bpelx:inputHeaderVariable="varManifest varSecurity"/>.
    Please let me know where I am commiting a mistake.
    The above code is getting compiled and deployed but doesn't give a header response.
    Thanks in advance.

    Please make sure that you follow the syntax :
    <invoke bpelx:inputHeaderVariable="inHeader1 inHeader2 ..."
    bpelx:outputHeaderVariable="outHeader1 outHeader2 ..."
    .../>
    <receive bpelx:headerVariable="inHeader1 inHeader2 ..." .../>
    <onMessage bpelx:headerVariable="inHeader1 inHeader2 ..." .../>
    <reply bpelx:headerVariable="inHeader1 inHeader2 ..." .../>

  • Any way to add HTTP Header info before redirect?

    I have a third party web site that requires basic authentication. My servlet knows the userid and password from its own database. Is there some way I can add the encoded authorization header before I do a response.sendRedirect( ) ??
    I just can't find a way to do this, even by creating a wrapper class for HttpServeletRequest that uses the request supplied to my servlet for all its work (the container must use request info that is not in the HttpServletRequest interface).
    I was thinking that I could have my servlet add the request Header for basic authentication and do a forward(..) to another servlet in my context, which in turn does a response.sendRedirect( ) to the third party BBS, but I can't find ANY way to muck with the request Headers. Any help is GREATLY appreciated!
    -- Dave D.

    I too am in need of this now... was a solution ever found? Can someone procide one?
    HttpServletRequest req = context.getRequest();
    HttpServletResponse res = context.getResponse();
    HttpSession ses = req.getSession(true);
    res.setHeader("sH", "setanewHeader");
    res.addHeader("aH", "addanewHeader");
    res.sendRedirect(res.encodeRedirectURL( req.getHeader("referer") );
    i can't seem to reference sH or aH in my page and they don't seem to be in the response.
    thx

  • How to read http  header from Forms

    Hi,
    I have a forms application deployed on 10g AS. We are planning to integrate Oracle Identity management with our forms application. Currently, I access my forms application with an url, say http://hostname/forms/frmservlet?config=test. And, I get a Signon form, where I capture the logon and pwd, and specific to the user credential, I show another form. By integrating my appln with Identity management, I would be protecting my resource in the oracle access system, the WebGate component will do the backend authentication process along with the access server and the directoy service. Upon successful authentication, the DN form the LDAP repository (lets say the userid of my forms application) for the user is returned to the WebGate as http header information/cookie by the Access System. Now without altering the code in frmservlet Servlet, I need to capture the http header info (which contains the userid for the forms application of the user) in my default Signon form. How can I capture this?
    Can someone please help
    Regards,
    Suresh

    hi
    the following link may helpful to you
    http://e-docs.bea.com/wls/docs81/webserv/anttasks.html#1111537
    Regards
    Prasanna Yalam

  • Not able to Pass header info to Microsoft MapPoint WebService using WLS10

    We are passing some Header info to the MapPoint Web Service from our client Web Service which is hosted in Weblogic 10, however we are not sure if the info is getting passed.
    The actual soap header which we are trying to postis as below:
    <env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <m:CustomerInfoFindHeader xmlns:m="http://s.mappoint.net/mappoint-30/">
    <m:CustomLogEntry>2</m:CustomLogEntry>
    </m:CustomerInfoFindHeader>
    </env:Header>
    We are using the below code snippet for setting the header:
    Document doc = null;
    try
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    doc = factory.newDocumentBuilder().newDocument();
    catch(ParserConfigurationException pce)
    System.out.println("ERROR -> " + pce.getMessage());
    Element header = doc.createElementNS("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV:Header");
    Element headerContent = doc.createElementNS("http://s.mappoint.net/mappoint-30/","m:CustomerInfoFindHeader");
    Element headerChildContent = doc.createElementNS("http://s.mappoint.net/mappoint-30/", "m:CustomLogEntry");
    headerChildContent.appendChild(doc.createTextNode("2"));
    headerContent.appendChild(headerChildContent);
    header.appendChild(headerContent);
    Attr nsAttr = doc.createAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:m");
    nsAttr.setValue("http://s.mappoint.net/mappoint-30/");
    headerContent.setAttributeNodeNS(nsAttr);
    findServiceControl.setOutputHeaders(new Element[] {header});
    Here findServiceControl is the Service Control object.
    Even if the code is not throwing any error/exception I am not able to see the header portion which invoking the Mappoint Web Service (using the weblogic test client for testing the webservice).
    Is there any other methodology for setting the header.
    Regards
    Sanjeev Singh

    If you're not sure the header is being created properly, you should switch to using a javax.xml.transform.stream.StreamSource and javax.xml.transform.dom.DOMResult. For instance:
    import java.io.ByteArrayInputStream;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.stream.StreamSource;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    StringBuffer xml = new StringBuffer()
    .append("<env:Header ")
    .append("xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\">")
    .append("<m:CustomerInfoFindHeader xmlns:m=\"http://s.mappoint.net/mappoint-30/\">")
    .append("<m:CustomLogEntry>2</m:CustomLogEntry>")
    .append("</m:CustomerInfoFindHeader>")
    .append("</env:Header>);
    TransformerFactory xformFactory = TransformerFactory.newInstance();
    Transformer transformer = xformFactory.newTransformer();
    ByteArrayInputStream bais = new ByteArrayInputStream(xml.toString().getBytes());
    DOMResult result = new DOMResult();
    transformer.transform(new StreamSource(bais), result);
    Document document = (Document)result.getNode();
    findServiceControl.setOutputHeaders(new Element[] {document.getDocumentElement()});
    If you want to see the SOAP request being sent to the Mappoint Web Service, add the following to the JAVA_OPTIONS environment variable (in the startWebLogic.cmd file), and bounce it:
    -Dweblogic.wsee.verbose=*
    -Dweblogic.log.RedirectStdoutToServerLogEnabled=true
    This will write the SOAP request (and SOAP response) to the server log of the WebLogic Server instance, which the service control is running in.

  • I'm trying to sync my Iphone to get some new music but getting error message 'itunes was unable to load data class info'.  How do I fix it (my husband's 2 devices work fine on the PC)

    I'm trying to sync my Iphone to get some new music but getting error message 'itunes was unable to load data class info'.  How do I fix it (my husband's 2 devices work fine on the PC).  It's driving me mental and has stopped me putting anything new on for months.  Help!!!

    http://support.apple.com/kb/TS2690

  • Make http header available webservice layer

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
    <META content="MSHTML 6.00.2900.2627" name=GENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY>
    <DIV align=justify><FONT face=CourierPS size=4><STRONG>Hello
    All:</STRONG></FONT></DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG></STRONG></FONT> </DIV>
    <DIV align=justify><FONT face=CourierPS size=4><STRONG>Platform Windows
    XP/Solaris.<BR>Weblogic version 8.1 SP4</STRONG></FONT></DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG></STRONG></FONT> </DIV>
    <DIV align=justify><FONT face=CourierPS size=4><STRONG>Our webservice client
    sends a request to the weservice we have written.<BR>It goes thru Netigrity's
    siteminder gateway.  Once it passes thru the gateway<BR>a token is stuck
    into the HTTP HEADER and sent thru to the Weblogic
    Webservices<BR>servlet.</STRONG></FONT></DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG></STRONG></FONT> </DIV>
    <DIV align=justify><FONT face=CourierPS size=4><STRONG>I am aware of the SOAP
    handlers to  look at the message and retrieve the necessary<BR>headers
    (both SOAP and HTTP).  However the Webservices code (in my case a POJO)
    does<BR>not know anything about the HTTP header.</STRONG></FONT></DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG></STRONG></FONT> </DIV>
    <DIV align=justify><FONT face=CourierPS size=4><STRONG>How can I make the HTTP
    header piece of data (in this case the TOKEN that Netigrity put<BR>into the HTTP
    header) available to my POJO ?  My POJO does not have any arguments to
    <BR>its method, but I need the TOKEN to do some validation inside my POJO. 
    Without making use<BR>of a persistent storage how can my pojo get this token
    ?</STRONG></FONT></DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG></STRONG></FONT> </DIV>
    <DIV align=justify><FONT face=CourierPS size=4><STRONG>Can I instantiate the
    POJO object (aka my web service provider class) inside the SOAP handler
    ?</STRONG></FONT></DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG></STRONG></FONT> </DIV>
    <DIV align=justify><FONT face=CourierPS size=4><STRONG>If I do this, how do I
    know that particular instance of POJO will be invoked by the
    Webservice<BR>handler (aka servlet) ?</STRONG></FONT></DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG></STRONG></FONT> </DIV>
    <DIV align=justify><FONT face=CourierPS size=4><STRONG>SOAPHandler1
    <BR>{<BR>            
    Websericecontext wc = (Webservicecontext)
    mc;<BR>            
    Headers h =
    wc.getSession().getHeaders();<BR>            
    token =
    h.get(token);<BR>            
    <BR>            
    PojoWS pojoWs = new
    PojoWS();<BR>            
    <BR>            
    pojoWS.setToken(token);<BR>}</STRONG></FONT></DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG></STRONG></FONT> </DIV>
    <DIV align=justify><FONT face=CourierPS size=4><STRONG>Thanks for your
    time.</STRONG></FONT></DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG></STRONG></FONT> </DIV>
    <DIV align=justify><FONT face=CourierPS
    size=4><STRONG>-Narahari</STRONG></FONT></DIV></BODY></HTML>

    Hello Aartjan,
    About the tool:
    You could use wireshark (just an example).
    About the header part:
    Can you share your code or a simplification of it (Project and files [vi's..]) that allows me to test/reproduce/see what's going on?
    To know what causes the issue we need to see your code.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • TS1717 I get the error "unable to load data class info from sync services" and eventually itunes freezes-will anything in this article help?

    I get the error "unable to load data class info from sync services" and eventully itunes freezes.  will this article help me?

    Hello there brigidfromca.
    Messages can always be pretty daunting when we're not sure where to start. I was able to locate the following Knowledge Base article that discusses the very message you're getting:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/TS2690
    It is a pretty thorough document with multiple steps to review, but looks to be great place to start for a resolution for you.
    Thanks for using Apple Support Communities to reach out to us for answers.
    Cheers,
    Pedro D.

  • When I connect my iphone4s to itunes on  my laptop I get this error...itunes was unable to load data class info from sync serv

    When I connect my iphone4s to itunes on  my laptop I get this error...itunes was unable to load data class info from sync serv

    In the course of your troubleshooting to date, have you worked through the following document?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • No "Remote-User" in HTTP header when HTTP request gets to WLS

    Hello Exprers,
    I have a customer, using 10.3.3 on Linux machine. Web server as Apache.
    He wants Remote-User in HTTP header, he used to get it when he used Tomcat. But when he transffered to Apache and 10.3.3, he is not getting the Remote-User in header, instead he is getting proxy-remote-user.
    He wants the Remote-user in HTTP header.
    Any clue, on why he is not getting it.

    Hi,
    We are facing error while doing openConnection
    When I tried with simple java file it worked as shown below
    import java.io.*;
    import javax.net.ssl.HttpsURLConnection;
    public class test
    public static void main(String[] args) throws Exception
    String httpsURL = "https://rcfe.aspac.citicorp.com:40054/servlet/Verify";
    URL myurl = new URL(httpsURL);
    HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
    InputStream ins = con.getInputStream();
    InputStreamReader isr = new InputStreamReader(ins);
    BufferedReader in = new BufferedReader(isr);
    if (con!=null)
    System.out.println("con="+con);
    System.out.println(ins);
    Output*
    [rcrrgbg2@kauh0079:/rcrmap2/weblogic/bea/ORA_PFRD/forms/j2ee] java test
    con=com.ibm.net.ssl.www2.protocol.https.e:https://rcfe.aspac.citicorp.com:40054/servlet/Verify
    sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@5f6c5f6c
    However when I tried with below program I am able to write upto Web CL URL but after that no log is written when it tries to do openConnection() for this line csConn=(HttpsURLConnection)new URL(webclURL).openConnection(); in the below code
    Some part of the code:_
    =======================================================================
    import java.io.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.util.Hashtable;
    import java.io.File;
    import java.io.FileInputStream;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.net.ssl.HttpsURLConnection;
    import java.net.URL;
    public class CRMSLogin extends HttpServlet
    private static final long serialVersionUID=-6294676216324813290L;
    public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
    String iniFile=request.getParameter("CRMS_INI_FILE_PATH");
    String sessionId=request.getParameter("SessionId");
    String applId=request.getParameter("apl_id");
    String userId=request.getParameter("userId");
    String clientIp=request.getRemoteAddr();
    Properties iniProp=this.getProperties(iniFile);
    String crmsAppServerContext=iniProp.getProperty("CRMS_APP_SERVER_CONTEXT");
    String appModule=iniProp.getProperty("CRMS_MODULE");
    String webclURL=iniProp.getProperty("WEBCL_URL");
    // HttpsURLConnection csConn=null;
    String crmsFormsTerm=null;
    crmsFormsTerm=getEntitlements(iniFile.trim(),sessionId,applId.trim(),clientIp.trim(),webclURL.trim());
    String baseContent=this.getBaseContent(iniProp);
    ServletOutputStream out=response.getOutputStream();
    baseContent=baseContent.replaceAll("<!APP_TITLE!>","Credit Risk Management System");
    baseContent=baseContent.replaceAll("<!APP_CONTEXT!>",crmsAppServerContext);
    baseContent=baseContent.replaceAll("<!APP_MODULE!>",appModule);
    baseContent=baseContent.replaceAll("<!APP_TRACE!>",crmsFormsTerm.replaceAll(" ", ""));
    baseContent=baseContent.replaceAll("<!USER_ID!>",userId);
    baseContent=baseContent.replaceAll("<!SESSION_ID!>",sessionId);
    baseContent=baseContent.replaceAll("<!APPL_ID!>",applId.trim());
    baseContent=baseContent.replaceAll("<!CLIENT_IP!>",clientIp.trim());
    baseContent=baseContent.replaceAll("<!INI_FILE!>",iniFile.trim());
    out.println(baseContent);
    out.flush();
    out.close();
    private synchronized Properties getProperties(String inifile)
    Properties iniProp=new Properties();
    FileInputStream iniFileStream=null;
    try
    iniFileStream=new FileInputStream(inifile);
    iniProp.load(iniFileStream);
    iniFileStream.close();
    catch(Exception e)
    finally
    try
    if(iniFileStream!=null)
    iniFileStream.close();
    catch(Exception e)
    return iniProp;
    public static synchronized String getEntitlements(String inifile,String sessionId,String applId,String clientIp,String webclURL)
         HttpsURLConnection csConn=null;
         OutputStreamWriter requestStream=null;
         BufferedReader responseStream=null;
         StringBuffer responseData=new StringBuffer();
         String csReturnString=null;
         //String webclURL=null;
         BufferedWriter traceLog=null;
         int csCount=6;
         Properties iniProp=new Properties();
         String traceFile=null;
         String entitlementData=null;
         try
         readIniProperties(inifile,iniProp);
         traceFile=getTraceFile(iniProp);
         traceLog=new BufferedWriter(new FileWriter(traceFile,true));
         if(traceFile!=null)
         traceLog.write("###########################");
         traceLog.write("P A R A M E T E R S");
         traceLog.write("###########################");
         traceLog.newLine();
         traceLog.write("INI_FILE:"+inifile);
         traceLog.newLine();
         traceLog.write("SESSION_ID:"+sessionId);
         traceLog.newLine();
         traceLog.write("APPL_ID:"+applId);
         traceLog.newLine();
         traceLog.write("CLIENT_IP:"+clientIp);
         traceLog.newLine();
         traceLog.write("count:"+csCount);
         traceLog.newLine();
         traceLog.write("###########################");
         traceLog.newLine();
         //webclURL=getWebclURL(traceLog,iniProp);
         if(webclURL!=null)
         traceLog.write("Web CL URL:"+webclURL);
              traceLog.newLine();
         csConn=(HttpsURLConnection)new URL(webclURL).openConnection();     
    traceLog.write("Open Connection - Completed!");
         traceLog.newLine();
         csConn.setRequestMethod("POST");
         csConn.setDoInput(true);
         csConn.setDoOutput(true);
         requestStream=new OutputStreamWriter(csConn.getOutputStream());
         traceLog.write("Open Request Stream - Completed!");
         traceLog.newLine();
         requestStream.write("SessionId="+sessionId+"&ClientIP="+clientIp+"&apl_id="+applId+"&count="+csCount);
         requestStream.flush();
         requestStream.close();
         traceLog.write("Write Params to Request Stream - Completed!");
         traceLog.newLine();
         responseStream=new BufferedReader(new InputStreamReader(csConn.getInputStream()));
         traceLog.write("Open Response Stream - Completed!");
         traceLog.newLine();
         while((csReturnString=responseStream.readLine())!=null)
         responseData.append(csReturnString);
         traceLog.write("Response Stream Reading - Completed!");
         traceLog.newLine();
         responseStream.close();
         csConn.disconnect();
         entitlementData=getEntitlementData(traceLog,responseData.toString(),iniProp);
         traceLog.write("responseData::"+responseData);
         traceLog.newLine();
         traceLog.newLine();
         traceLog.write("entitlementData::"+entitlementData);
         traceLog.newLine();
         traceLog.flush();
         traceLog.close();
         catch(Exception e)
         e.printStackTrace();
         finally
         try
         if(requestStream!=null)
         requestStream.close();
    =======================================================================
    output_
    ###########################P A R A M E T E R S###########################
    INI_FILE:/rcrmap1/rcrrgbg2/crms.ini
    SESSION_ID:%2526%253ASIGNED_TICKET%253D%2526PROVIDER_TICKET%253D002c6e4cH0tZy2Gj4JBCOiSL7uSlKisfsqgwP9KoRRn7e%252BY%253D%253AKRSERVER0006%252BA9A52AAE%252B4D1DC7AA%252B14400
    APPL_ID:RCRMKR
    CLIENT_IP:169.165.42.174
    count:6
    Web CL URL:https://rcfe.aspac.citicorp.com:40054/servlet/Verify
    Please help to guide us.
    Regards,
    Harish

  • Error Message: Unable to get document: HTTP-1

    We run tools 8.44 and Enterprise Portal 8.8. There are some paglets created on the Portal as well including a payadvice pagelet for the users to look up their pay information. Pay information comes from the HCM DB. What we notice from time to time is that when logging in to the Portal, the pay advice pagelet will not display and gives "Error getting Content".
    I check the app and web logs and they come back with "Failed to load URL: http://server1.domain.ca/psc/environment/EMPLOYEE/EMPL/s/WEBLIB_EO_PE_LN.ISCRIPT2.FieldFormula.IScript_EPP_NAV_PAGELET in the Portal registry. In fn CPortalRegistry::FindLogicalURL in file e:\pt84406b-retail\peopletools\..\peopletools\SRC\psoftapi\portalregistry.cpp
    Weblogic reports Error Message: Unable to get document: HTTP-1
    However if you hit page refresh (F5) inside the browser the pagelet will load fine.
    Appreciate insight. This issue is contained to dev environments only.

    We run tools 8.44 and Enterprise Portal 8.8. There are some paglets created on the Portal as well including a payadvice pagelet for the users to look up their pay information. Pay information comes from the HCM DB. What we notice from time to time is that when logging in to the Portal, the pay advice pagelet will not display and gives "Error getting Content".
    I check the app and web logs and they come back with "Failed to load URL: http://server1.domain.ca/psc/environment/EMPLOYEE/EMPL/s/WEBLIB_EO_PE_LN.ISCRIPT2.FieldFormula.IScript_EPP_NAV_PAGELET in the Portal registry. In fn CPortalRegistry::FindLogicalURL in file e:\pt84406b-retail\peopletools\..\peopletools\SRC\psoftapi\portalregistry.cpp
    Weblogic reports Error Message: Unable to get document: HTTP-1
    However if you hit page refresh (F5) inside the browser the pagelet will load fine.
    Appreciate insight. This issue is contained to dev environments only.

  • Get a specific Http header field from an http request in a component

    Hello,
    In a custom component that I've created ( which extends ServiceHandler), I'd like to access a specific http header field from the http requests that this component receives.
    I assume this could be accessible through m_binder or m_service, but I didn't find any solution so far.
    Any Idea?
    Thanks in advance,
    Leo

    As it may help others, I answer what I figured out.
    Every details of the http request is put into the m_binder.
    So a specific field can be accessed with m_binder.getEnvironmentValue("My_data")
    You can also list all the available data as it is a standard properties set.

Maybe you are looking for