How to uncompress the HTTP body(gzipped) in AMFConnection

I experienced a problem while using AMFConnection in a client program. Usually it works fine, but some time it throws exception that says "unsupported amf version......", something like that. After analysis, I noticed the response body from server is gzipped. Hence it causes AMFConnection deserialize failure. Is there way to decompress the HTTP body before deserialization.

I experienced a problem while using AMFConnection in a client program. Usually it works fine, but some time it throws exception that says "unsupported amf version......", something like that. After analysis, I noticed the response body from server is gzipped. Hence it causes AMFConnection deserialize failure. Is there way to decompress the HTTP body before deserialization.

Similar Messages

  • How to transfer the http request from applet to servlet/jsp

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

  • How to verfiy the http compression

    Hi, I'm using Sun ONE Web Server 6.1, and have configured it to compress the content on demand.
    I received the following http response, but in both cases of turning on/off the compression on demand.
    HTTP/1.1 200 OK
    Server: Sun-ONE-Web-Server/6.1
    Date: Thu, 13 Jan 2005 09:36:29 GMT
    Content-Type: text/html
    Transfer-encoding: chunkedHow can I verify the compression work?
    Will it show different result in case of turn on/off the compression?
    TIA,
    Matthew

    Sorry about that. Because you pasted in an HTTP response, I assumed you already knew how to manually submit HTTP requests.
    You can use telnet to submit HTTP requests, impersonating a web browser. Here's an example on a Solaris machine, mbelshe, where I have a Web Server instance running on port 2600:    elving@mbelshe:~> telnet mbelshe 2600
        Trying 10.5.80.146...
        Connected to mbelshe.
        Escape character is '^]'.
        GET / HTTP/1.0
        HTTP/1.1 200 OK
        Server: Sun-Java-System-Web-Server/7.0
        Date: Mon, 17 Jan 2005 01:53:26 GMT
        Content-type: text/html
        Last-modified: Thu, 13 Jan 2005 21:13:53 GMT
        Content-length: 355
        Connection: close
        <html>...</html>
        Connection to mbelshe closed by foreign host.
        elving@mbelshe:~> The stuff in bold is the stuff I typed. I'll try that same HTTP request again, but this time indicate that I want a compressed response:    elving@mbelshe:~> telnet mbelshe 2600
        Trying 10.5.80.146...
        Connected to mbelshe.
        Escape character is '^]'.
        GET / HTTP/1.0
        Accept-encoding: gzip
        HTTP/1.1 200 OK
        Server: Sun-Java-System-Web-Server/7.0
        Date: Mon, 17 Jan 2005 01:53:27 GMT
        Content-type: text/html
        Last-modified: Thu, 13 Jan 2005 21:13:53 GMT
        Content-encoding: gzip
        Vary: accept-encoding
        Connection: close
        MP�N�0...����\�
        Connection to mbelshe closed by foreign host.
        elving@mbelshe:~> Note that when I ask for a compressed response, the server responds with a Content-encoding: gzip header and spews out gobbledygook instead of HTML.
    There are other, prettier ways to get this sort of information. One such way is the LiveHTTPHeaders extension for Mozilla and Firefox. There's more information on that extension at http://livehttpheaders.mozdev.org/.

  • How to change the HTTP Response as XML (Content Type "text\xml") ?

    Hi Friends ,
                     I have created one RFC Destination TYPE H . When i am trying to post some XML Message to that particular HTTP Service using POST method . It succesfully accepted the XML File but , it is returning the String as  " OK" . In the connection test trace i have seen the Content Type as "text/html" but *  I need to get as "text\xml" .* 
                     I need to get response back as XML not plain text . 
            1  Any Configuration setting  do we need to do on Service (SICF )  ?
             2. Or any other place we need to modify to get the HTTP Response as XML not plain text
                  Can you please help to solve the problem . Any clue ?
    Thanks & Regards.,
    V.Rangarajan
    Edited by: ranga rajan on Jan 2, 2008 2:07 PM

    Dear users,
    we have requirement sending SMS to the customers mobiles. I am successfully sending the messages to the customers mobiles by using the above method. Facing issues with response message. The response messages is in plain text fromat in single line like...Sent
    Using HTTP_AAE Receiver adapter.
    The response message was failed while excution of the message mapping with the error
    Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.
    please share the comments how to pass the Status of the message to SAP ECC from SAP HTTP adapter
    Regards,
    Sudir.

  • How to change the HTTP Response as XML (Content Type "text\xml")  When Post

    Hi Friends ,
    I have created one RFC Destination TYPE H . When i am trying to post some XML Message to that particular HTTP Service using POST method . It succesfully accepted the XML File but , it is returning the String as " OK" . In the connection test trace i have seen the Content Type as "text/html" but * I need to get as XML format no Srting    ( Type "text\xml" . ) *
    I need to get response back as XML not plain text .
    1 Any Configuration setting do we need to do on Service (SICF ) ?
    2. Or any other place we need to modify to get the HTTP Response as XML not plain text
    Can you please help to solve the problem . Any clue ?
    Thanks & Regards.,
    V.Rangarajan

    Dear users,
    we have requirement sending SMS to the customers mobiles. I am successfully sending the messages to the customers mobiles by using the above method. Facing issues with response message. The response messages is in plain text fromat in single line like...Sent
    Using HTTP_AAE Receiver adapter.
    The response message was failed while excution of the message mapping with the error
    Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.
    please share the comments how to pass the Status of the message to SAP ECC from SAP HTTP adapter
    Regards,
    Sudir.

  • How to read the message body in a mail

    how can we read the message body of a mail. i am using pop3 server for reading the mails. my program is
    public class GetMessageExample {
    public static void main (String args[]) throws Exception {
    String host = args[0];
    String username = args[1];
    String password = args[2];
    Properties props = new Properties();
    Session session = Session.getInstance(props, null);
    Store store = session.getStore("pop3");
    store.connect(host, username, password);
    Folder folder = store.getFolder("INBOX");
    folder.open(Folder.READ_ONLY);
    BufferedReader reader = new BufferedReader (
    new InputStreamReader(System.in));
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++) {
    System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    System.out.println(
    "Do you want to read message? [YES to read/QUIT to end]");
    String line = reader.readLine();
    if ("YES".equals(line)) {
    message[i].writeTo(System.out);
    } else if ("QUIT".equals(line)) {
    break;
    folder.close(false);
    store.close();
    i am getting the following exception
    Exception in thread "main" java.lang.NoSuchFieldError: contentStream
    at com.sun.mail.pop3.POP3Message.getContentStream(POP3Message.java:115)
    at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSou
    rce.java:61)
    at com.sun.mail.handlers.text_plain.getContent(text_plain.java:65)
    at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.
    java:755)
    at javax.activation.DataHandler.getContent(DataHandler.java:511)
    at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1072)

    The Part interface that the Message class implements describes 3 ways for getting the content of a message. To use an Input Stream, you can call the getInputStream() method on the message itself, rather than System.in.
    Hope this helps!

  • How to send Text HTTP Body in sender Http post to proxy .

    Hi Exeperts,
    I have a scenario http post to proxy scenario. where i need to send  Text HTTP Body  using http sender.receiver side  i am having proxy.
    Please let us know what are the configuration i need to take at sender side and receiver side .
    Regards
    Ravinder.s

    Hi,
    1.If you have any xsl code or java code please share .
    You need Java (or ABAP), not parsing the input, creating xml.
    2. my client is  using dual stack abap/java.
    Your desicion to use Java or ABAP. From my point of view ABAP is easier, but it depends or your experience.
    3.please share the any udf for map the string to the target side?
    An UDF is part of a Message Mapping. Does not work here.
    4. i already  developed the proxy code.
    That s a good start
    /Udo

  • How to access the html body source?

    Is their a way to access the html body source code? Because i want to add a div in my body before and after some select lists to get a border around my select lists. Thanks people.

    Hello,
    If you add a Start and Stop HTML Table element before and after your select list, it will create an extra table around your select lists with an id=<name of your Start/Stop Table Element>. Using some javascript (or jQuery) you can add a class to that Id that'll create a border.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to use the http binding example?

    Hi all,
    i want to test the http binding example, but i didn't find any documentation to this example. Therefore i need some answers to my questions
    1. How do i deploy the QuoteService to the engine (do i have to compile it in the JDBPEL Designer?)
    2. When i have deployed the HttpBindingExample, how do i use it (which input data to use in the Process Manager?)
    Thanks for replying
    Alli

    Hi Ali,
    The QuoteService is a simple JSP, so you should deploy it as a web application to your local OC4J server which hosts the BPEL server. The context root should be QuoteService as described in the wsdl: <http:operation location="/QuoteService/quotes.jsp" />, or more simply just put under the default application location with a folder named QuoteService.
    The following code in the BPEL process assigns a value to the input variable of the invoke which invokes the service:
    <assign name="assignQuoteRequest">
         <copy>
              <from expression="'ORCL'">
              </from>
              <to variable="quoteRequest" part="symbol"/>
         </copy>
    </assign>
    Hope this helps,
    ~ronen

  • How to use the HTTP Analyzer with the embedded OC4J server?

    JDeveloper version: Studio Edition Version: 10.1.3.0.3.3412
    I have a web application, which I run in the embedded OC4J server.
    I tried to use the HTTP analyzer to inspect http requests and responses, but I could not make the analyzer work.
    I tried to setup the HTTP analyzer by looking at the help entry, but I could not make it work.
    If the HTTP analyzer works for you in the embedded OC4J server, please write the steps on how to setup the analyzer.
    (Maybe I could not make the correct settings about port numbers?)
    Thanks in advance,
    Regards,
    Turgay Zengin

    I was able to use the HTTP Analyzer by changing the proxy setting directly in Internet Options. Check the browser/proxy settings set in JDeveloper preferences and copy them to the Connections tab of Internet Options. See if that works for you.

  • How to configure the Http sender adapter

    Now i have look through the sap lib about the http sender adapter
    and i know the url is
    http://hostname:port/path?namespace=<...>
    &interface=<...>&service=<...>&cmd=T&loaderXML=< message object >&end=yes
    My questions are:
    1)the path in the URL is "/sap/xi/adapter_plain", if not, what is it?
    2)the message payload is right?
    any reply is appreciated
    Thank you very much

    Hi Leo,
    For a HHTP Scenario:
    DESIGN:
    1. Create DataTypes for source and Destinations. Create elements for all the text fields of your HTTP Client so that they can all be mapped into the destination file
    2. Create MessageTypes for the two datatypes.
    3. Create Message Interfaces. The One for HTTP is the sender, Asynchronous ( as no response is expected) and one for File is receiver, asynchronous.
    4. Do the mapping. It will be mostly a one to one mapping of the fields.
    5. Create the Interface Mapping.
    Configuration:
    1. Import your Business System under your Configuration Scenario.
    2. Create 2 communication channels. One for Http as a sender and one for your receiver say IDoc.
    Check these links for the configuration part.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    3. Do the Receiver Agreement for Idoc. HTTP doesn’t need a sender agreement.
    4. DO the Receiver Determination and Interface Determination.
    Weblog which talk about the same scenario:-
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - although this weblog is
    aimed at explaining the sync-async bridge.. Sriram has taken http-to-file scenario as the example
    (use case) and explained it...
    Check this SDN tv demo, it has detail of HTTP adapter setup.
    https://media.sdn.sap.com/SDNTV/main.asp?mediaId=107
    Refer to this link for adapter settings.
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
    You should also have a HTTP client to send message to XI. In the connecting parameters to XI u have to use the URL in the pattern mentioned . U have to give all the configuration details in the URL.
    If you give me your mail id or if you can mail me at [email protected], i can send you a HTTP CLIENT.....In which you need to view the source code and change the username and password to send message to XI.
    Regards,
    Abhy

  • How to use the http sender adapter

    Hi,
    I'm trying to use the http sender adapter but not getting the result.
    1)  I've created the commnunication channel in Integration Directory.
    2)  I have my url:
    http://<server>:56000/sap/xi/adapter_plain?service=BS&namespace=urn%3Acompany%3Apoc&interface=interface
    3)  When i copy that url in a browser i get a login prompt. When i log in i get a message that navigation is cancelled.
    What steps do i need to do to use this url to send my xml message to the adapter engine. Do i need a special system user for this? Any other tools required? (i have httpclient but using that doesnt send messages to the adapter_plain; i think)
    I feel i'm just missing one little thing, but what is it.
    kr
    Robert

    Hello Team,
    I added the user name & pwd to query string & trying to access from IE and still getting blank page.
    Is this what is expected or there is something wrong in URL. I am able to send the XML from HTTP Test tool.
    My URL is :
    http://abc:50000/sap/xi/adapter_plain?namespace=urn:xyz.com:A_To_ERP_Payment_balance_Request&interface=SI_A_CHK_balance_OUT&service=BC_XX_XXX&sap-user=myuser&sap-password=mypassword&sap-client=001&sap-language=EN
    Please advice.

  • How to set the HTTP headers in HTTP Binding to call RESTful service

    I'm calling a RESTful service from the SOA Composite through a BPEL process. The RESTful service need few values to be set in the HTTP header to authorize the request. I tried several different options like setting the headers in the invoke service etc., but in vain. Apparently, the web service call fails for not having header information.
    I have burnt several days on this. Can somebody help me to get through this please?
    I'm using SOA composite 11.1.1.4 on WLS 10.3.4.
    Thanks in advance.
    The exception -
    <Oct 19, 2011 1:01:59 PM CDT> <Error> <oracle.webservices.service> <OWS-04086> <javax.xml.rpc.soap.SOAPFaultException: oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://txganguat.txd
    ps.state.tx.us/TxGang
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.generateSoapFaultException(WebServiceEntryBindingComponent.java:1053)
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:890)
    at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1187)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1081)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:581)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:192)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:459)
    at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

    any updates on this? Running into the same issue!
    Thanks

  • IDOC - XI - HTTP/MAIL (How to get the http response and send an email?)

    Hi David!
    If you are able to send any Http message in reference to message from XI (eg. with Idoc number or msg-id) there is no problem to process it in your scenario (even if comunication is asynchronous).
    Regards,
    Radek

    You need a 2:1 mapping. source interfaces are Idoc and Http response, target interface is the mail.
    As you can do his only for abstract interfaces, you have to create an abstract message interface based on the IDoc structure.
    For the http call you need abstract async message interfaces representing request and response which you can use for the mapping and for the container variables inside the BPM.
    Regards
    Stefan

  • Webdynpro - How to retrive the http header

    Hi,
    Normally you will be able to retrieve the http header from the java dynpro HttpServletRequest but I have do you retrieve it from a <b>JAVA webdynpro component</b>. Have not been able to figure it out so please any help appreciated.

    Hi Rasmus,
    try the following to catcth the request object.
    WDProtocolAdapter.getProtocolAdapter().getRequestObject()
    Regards,
    Shubhadip

Maybe you are looking for

  • I have Dreamweaver cs5.5 on a computer that is not working. Can I download a trial on my new laptop?

    I have Dreamweaver cs5.5 on a computer that is not working and in the shop. Can I download a trial dreamweavercs6 on my new laptop with the intention of upgrading when I get my desktop back?

  • Add date stamp to insert record

    This should be easy. I would think it's a standard procedure but 5 hours of searching the net, the forums, and experimenting has left me with a loss. I've created a simple form with 3 fields, firstName, lastName, eMail I've created a SQL database and

  • FCPX 10.1 Chroma Key Strength Slider Crash

    Hello fellow users I will apologize in advance as I am just the IT guy and am not well versed in editing lingo, but here it goes. My chief editor came to me with a problem that he has had since the first FCPX. I will post the crash report below, but

  • Vendormaste creation in new gl

    hi friends Here my question is vendor master creation , before i was configure every thing correct i was checked every thing.while creating vendor master reconsilization not comine (sundry creditor) Moderator: Please, avoid asking basic questions

  • Reagrdin Pagination error in the report region of classic report

    Hi , when run the sql report iam getting below error ,, can any body suggest me how it could be resolve Invalid set of rows requested , the source data of the report has been modified._ Iam using apex4.1 thanks sagar