Compress the webservice responce

hi,
i have some webservices which is returning some hundred of MBs as their responce. while consuming the webservice it is taking long time to get the responce from the service. or it is giving me the request timed out error.
can i compress the responce?
can u please help me to resolve this problem??
thanks in advance
Regards,
NagaLaxmi

Hi,
a possible solution is to convert your return type into a byte stream and then compress this stream with the ZIP API. Your webservice should return this compressed data as byte[]. At client-side you then have to uncompress the byte[] and reconvert to the appropriate data type.
Regards
Sebastian

Similar Messages

  • Can SOA validate invoice data before the webservice sends a response?

    I'm working with another branch of the company, and they're having trouble getting SOA to validate invoice data before it goes into Oracle financials.  They claim that SOA can't validate the invoices according to our business rules, and can only validate the input data based on the schema defined in the webservice.  Even the validation from the schema is useless because it produces schema violation rules that I can't return to a user. 
    After the webservice lets go of the data, there's a multi-step scheduled process where the data is handed off from scheduled process to scheduled process, so SOA can't guarantee in any way to the client end that invoices will get into the database. and worse, the data could get "stuck" at any one of these stages far after a user has submitted it.
    Is any of this true?  Is there no programming language within SOA that can perform validation of the business rules, and insert the data into Oracle all on it's own?  I've little or no familiarity with Oracle, but it's kind of incredible to believe that this is how Oracle designed the major interface to interact with 3rd party applications.

    People insist on using HTTP because it is the easiest to get through forward proxies, reverse proxies, and firewalls.
    If you don't have to deal with those devices, then there are other protocol options.
    As far as the amount of data, that is what my customers want to upload...
    I suppose I could break it down into multiple requests, use compression etc.
    I could also have the server reset the connection on a fatal error like this. (one which occurs within the POST body)
    That would eliminate the keep-alive also since I do not want to waste another 10 minutes to resync the messages.
    Regards,
    Tim

  • Error While Consuming the webservice in ABAP

    Hi,
      I am trying to consume a webservice in ECC. I have imported the WSDL and generated the proxy. Did the configuration in the SOAMANAGER. While calling the webservice from the program I am getting the following error message. "SRT: Unsupported xstream found: ("HTTP Code 400  : Bad Request")"
       Any help is appreciated.
    Thanks
    Raghavendra Kuamr

    Hi,
    Check ST11 to find detailed log of issue, most likely you are passing "WS-A" message id along with request (check settings in SOAMANAGER Logical Port).
    Try calling service after suppressing "Message Id transfer". See SAP Note: 1361688 and related notes in 0001292171
    Regards,
    Gourav
    PS: please search forum before posting questions.

  • How to change dynamically the Webservice URL

    Hi,
    I added a webservice to my projet from a WSDL.
    As my application needs to fire this webservice towards different servers, I set dynamically the URL in my code. Here is the problem. When I point to the initial server (the one I got the WSDL from), everything is fine. But when I want to fire the webservice toward another machine, my code is not taken into consideration and my application still communicates with the initial server !
    I have something like:
            URL url = null;
            StuffService stuffService = new StuffService(RIOT_url, new QName("http://web.stuff.com/", "StuffService"));
            Stuff stuffPort = stuffService.getStuffPort();
            try {
                url = new URL("http://localhost:3337StuffService/Stuff?wsdl");
            } catch (MalformedURLException ex) {
                Logger.getLogger(Page1.class.getName()).log(Level.SEVERE, null, ex);
                  //USE THE WEBSERVICEIs there something wrong in my code ?
    Do I need to change some files in the project ?
    Thanks for your help

    This has nothing to do with JSF. Rather post webservice related questions at the webservice forum: [http://forum.java.sun.com/forum.jspa?forumID=331]
    Back to the actual problem, are you using a webservice proxy? A proxy should be able to pick up the URL and port the request.

  • How can I compress the audiofiles on my hard drive as it is full.

    I have just bought a Classic and have been busy converting my audiofiles to AAC files to sync to my iPOD. However, my hard drive is now full but I am under the impression that if I copy any files back to my external hard drive I will lose them when I sync with my iPOD.
    Is there any software I can use to compress the file size of the audiofiles I am storing in MY MUSIC within MY DOCUMENTS. My iPOd indicates that I have used 11.85 gig out of a possible 80 gig but my PC indicates that the hard drive is full with 38.5 gig taken up out ofa possible 40 gigs. I have no other significant files on my PC.
    I am sure this is common problem. Please help
    Thanks
    bennyboy1965

    A 40GB drive is only going to have ~37.5GB, not 40GB or 38.5GB.
    If your 40GB HD has 38.5 GB used, you better (quickly) delete some files as Windows needs room on the boot drive to function properly.
    Generally, you should have at least 10%-15% free space on the boot drive.
    have been busy converting my audiofiles to AAC files
    Are you deleting the original after you convert them?
    What are you converting them from? iTunes and the iPod can play WAV, AIFF, MP3, AAC and Apple Lossless so if they are alreay in one of these formats, you do not need to convert them.
    As Meg noted an external HD is probably your best option.
    You can use it to store all your music and also make a backup (very important) of your internal 40GB drive.
    You can get 250GB external drives for $50-$100.

  • Calling Web Service From Oracle PL/SQL do not invoke the webservice in SOA Server

    Hi ,
    Trying to call the webservice from oralce pl/sql Function
    created a Function
    Not able to invoke the web service of SOA Server .
    CREATE OR REPLACE FUNCTION HelloWorld_WebServices(S_STRING Varchar2) RETURN VARCHAR2 AS 
        service_ sys.utl_dbws.SERVICE; 
        call_ sys.utl_dbws.CALL; 
        service_qname sys.utl_dbws.QNAME; 
        port_qname sys.utl_dbws.QNAME; 
        response sys.XMLTYPE; 
        request sys.XMLTYPE; 
        BEGIN 
         sys.utl_dbws.set_http_proxy('Host name : Port'); 
          service_qname := sys.utl_dbws.to_qname('ns1', 'process'); 
           service_      := sys.utl_dbws.create_service(service_qname); 
           call_         := sys.utl_dbws.create_call(service_); 
            sys.utl_dbws.set_target_endpoint_address(call_, 'http:/host name : port/soa-infra/services/OFS/HelloWorld/helloworld_client_ep'); 
            sys.utl_dbws.set_property( call_, 'OPERATION_STYLE', 'process'); 
            request       := sys.XMLTYPE('<ns1:process xmlns:ns1="http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld"><ns1:input></ns1:input></ns1:process>'); 
         response      := sys.utl_dbws.invoke(call_, request); 
         return response.extract('//HelloWorld/child::text()', 'http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld').getstringval(); 
         DBMS_OUTPUT.PUT_LINE ('Values of OutputsVariables8');
    --  Return 'S';
       END;
    Execute----the below code:
      Select HelloWorld_WebServices('Hi') from dual;
    Error:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError
    ORA-06512: at "SYS.UTL_DBWS", line 403
    ORA-06512: at "SYS.UTL_DBWS", line 400
    ORA-06512: at "APPS.HELLOWORLD_WEBSERVICES", line 74
    29532. 00000 -  "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.

    Well, you should first test if your webservice is reachable with a simple WS - Client or a Browser - Plugin, then verify the respones of the web service and after that you can take further investigations on your problem domain. The error - message refers to a line in your function, obviously, but I can't see which line and because there is more than one call to sys.utl_dbws I don't see at what point the script fails. NULL - Pointer - Execptions usually indicate that a method was invoked on a variable which should contain an object reference but is NULL.

  • Getting error when testing the webservice in webservice navigator

    hello experts,
    i created the rfc for to delete the calender appointments it was working fine and i created the webservice for this . when i'm trying to test the webservice  with ws navigator  i can insert the values on request screen , but result is this error.
    webservice response :  
    HTTP/1.1 200 OK
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 481
    sap-srt_id: 20110721/115816/v1.00_final_6.40/D40C9E37E8642547AA79FB54A42976E7
    server: SAP Web Application Server (1.0;700)
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><n0:YAPPT_DELETE_N_T2Response xmlns:n0="urn:sap-com:document:sap:rfc:functions"><ERROR_MSG><MSG_ID>BC</MSG_ID><MSG_TYPE>E</MSG_TYPE><MSG_NUMBER>020</MSG_NUMBER><MSG_VAR1>D</MSG_VAR1><MSG_VAR2></MSG_VAR2><MSG_VAR3></MSG_VAR3><MSG_VAR4></MSG_VAR4><FIELDNAME>MAINT_INDI</FIELDNAME><TABLEINDEX>000001</TABLEINDEX></ERROR_MSG></n0:YAPPT_DELETE_N_T2Response></soap-env:Body></soap-env:Envelope>
    can anybody guide me how to rectify this problem .help will be greately appreciated.
    thanks for coming help
    regards,
    sashi.

    hello madhu,
    i have got the sollution. in the webservice i'm giving the input (03D86AFB7EE7D14585EF515C59B5F559) same as in data base .while testing the webservice  internally the value should be converted into bytes bcoz  in the domain  the data type was RAW .
    so db didnt recognise that value thats why i got the error.
    so i use the fm  GUID_CONVERT and convert that as db format
    thanks for ur response .
    regards,
    sashi.

  • Error while testing the webservice through SOAMANAGER

    Hi All,
    I have created a webservice from a Function module ( RFC enabled). I am getting an error while testing the webservice from the SOAMANAGER but the function module is working fine giving proper output.
    The error is
    REQUEST:
    POST /sap/bc/srt/rfc/sap/zws_test_cms_bp_fac/600/zws_test_cms_bp_fac/zws_test_cms_bp_fac HTTP/1.1
    Host: ed1app.corp.fcc.ca:49000
    Content-Type: text/xml; charset=UTF-8
    Connection: close
    Authorization: <value is hidden>
    Content-Length: 654
    SOAPAction: ""
    <?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Header><sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/"><enableSession>true</enableSession></sapsess:Session></SOAP-ENV:Header><SOAP-ENV:Body><ns1:ZSRAV_TEST_CMS_BP_FAC xmlns:ns1='urn:sap-com:document:sap:rfc:functions'><IT_BP_LIST><item><BP_NUMBER>9999990013</BP_NUMBER></item></IT_BP_LIST><IV_COMPANY_CODE>FCC</IV_COMPANY_CODE></ns1:ZSRAV_TEST_CMS_BP_FAC></SOAP-ENV:Body></SOAP-ENV:Envelope>
    RESPONSE:
    HTTP/1.1 500 CX_ST_REF_ACCESS:XSLT exception.An error occurred during serialization in the simple transformation program /1BCDWB/WSSE2B50F3FDFC9C2A94B7.Access to the table ref. node 'ZSCMS_FAC_CAG_DETAILS' outside a loop
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 0
    accept: text/xml
    sap-srt_id: 20100202/041112/v1.00_final_6.40/4B67E41A4BC41B7CE10000000A013104
    server: SAP Web Application Server (1.0;700)
    please do the needful.
    Thanks in advance

    Hi,
    Here is a very smart tool for webservice test:
    [soapUI|http://www.soapui.org/]
    It works fine for me!
    bg,
    attila

  • Proble while creating new Data Connection for the Webservice

    Hai All,
    when creating a new Data Conneciotn for the Webservice in the interactive form i got the following errror
    Cannot choose this operation:
    - there is no associated SOAP Binding
    edit -> new Data Connection -> WSDL -> i entered the wsdl url -> i got the methods in that webservice
    but when i select one of the method in the methods list i got above error
    i developed a webservice in NWDS and deployed the WAS ( created a webservice for the session bean)
    please help me to solve the problem
    Thanks in advance
    Siva Sankar N

    Problem was solved,
    Downloading the WSDLs:
    Download the 3 WSDL files from the WAS using the WS-navigator tool:
    Go to http://<was-host>:50000/wsnavigator/enterwsdl.html
    Select your WS
    Click in the menu “WSDLs”
    Download the default SAP WSDL
    You will have 3 WSDL files in the downloaded zip files.
    1) main.wsdl
    2)config1_XXXXVi_document.wsdl
    3_configl_document.wsdl
    Perform the follwing task to the above wsdl files, and use this wsdl files to the datasource
    1. Copy/paste the <wsdl:service> XML element from the main.wsdl to the Config1_SDN_adobeWSVi_document.wsdl.
    2. Copy the <wsdl:binding> XML element from the Config1_document.wsdl to the Config1_SDN_adobeWSVi_document.wsdl.
    3. Add the SOAP namespace (xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/") from the main.wsdl to the Config1_SDN_adobeWSVi_document.wsdl.
    4. Adjust the namespace reference by replacing “prt0” and “bns0” with “tns”.

  • Error while executing the webservice

    hi
    i have exposed  RFC as webservice ,  when i am trying to
    import the webservice (i have used import webservuce model
    deprecated ) , 
    when i am trying to call the webservice its throwing error
    Service call exception; nested exception is: java.net.ConnectException: Connection refused:
    can any one help me out ?

    Hi,
    There are lots of possibilities for this error.
    1) First check if you are able to ping the server in which webservice is present.
    2) You can test the webservice from http://host:port/wsnavigator
    3) If it is working here also, then go to Webdynpro and check if any specific authentication is required for webservice
    4) If nothing works, restart both the servers where webservice is and where you are using webdynpro. Then check the application. It will work.
    Regards,
    Harini S

  • Consuming the webservice in PLSQL

    Dear Experts,
    I have created a webservice using NWDS and deployed it in EP Java Stack and i was able to test this webservice from WSNavigator. 
    Now when i am trying to consume the same webservice from PLSQL. I am getting the below exception
    ORA-29532: Java call terminated by uncaught Java exception: service: {urnLAMWSWsd/OLAMConfig/document}OLAMWS does not contain port: {urnLAMWSWsd/OLAMConfig/document}OLAMConfigPort_Document
    please advice what to do
    Thanks and Regards
    Hari Krishna

    Hi,
    I also think that there is something wrong with the call from PLSQL but try testing the webservice using SoapUI or XMLSpy or any other SOAP client. If it works fine that way then you have conclusive proof that you need to re-check your request call in PLSQL.
    Regards, Trevor

  • My IPod no longer shuffles songs within playlists that are clearly set to shuffle.  It is about 3/4 full so I thought of maybe compressing the files to get more space.  Do you think that is the problem and if that might help?

    My IPod no longer shuffles songs within playlists that are clearly set to shuffle.  It is about 3/4 full so I thought of maybe compressing the files to get more space.  Do you think that is the problem and if that might help?

    Storage space on the iPod would not affect shuffled playlists or playlist shuffling, though substantially full iPods may wind up skipping songs on larger playlists after a while, and require a restart.  As for compressing the files themselves, you can automatically re-encode files to a lower bitrate by checking the box on the summary page when your iPod is connected to your PC/Mac.
    As for the shuffle problem, after restarting your iPod (hold the center button and Menu for a few seconds, until the Apple logo appears), make sure you're telling the iPod to shuffle the songs in a playlist by repeatedly clicking the center button until the Suffle Menu comes up, then scroll to the right to turn it on.  From that song forward, the playlists' contents should be shuffled every time the playlist ends, or is accessed from a new song.
    Shuffle does sometimes turn itself off, I've found, so double-check the setting is still on.  Also, iPods shuffle by randomly assigning a playlist order for your songs, which is different from traditional shuffle (on, say, iTunes or Windows Media Player, where the new song is determined at random upon the current track ending.  The iPod only chooses a random order of songs when you shuffle, to conserve battery life and queue up songs coming up on the playlist in the event of a shock).

  • When i send a file over iChat to another mac it compresses the file, where is this compressed file stored?

    Today i was transfering a few folders with pictures and videos over to another mac and I noticed that before i sent the file iChat would compress it.  Now this is understandable because they were fairly large files, over 2GB, and this would make them transfer faster.  The problem is that I was transfering the files because my mac is low on hard drive space and I was trying to free some up.  By compressing the files first it was using up more space on my hard drive and I quickly cancelled the compression.  I soon realized though that my hard drive space was still disappearing into thin air. I only had 6GB left and was running out fast.  As it reached 2GB I began to quickly delete large files I no longer needed hoping that I wouldn't run out of space. It dropped all the way down to 12.4MB before it finally stopped, even with me deleting files.  I'm not quite sure what was happening to all of my hard drive space, but was wondering if maybe iChat continued to compress the files even after I cancelled the compression.  Anyways if anyone knows why this happened or where iChat stores the files it compresses that would be greatly appreciated.

    Hi,
    I have heard of this before.
    One report suggested it was only PDF files their case.
    I cannot replicate it with any pic files (Over 2Gb) PDF or otherwise or files and folders combos.
    My tests were from Lion/iChat 6.0.3 to Snow Leopard (iChat 5.0.3)
    I would have thought iChat would have created the Zippped/Stuffed files in the same folder as the original items
    (i.e pic in the pictures folder (or relevant subfolder) and other files and documents in the Documents folder.
    With any application that does Stuffing/Zipping it will create temporary space for doing so.
    Much like the way a graphics app creates a Scratch file to keep the 20 or so Undos it works with.  (with graphic Apps you can make the Scratch file on another Drive if you have one which can help)
    Do this:-
    with iChat Open go to the Window Menu.
    Select the File transfers item
    In this Window (that pops up) select the File that was going to be Transferred.
    When it is highlighted then do a Right-Click or Control Click and select the option to Show in Finder
    Does it list the zipped file ?
    10:21 PM      Friday; February 10, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • JCo destination error while executing the webservice model

    Hi,
    I have explained what I have done so far and whats my issue right now.
    My requirement is calling a PI interface (exposed as webservice) from webdynpro for java and setting some parameter value to the PI interface based on which our functional flow will continue.
    Done so Far :
    1. Created a webdynpro for java application using NWDI.
    2. received the WSDL file of the PI interface and imported as "Adaptive webservice model" into webdynpro.
    3. used the model and set the parameters to PI interface and executed the model.
    4. I have created JCO destinations in the source system (where the application runs) to communicate to the PI system. A special user has been created and assigned in the connection for communicating.
    5. Also I have created the "Dynamic Webseviceproxies" in visual admin with the same name as the JCO destinations. It had a property "URL" for which I have tested with providing both the PI server URL (Http://<Hostname>:<Port no>) and also the complete webservice URL (Which calls the WSDL file directly)
    when I run the application, I get the following error.
    1. Exception on creation of service metadata for WS metadata destination 'WD_RFC_METADATA_DEST' and WS interface '{<Interface Name>'. One possible reason is that the metadata destination 'WD_RFC_METADATA_DEST' has not been properly configured; check configuration.
    after some exception the next error follows
    2. Invalid Response Code 403 while accessing URL: <The URL which I have provided in the webservice proxy in Visual admin tool> Response Message: Forbidden.
    after some lines of exception from PI server the next error follows.
    3. Error: You are not authorized to view the requested resource
    My Question :
    1. Do I miss anything in Configuration?
    2. Is my way of approach wrong?
    3. Any additional authorization needed?
    Kindly provide some ideas and inputs.
    Regards,
    Mahendran B.

    Dear Mahendran
    JCO destination will not used for the Web Service Model. While creating the webservice model, you need to use the logical destination which you have created in the Visual Admin.
    Please refer to the Secured WebServices II and verify currently used webservice logical destination How To Reimport Web Service Models in Web Dynpro for Java
    You can also refer to
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e?QuickLink=index&overridelayout=true
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • Issue in invoking the webservice on EBS 12.1.3

    Hi,
    We are using R12.1.3 version of EBS. We have developed the custome PL SQL logic and deployed it on the Integration repository. Generated the WSDL and Deploy process were successful on IR. Authentication type used was "Username Token". Created the necessary user grants.
    When we try to invoke the webservice from SOAP UI, we are getting below error:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>oracle.apps.fnd.soa.util.SOAException: ServiceProcessingError: System Errornull</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Also, we checked in the log files and found below entries.
    <MSG_TEXT>An error occurred for port: SOAProvider: oracle.webservices.provider.ProviderException: oracle.apps.fnd.soa.util.SOAException: ServiceProcessingError: System Errornull.</MSG_TEXT>
    <MSG_TEXT>Unable to determine operation id from SOAP Message.</MSG_TEXT>
    Can someone help me in this issue? We are successfully able to invoke the same webservices on R12.1 version but getting an error in 12.1.3 version!!!
    Thanks in advance.
    Regards,
    Vasanth

    Hi,
    Try seeing the log messages after doing the following setup in the instance :-
    1. Telnet to environment
    1. In $INST_TOP/ora/10.1.3/j2ee/oafm/config/oc4j.properties
    1. Add following property at the end of the file : SOA_ENABLE_STANDALONE_LOGGING=TRUE
    2. Bounce oafm container using script $ADMIN_SCRIPTS_HOME/adoafmctl.sh
    3. Perform any SOA specific action like generate.
    SOA specific log would be created at : $INST_TOP/soa/SOALog.log
    This file should show you the exact error happening.
    Thanks,
    Sai.M

Maybe you are looking for

  • ICloud and multiple iTunes accounts

    Not sure where I should ask this question but how will I be able to keep choices in music, apps and pictures separate on each device?  Right now, my wife has a separate iTuns account for her stuff I have a separate account for my stuff.  She has an i

  • Screen not slide

    Please, who knows what to do, because the screen not slide anymore, after i put my IPOD TOUCH 2G 8GB in a notebook with Windows VISTA 64. I restarted, reinstall software, verified the contats. I did all possible solutions.

  • Free of of cost item

    Hi All This scenerio is for contract manufacturing industry where company produces product A which is made of several companats,some of these componants will be supplies from their customer.During billing these componants should be shown in seperate

  • Cannot import or view iPhone photos in iPhoto.

    I am trying to import photos from my iPhone into iPhoto. My phone shows up as a device in iPhoto, but none of the image previews load and the import buttons are greyed out. With Image Capture I have the same problem, the device is recognized but noth

  • Last delivery option in SRM

    Hello At the time of confirmationby mistake they were marked with the "Last Delivery" botton. Those PO have some invoices posted and paid. In order to make more confirmation against those PO, how can I delete the click in the "Last Delivy" botton? Is