5 Replies Latest reply on Nov 11, 2008 11:03 AM by wolfgangknauf

    Problems Getting HTTP Response

    ramboid

      Could there be a session tracking problem when an HTTP client that runs in a servlet tries to read an HTTP response from a remote webservice? I wrote a servlet that calls a remote webservice via an HTTP client. The HTTP client is posting the correct XML to the webservice but in the HTTP resonse I am getting an html response liek the one at the end of this message.



      Runtime Error

      body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
      p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
      b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
      H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
      H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
      pre {font-family:"Lucida Console";font-size: .9em}
      .marker {font-weight: bold; color: black;text-decoration: none;}
      .version {color: gray;}
      .error {margin-bottom: 10px;}
      .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }





      <H1>Server Error in '/PBSITest' Application.<hr width=100% size=1 color=silver></H1>

      <h2> Runtime Error </h2>



      Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.


      Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

      <table width=100% bgcolor="#ffffcc">




      <!-- Web.Config Configuration File -->


      <system.web>

      </system.web>








      Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.

      <table width=100% bgcolor="#ffffcc">




      <!-- Web.Config Configuration File -->


      <system.web>

      </system.web>










        • 1. Re: Problems Getting HTTP Response
          wolfgangknauf

          Hi ramboid,

          this error page suggests your next step:

          To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".


          Please activate this and tell us, what the error pages says.

          Best regards

          Wolfgang

          • 2. Re: Problems Getting HTTP Response
            ramboid

            Shouldn't this be added to the server that is sending the response instead? If I need to add it to the server with the web application that is issuing the request, shoudl I create a text web.config file in the "/my_webapp/t" folder?

            • 3. Re: Problems Getting HTTP Response
              wolfgangknauf

              Yes, you should set this config key on the server which runs "PBSITest".
              I cannot help you further, because I don't know your server (IIS I suppose)

              Best regards

              Wolfgang

              • 4. Re: Problems Getting HTTP Response
                ramboid

                Thank you Wolfgang,
                The server that runs PBSITest is a remote server, running a webservice. Hence, I lack control upon its configuration. I am trying to use the webservice from a JBoss web application, running in my server.

                I think that this is an internal error of the remote webservice and the instructions are for the remote server; not the client

                I believe that the remote webservice is an aspx running in a Windows box, perhaps IIS.

                • 5. Re: Problems Getting HTTP Response
                  wolfgangknauf

                  I agree, the exception occurs in the remote server.

                  Wolfgang