SOAP - Passing HTTP request header

Hi, all!
Please help me... :-)
I have deployed a service using Tomcat, and now i need for each method that my service invokes, to know from which IP did the SOAP request come. Basically, I believe it is stored in HttpRequest, but I cant reach it since invocation of my method includes only parameters sent by SOAP client.
Any ideas will be welcome
Thanks

Create a soapheader object in the client and pass the ip address in it so that at the server side you can retrive it back.

Similar Messages

  • Add cookie to HTTP request header when calling web service

    I'm trying to call web service using JDeveloper 11g. I successfully generated web service proxy from WSDL document. I can successfully call this particular web service's method "login" which returns "session_id", which then needs to be inserted as a cookie in the HTTP request header in later calls to other methods. This is how the HTTP request header should look like:
    POST /webservice HTTP/1.1
    Host: registrar.carnet.hr
    Connection: Keep-Alive
    User-Agent: .hr domene
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "https://registrar.carnet.hr/webservice#get_domain_name"
    Content-Length: 532
    Cookie: session_id=f3po0ba01a47gd64792151ee43a25765;
    How can this be accomplished? There is not much code that I wrote, everything is generated by JDeveloper's wizard...
    public static void main(String[] args) {
    try {
    RegistrarServicePortPortClient client =
    new RegistrarServicePortPortClient();
    client.setPortCredentialProviderList();
    // add your code here
    String login;
    login = client.login("username", "password");
    System.out.println(login);
    String myCookie = "session_id="+login;
    System.out.println(myCookie);
    *// what can be done to add myCookie to the HTTP request header?*
    } catch (Exception ex) {
    ex.printStackTrace();
    Thanks in advance,
    Bruno

    Hi Vishal,
    it's not a requirement but I wasn't able to create JAX-WS Style proxy from this WSDL: https://registrar.carnet.hr/wsdl
    The exception I'm getting is:
    oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "https://registrar.carnet.hr/wsdl": Could not bind "{http://schemas.xmlsoap.org/soap/encoding/}Array" in message part "return" to a Java type. If doc/lit style is used then message part should reference to global schema element.
         at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1635)
         at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2846)
         at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2611)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:509)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:461)
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy$ProxyJavaWebService.<init>(WebServiceProxy.java:2268)
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.updateServiceModel(WebServiceProxy.java:1701)
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.setDescription(WebServiceProxy.java:525)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.proxy.ProxyJaxWsSpecifyWSDLPanel.setDescription(ProxyJaxWsSpecifyWSDLPanel.java:238)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1109)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$5.run(SpecifyWsdlPanel.java:661)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "https://registrar.carnet.hr/wsdl": Could not bind "{http://schemas.xmlsoap.org/soap/encoding/}Array" in message part "return" to a Java type. If doc/lit style is used then message part should reference to global schema element.
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:825)
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:515)
         at oracle.jdeveloper.webservices.tools.WebServiceTools.getSeiInfo(WebServiceTools.java:523)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1741)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1496)
         ... 12 more
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "https://registrar.carnet.hr/wsdl": Could not bind "{http://schemas.xmlsoap.org/soap/encoding/}Array" in message part "return" to a Java type. If doc/lit style is used then message part should reference to global schema element.
         at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:664)
         at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:475)
         at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1357)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:218)
         at $Proxy39.getJaxWsSeiInfo(Unknown Source)
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)
         ... 15 more
    Caused by: oracle.j2ee.ws.tools.jaxws.wsdl.ModelBuilderException: Could not bind "{http://schemas.xmlsoap.org/soap/encoding/}Array" in message part "return" to a Java type. If doc/lit style is used then message part should reference to global schema element.
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.getPartJavaType(OperationMappingBuilder.java:702)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.createParameterMapping(OperationMappingBuilder.java:675)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.createParameterMapping(OperationMappingBuilder.java:663)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.buildBarePortTypeParameters(OperationMappingBuilder.java:490)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.buildBarePortTypeOperation(OperationMappingBuilder.java:301)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.buildPortTypeOperation(OperationMappingBuilder.java:216)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.build(OperationMappingBuilder.java:93)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildPortTypeOperations(WSDLToJavaModelBuilder.java:635)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildSEI(WSDLToJavaModelBuilder.java:435)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildSEI(WSDLToJavaModelBuilder.java:402)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildPorts(WSDLToJavaModelBuilder.java:383)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildService(WSDLToJavaModelBuilder.java:322)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildServices(WSDLToJavaModelBuilder.java:299)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.buildAll(WSDLToJavaModelBuilder.java:271)
         at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.build(WSDLToJavaModelBuilder.java:188)
         at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:656)
         ... 24 more
    Caused by: oracle.j2ee.ws.common.databinding.tools.spi.SchemaFindException
         at oracle.j2ee.ws.common.tools.databinding.jaxb20.Jaxb20JavaDatabindingContext.getJavaTypeForSchemaType(Jaxb20JavaDatabindingContext.java:52)
         at oracle.j2ee.ws.tools.jaxws.wsdl.OperationMappingBuilder.getPartJavaType(OperationMappingBuilder.java:696)
         ... 39 more
    Thanks,
    Bruno

  • Soap UI HTTP Request Parameter

    Hi,
    I am working on HTTP two way port in BizTalk.
    My input schema is as below.
    <ns0:Order xmlns:ns0="http://BizTalk.HTTPAdapterDemoApp.Message_XML">
      <ItemNumber>01</ItemNumber>
      <Quantity>499</Quantity>
      <Status />
      </ns0:Order>
    BizTalk Logic:
    if Qty<500 then Status= 'Approved' else Status= 'Denied'.
    I am sending this input message to BizTalk from console application and I am able to receive the response from BizTalk.
    Now I want to send this message to BizTalk from Soap UI.
    Can any one help me, How many parameter do I need to create in Soap UI to work it properly?
    Thanks UK

    Here it goes.
    I can able to send the HTTP request of input schema and getting the response by using console application.
    While using Soap UI, I am getting below errors.
    In Biztalk console, I am getting below error,
    The BizTalk HTTP receive adapter failed to initialize itself. Possible reasons:
     1) Receive location URL is not created/configured correctly.
     2) Receive location is not enabled.
     3) HTTP receive adapter is not running under a user that has access to management and message databases.
     4) Isolated host instance is not created for HTTP Receive adapter.
    In Soap UI, I am getting the below error.
    <data contentType="text/html; charset=utf-8" contentLength="6094"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>IIS 7.5 Detailed Error - 500.0 - Internal Server Error</title>
    <style type="text/css">
    <!--
    body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;}
    code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
    .config_source code{font-size:.8em;color:#000000;}
    pre{margin:0;font-size:1.4em;word-wrap:break-word;}
    ul,ol{margin:10px 0 10px 40px;}
    ul.first,ol.first{margin-top:5px;}
    fieldset{padding:0 15px 10px 15px;}
    .summary-container fieldset{padding-bottom:5px;margin-top:4px;}
    legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;}
    legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px;
     border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696;
     border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;font-size:1em;}
    a:link,a:visited{color:#007EFF;font-weight:bold;}
    a:hover{text-decoration:none;}
    h1{font-size:2.4em;margin:0;color:#FFF;}
    h2{font-size:1.7em;margin:0;color:#CC0000;}
    h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;}
    h4{font-size:1.2em;margin:10px 0 5px 0;
    }#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS",Verdana,sans-serif;
     color:#FFF;background-color:#5C87B2;
    }#content{margin:0 0 0 2%;;}
    .summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;;}
    .config_source{background:#fff5c4;}
    .content-container p{margin:0 0 10px 0;
    }#details-left{width:35%;float:left;margin-right:2%;
    }#details-right{width:63%;float:left;overflow:hidden;
    }#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF;
     background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal;
     font-size:1em;color:#FFF;text-align:right;
    }#server_version p{margin:5px 0;}
    table{margin:4px 0 4px 0;width:100%;border:none;}
    td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:bold;border:none;}
    th{width:30%;text-align:right;padding-right:2%;font-weight:normal;}
    thead th{background-color:#ebebeb;width:25%;
    }#details-right th{width:20%;}
    table tr.alt td,table tr.alt th{background-color:#ebebeb;}
    .highlight-code{color:#CC0000;font-weight:bold;font-style:italic;}
    .clear{clear:both;}
    .preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;}
    -->
    </style>
    </head>
    <body>
    <div id="header"><h1>Server Error in Application "DEFAULT WEB SITE/HTTPDEMOAPP"</h1></div>
    <div id="server_version"><p>Internet Information Services 7.5</p></div>
    <div id="content">
    <div class="content-container">
     <fieldset><legend>Error Summary</legend>
      <h2>HTTP Error 500.0 - Internal Server Error</h2>
      <h3>The page cannot be displayed because an internal server error has occurred.</h3>
     </fieldset>
    </div>
    <div class="content-container">
     <fieldset><legend>Detailed Error Information</legend>
      <div id="details-left">
       <table border="0" cellpadding="0" cellspacing="0">
        <tr class="alt"><th>Module</th><td>IsapiModule</td></tr>
        <tr><th>Notification</th><td>ExecuteRequestHandler</td></tr>
        <tr class="alt"><th>Handler</th><td>BTSHTTPReceive</td></tr>
        <tr><th>Error Code</th><td>0x00000000</td></tr>
       </table>
      </div>
      <div id="details-right">
       <table border="0" cellpadding="0" cellspacing="0">
        <tr class="alt"><th>Requested URL</th><td>http://localhost:80/HTTPDemoApp/BTSHTTPReceive.dll?Quantity=499</td></tr>
        <tr><th>Physical Path</th><td>C:\Program Files (x86)\Microsoft BizTalk Server 2010\HttpReceive64\BTSHTTPReceive.dll</td></tr>
        <tr class="alt"><th>Logon Method</th><td>Anonymous</td></tr>
        <tr><th>Logon User</th><td>Anonymous</td></tr>
       </table>
       <div class="clear"></div>
      </div>
     </fieldset>
    </div>
    <div class="content-container">
     <fieldset><legend>Most likely causes:</legend>
      <ul>  <li>IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when
    this error occurred.</li>  <li>IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.</li>  <li>IIS was not able to process configuration
    for the Web site or application.</li>  <li>The authenticated user does not have permission to use this DLL.</li>  <li>The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.</li>
    </ul>
     </fieldset>
    </div>
    <div class="content-container">
     <fieldset><legend>Things you can try:</legend>
      <ul>  <li>Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.</li>  <li>Check the event logs to see if any additional information was logged.</li>
     <li>Verify the permissions for the DLL.</li>  <li>Install the .NET Extensibility feature if the request is mapped to a managed handler.</li>  <li>Create a tracing rule to track failed requests for this HTTP status
    code. For more information about creating a tracing rule for failed requests, click <a href="herehttp://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li> </ul>
     </fieldset>
    </div>
    <div class="content-container">
     <fieldset><legend>Links and More Information</legend>
      This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.
      <p><a href="View">http://go.microsoft.com/fwlink/?LinkID=62293&amp;IIS70Error=500,0,0x00000000,7601">View more information &raquo;</a></p>
      <p>Microsoft Knowledge Base Articles:</p>
     <ul><li>294807</li></ul>
     </fieldset>
    </div>
    </div>
    </body>
    </html>
    ]]></data>
    Thanks UK

  • Using HTTP Range Header in Sound's URL Request

    Hi,
    We have an audio player that loads and play external mp3s using the Sound object.  To improve audio scrubbing performance over slow connections we're
    thinking of adding the Range header to the URLrequest to retrieve a specific byte range when the user adjusts the seek bar. Has anyone done this before? Is this even possible with Flash?  Thanks in advance for your help.

    I will try to describe my project maybe somebody will give me another solution. I have 2 web applications, running on Jboss and Oracle As, in the same network. The application on Oracle As uses basic authentication. The application running on Jboss has no authentication, basic, form on digest, but the request is to implement an authorization against the Oracle As users.
    I find out the solution to authenticate through the java code using Authenticator.setDefault, please see the code above, but when I try to click a link to a secured page in Oracle As I still receive the basic popup askink me for user and password.
    Therefore I need to add authentication information to the http request header sent by the client running on jboss when open a secured page from the second app, running on Oracle As.
    The application on Oracle Aps uses basic authentication so I just need to add the "Authorization: Basic <base64 string>" header. I checked with http://web-sniffer.net/ to see exactly how this header looks like.
    Can anybody offer an example to demonstrate how to add the Authorization header? Thanks.

  • Check whether HTTP server supports "Range" request header

    Hi,
    I'm trying to develop a multi-threaded download manager which downloads several parts of the file concurrently using the "Range" HTTP request header field. However, I find that it is possible for servers to ignore that field.
    As per HTTP specs, checking the "Accept-Ranges" field doesn't seem to be very reliable. How do I check whether the HTTP server of the URL supports range requests. This is essential for both multi-threaded downloads and pausing and resuming downloads.

    I suspect that the only reliable way would be via testing. Second most reliable would be via documentation for the site (but a poor second to the first.)
    Then once you have the information put it in a configuration file so the app can use it.

  • Filter to convert HTTP request to JNLP arguments fails every other time

    I want to pass HTTP request parameters to a Java Web Start program as arguments. I have implemented a filter which adds the arguments from the request parameters using XML DOM, and I also set the Last-Modified date to the current date/time. [ I am sort of thinking I should put the date as the file date -- not sure ]
    The filter works successfully ever other time I invoke a given URL. If I switch parameters, it looks like the filter works every time.
    When the filter works, there are HTTP GET and HEAD requests. When the filter fails, there are three HEAD requests and one GET request. Using the apache soap TCP Tunnel/Monitor, it looks like the HTTP request parameters aren't being passed for the second GET.

    Varad and Sc0tt,
    Thank you both for your responses.
    Varad – Yes, I can/will reduce the amount of data so it does not cause the tabular form to go over the 2000 field limit. If that is not possible, I will at least make the users aware of this issue. Since the same data is used for the other pages in the application, the users might want to keep all the data.
    Sc0tt – thanks for providing the information for your environment and settings. To plan for the future, we will have to set the value to something high also, around 8-10K range, and adjust later if we have to.
    Thank you both, I will mark both of your answers as helpful and the question as being answered.
    DP
    (Have either of you used the jquery datepicker solution? If yes, can you please take a look at my thread: Thread: Jquery Datepicker calendar problem with page scrolling
    Jquery Datepicker calendar problem with page scrolling

  • Adding custom headers to a HTTP Request

    Folks,
    I'm wondering if it is possible to add custom headers to a HttpRquest. In other words is it possible add new headers to the HttpServletRequest. We have addHeader methods for Respones but not Requests. Servlet Filters dont seem to let u do it too.
    I saw that the deprecated HttpRequestWrapper (catalina.jar) has addHeader methods, but I get casting issues. Is there any proper way to accomplish this ?
    Thanks a bunch for your time n help folks..

    Unfortunately I would need to add the information as a HTTP Request HEADER and not as a request attributte. I would need something like request.addHeader(obj1,Obj2), which is not available.

  • How to increase request header

    hi,
    Can anyone please help to know how to increase http request header size in 10.3. IN tomcat its in server.xml as below
    <Connector port="@httpserver.pubhttp@" address="@httpsserver.bindaddress.pubhttp@"
    + maxThreads="250" maxHttpHeaderSize="8192"....
    Can anyone please tell me the equivalent in weblogic 10.3.. My app is failing with the error as " header size is too large" . pls help.
    regards

    sorry, search results does not seem to be helpful. We are getting a header in request which is of the size 4kb, not sure how to support this in weblogic.
    Edited by: user10422897 on Jul 13, 2011 2:44 AM

  • How to Record HTTP Requests and POST data

    Hai all..
    Can anyone help me to solve this issue..
    How to Record HTTP Requests and POST data by using java..
    regards
    Ranjith Nair

    You should read about TCP and splitting data stream into packets and learn how to understand packet header to assemble stream from packets.
    Actually there are few different stages:
    1. detect handshake to start new empty stream within your code;
    2. detect subsequent packets and assemble stream (there are counters within packet header and they will help).
    After creating start of TCP stream (usually 1KB is enough) you'll be able to detect is it HTTP request/header or no and start logging or ignoring packets for this connection.

  • Passing Cookies from Previous Web HTTP Request to the Next

    Hi,
    I have two Web Http Requests. The first one performs a Login and the second one executes another method called ListRecoveryPlans.
    First SOAP calls for Login looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap-url>https://srm-app-003:9007</soap-url>
    <connection>
    <name>srm_connection_test_01</name>
    <terminate-on-exit>false</terminate-on-exit>
    </connection>
    <SOAP-ENV:Body>
    <urn:SrmLogin xmlns:urn="urn:srm0">
    <urn:_this xmlns:urn="urn" type="SrmApi">Srm</urn:_this>
    <urn:username>cisco\xxx</urn:username>
    <urn:password>xxx</urn:password>
    </urn:SrmLogin>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    The second soap looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap-url>https://srm-app-003:9007</soap-url>
    <connection>
    <name>srm_connection_test_01</name>
    <terminate-on-exit>false</terminate-on-exit>
    </connection>
    <connectionCookie>
    <name>
    <xsl:text disable-output-escaping="no">DE78D964-DDF4-40B6-BCB7-BEB44624826D</xsl:text>
    </name>
    </connectionCookie>
    <SOAP-ENV:Body>
    <urn:ListRecoveryPlans xmlns:urn="urn:srm0">
    <urn:_this xmlns:urn="urn" type="SrmApi">
    <xsl:text disable-output-escaping="no">Srm</xsl:text>
    </urn:_this>
    </urn:ListRecoveryPlans>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    In addition, under the Cookies tab for the ListRecoveryPlans request, I passed the cookies from the previous request:
    However, I am getting a "session is not authenticated" error.
    The remote server returned an error: (500) Internal Server Error.
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>The session is not authenticated.</faultstring><detail><SecurityErrorFault xmlns="urn:srm0" xsi:type="SecurityError"></SecurityErrorFault></detail></soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    Can you shed some light on how I can fix this issue? I am using CPO v. 2.2.0.1409.
    Thank you.
    Regards,
    Mary Jane Cofino

    Hi,
    Thank you for the prompt reply.
    For the first request, here is the response header I am getting
    I checked the "Accept cookies from this request" checkbox button and am now getting a new error:
    The remote server returned an error: (500) Internal Server Error.
    <?xml version="1.0" encoding="UTF-8"?>
    http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    ServerFaultCodeThe object has already been deleted or has not been completely created
    Regards,
    Mary Jane Cofino

  • Setting the header in http request object

    I am facing a problem while trying to test a particular flow of my application.The details are given below:
    The controller servlet of my main application reads the header "Referer" from the request object and then based on this it forwards the request to appropriate servlets.For testing my application I am writing a test servlet which receives a request object from a test jsp and sets all the necessary attributes in the request object and passes this request object to the doGet () method of the main application's controller servlet. But while trying with this I find that the main controller fails to forward to the correct servlet because it receives incorrect referer information. So my question is how can I set my customised "Referer" in the header of the http request so that the application's controller servlet forwards to the correct servlet?Is there any means to set the request header in servlet or jsp?

    As far as I know you can't change the request in a servlet or .jsp, but you can in a Filter. Wrap the original request object in a wrapper class before passing it to chain.doFilter().

  • SBL-ODU-01007 - The HTTP request did not contain a valid SOAPAction header

    I am trying to insert a Lead using the following XML
    SOAPAction: "document/urn:crmondemand/ws/ecbs/lead/10/2004:LeadInsert"
    URL: https://secure-ausomxbia.crmondemand.com/Services/Integration
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns2="urn:crmondemand/ws/ecbs/lead/10/2004" xmlns:ns3="urn:/crmondemand/xml/Lead/Data">
    <env:Header>
    <ns1:Security>
    <ns1:UsernameToken>
    <ns1:Username>****</ns1:Username>
    <ns1:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">****</ns1:Password>
    </ns1:UsernameToken>
    </ns1:Security>
    </env:Header>
    <env:Body>
    <ns2:LeadInsert_Input>
    <ns3:ListOfLead lastpage="true" recordcount="1">
    <ns3:Lead>
    <ns3:ExternalSystemId>3232323</ns3:ExternalSystemId>
    <ns3:LeadFirstName>soap</ns3:LeadFirstName>
    <ns3:LeadLastName>test</ns3:LeadLastName>
    </ns3:Lead>
    </ns3:ListOfLead>
    <ns2:Echo>off</ns2:Echo>
    </ns2:LeadInsert_Input>
    </env:Body>
    </env:Envelope>
    I am getting following response.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Client</faultcode>
    <faultstring>Client</faultstring>
    <detail>
    <ErrorCode>SBL-ODU-01007</ErrorCode>
    <ErrorMessage>The HTTP request did not contain a valid SOAPAction header. The value of the header was </ErrorMessage>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    I have checked the URL and SOAPAction seem to be correct, can somebody please let me know what can be the problem.
    Thanks.

    I am trying to insert a Lead using the following XML
    SOAPAction: "document/urn:crmondemand/ws/ecbs/lead/10/2004:LeadInsert"
    URL: https://secure-ausomxbia.crmondemand.com/Services/Integration
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns2="urn:crmondemand/ws/ecbs/lead/10/2004" xmlns:ns3="urn:/crmondemand/xml/Lead/Data">
    <env:Header>
    <ns1:Security>
    <ns1:UsernameToken>
    <ns1:Username>****</ns1:Username>
    <ns1:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">****</ns1:Password>
    </ns1:UsernameToken>
    </ns1:Security>
    </env:Header>
    <env:Body>
    <ns2:LeadInsert_Input>
    <ns3:ListOfLead lastpage="true" recordcount="1">
    <ns3:Lead>
    <ns3:ExternalSystemId>3232323</ns3:ExternalSystemId>
    <ns3:LeadFirstName>soap</ns3:LeadFirstName>
    <ns3:LeadLastName>test</ns3:LeadLastName>
    </ns3:Lead>
    </ns3:ListOfLead>
    <ns2:Echo>off</ns2:Echo>
    </ns2:LeadInsert_Input>
    </env:Body>
    </env:Envelope>
    I am getting following response.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Client</faultcode>
    <faultstring>Client</faultstring>
    <detail>
    <ErrorCode>SBL-ODU-01007</ErrorCode>
    <ErrorMessage>The HTTP request did not contain a valid SOAPAction header. The value of the header was </ErrorMessage>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    I have checked the URL and SOAPAction seem to be correct, can somebody please let me know what can be the problem.
    Thanks.

  • How to pass a HTTP request from a simple java class

    Is it possible to pass an HTTP request from a simple java class.if yes how?

    Is it possible to pass an HTTP request from a simple
    java class.if yes how?If you're talking about creating a HttpRequest object and passing it to a servlet, that would be a red flag to me that your design is flawed. You shouldn't have to do that - the application server (Tomcat, Weblogic, etc) should be the only thing that has to worry about creating that kind of object and passing it to you.

  • SOAP Adapter Sender PI7.1: 400 Bad HTTP request

    Hello,
    I have a problem with a SOAP adapter sender communication channel.
    I'm trying to migrate a scenario from XI 3.0 to PI7.1 SP6 (PI_BASIS 2006_1_710 SAPKIPYN06).
    I can send messages successfully to the old system using the URL
        http://host:port/XISOAPAdapter/MessageServlet?channel=:BC_Name:CC_SOAP_Sender
    On PI7.1 I get
        400 Bad HTTP request
        Error: -21
        Version: 7010
        Component: HTTP_PLG
        Module: http_plgrt_mt.c
        Line: 5226
        Error Tag:
        Detail: illegal request version
    I have created a Sender Agreement, generated the wsdl from that and tried the URL in there.
    Surprisingly it has the old format, namely
        http://host:port/XISOAPAdapter/MessageServlet?senderParty=&senderService=BC_Name&receiverParty=&receiverService=&interface=myInterface&interfaceNamespace=urn:my.Interface:ns
    although the 7.1 documentation describes the ?channel=party:service:channel style only.
    Anyway, the result remains the same.
    I tried some other approaches like escaping the colons in the URL without success.
    The user has the role SAP_XI_DEVELOPER_J2EE assigned.
    Any idea what's wrong here?
    Thanks in advance
    Rainer

    >>In RWB the channel appears as "started but inactive".
    Yeah,it will be like that because you are posting messages directly to Integration server."Propose URL" does that.You are bypassing the adapter engine when you use the URL generated by "Propose URL" button.
    /people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
    The above blog gives the reason for this,if you want to bypass the adapter engine,then generate the URL as given in the above blog
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    This blog explains how to post message to adapter engine,here you need to change the URL,don't click on "Propose URL" button.You can monitor SOAP adapter in RWB only if you generate the URL as given in second blog
    The URL which is working for you in XI 3.0 is posting messages to adapter engine,so generate the URL in PI 7.1 in the same way,by following the second blog i have mentioned.
    Thanks
    Aamir

  • 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

  • Report parameter is not populated with exact value in stacked column click throughs

    I have stacked column chart to show below opportunity data. Category axis: Month of created date Series: sales stage Aggregate: runningvalue of revenue on sales stage group.  data set has below fields. 1. opportunity id 2. created date 3. revenue 4.

  • Error while updating the Human task

    When I try to update my Human task the following error is occuring in JDeveloper and I can't save my changes, any help will be appreciable. thank you. Uncaught exception java.lang.NullPointerException o.bpel.services.workflow.verification.impl.TaskCo

  • X-Fi Fatal1ty - Smart Recorder will not work in

    I think the 64-bit drivers for this puppy are still buggy. When I try to record my vinyl albums through Smart Record, Wave Studio or even the basic Windows Sound Recorder, I get screeching noise on playback. Everything appears to record normally, but

  • Loading XML Data into Relational Table

    Hello, I receive an XML file generated from another tool (on Windows), I am trying to create a Linux shell script that will gather the needed XML file from my Linux database server, then have Oracle use this file to load the XML data into a relationa

  • Macbook will only see AEx when I'm standing in the stairs

    All right, this might be a stupid topic title but at least it says it all. It reminds me of my first cell phone, that I could only use when crouching in the shower to get a proper signal. I can only get my Macbook to connect to my AEx network when I'