File upload - web services

Hello All,
I have to upload a file through web services...The file has content type: text/plain and can have max size - 7 MB...
I tried converting the file into byte[] and send it over the web services ..it is working fine for small files but it hangs for large files...
Please help...Help is greatly appreciated
Thanks....

Hai,
I'm looking to upload file(pdf/doc) with size limitation less than 500KB using web service and store the file as an blob in the Oracle DB. Please help me if you used any similar approach in your project. I would appreciate your help/suggestions.
Thank you for your time
Regards
VK

Similar Messages

  • Down-/Upload files via Web Services using a NON-SAP system!?

    Hello,
    is it possible to down-/upload files via web services using a NON-SAP system!?
    Regards,
    Jens

    Hi Jens,
    I am not sure about your requirement here. What i could understand is that you want to check whether service could handle file processing?
    1) Uploading file - You can build a Webservice which has import/export parameters as the file structures and implement the proxy class in such a way that the passed data is written to application server.
    2) Downloading file - Same as uploading file, but the proxy class would have the code to extract data from the application server and pass them as output parameter.
    Functionality of Non SAP system: The system which calls these services should be able to convert the output of proxy data into file in case of downloading the file and it should be able to convert the file data into export parameters in case of uploading file.
    Hope this helps.
    Regards,
    Prasanna

  • Download a XML file from Web Services Using Flex

    Hi All...
    I am new for flex, im developing a windows application using Flex/Air, i have connected the web services with user authentication, now I want to download a xml file using web services in flex,
    how can i do this?? please reply...
    Thanks in advance
    Vasanth

    Hi All....
    I have done this myself using sample tutorials...
    here is the code for your reference guys
              plyLoginName = txtEmailIdDownload.text;                
                     var urlpath:String = new String("your url p?LoginName=");
                    urlpath = new String(urlpath.concat(plyLoginName));
                    urlpath = new String(urlpath.concat("&PlayerType="));
                    urlpath = new String(urlpath.concat(chkseasonvalue));
                    Alert.show(urlpath);
                var request:URLRequest = new URLRequest(urlpath)
                var fileRef:FileReference = new FileReference();           
                fileRef.download(request,"yourfilename.xml");
                Alert.show('File downloaded Successfully');   
                 txtEmailIdDownload.text = "";
                txtPWDownload.text = "";
    thanks
    Vasanth

  • Unable to Find the Type Mapping Resource File (Two web services)

    Hello,
    I am using BEA weblogic 7.0 to deploy my applications. I have a web service and was able to deploy it sucessfully. I am trying to access this web service from another web service previously succesfully deployed too. When I call the second one, I have the next problem:
    java.io.IOException: unable to find the type mapping resource file for:tuoprec.sinsesion.TuOPRecService
    at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegistry.java:62)
    at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
    at tuoprec.sinsesion.TuOPRecService_Impl.<init>(TuOPRecService_Impl.java
    I put the client jar file (2nd web service) obtained from the <clientgen> in the class path of the ear file (1st web service), but I have the same error.
    Can anybody help me?,
    jose luis

    Hello,
    I am using BEA weblogic 7.0 to deploy my applications. I have a web service and was able to deploy it sucessfully. I am trying to access this web service from another web service previously succesfully deployed too. When I call the second one, I have the next problem:
    java.io.IOException: unable to find the type mapping resource file for:tuoprec.sinsesion.TuOPRecService
    at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegistry.java:62)
    at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
    at tuoprec.sinsesion.TuOPRecService_Impl.<init>(TuOPRecService_Impl.java
    I put the client jar file (2nd web service) obtained from the <clientgen> in the class path of the ear file (1st web service), but I have the same error.
    Can anybody help me?,
    jose luis

  • File to Web service (SOAP) to File scenario with out BPM in PI 7.1

    Hi All,
    I have scenario File to Web service (SOAP) to File scenario with out BPM.i am getting the below error:
    1) Error MP: unexpected exception caught com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId
    2) Error ROB: error during processing: com.sap.aii.af.lib.mp.processor.ModuleProcessorException: Processing Error
    PI server is 7.1 with SP:8
    I have configured the scenario like this
    1) 2 File channels - Sender & Receiver ,1 RFC channel - Receiver. We need to note that, the additional Module parameters need to be added only for sender File channel
    2) Created Sender Agreement
    3)Created Receiver Determination
    4)Created Interface Determination
    5)Created Receiver Agreement
    Regards,
    Ramesh

    Hi,
    Thanks for your reply!!
    My Scenario is File to SOAP to File.
    Configred modules  in Sender channal below:
    Prcessing sequence:
    Number       Module Name                                        Module Key
    1..........       AF_Modules/RequestResponseBean.......1
    2..........       CallSapAdapter..........................................2
    3..........       AF_Modules/ResponseOnewayBean.......3
    Module Configuration:
    Module Key                                       Parameter Name                                       ParameterValue
    1                                                        passThrough                                            true
    3                                                        receiverChannel                                       receiverChannel name
    3                                                        receiverService                                        receiverService name
    please tell any more confiration requered.
    Regards,
    Ramesh

  • How to download a file via web service in Windows Phone 8.1?

    My project just got 2 part.
    1.Pivot app
    2.Webclient server (provide data for pivot app the view the data)
    My concert that how do i do a download button to download a file via web services in to isolated storage.
    urgent!

    something like this:
    public async System.Threading.Tasks.Task DownloadFile()
    using (var client = new Windows.Web.Http.HttpClient())
    var stream = await client.GetInputStreamAsync(new System.Uri("http://urltomyfile"));
    var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("myfile.txt", CreationCollisionOption.GenerateUniqueName);
    using (var fileStream = await file.OpenAsync(FileAccessMode.ReadWrite))
    IBuffer buffer = new Windows.Storage.Streams.Buffer(1024);
    while ((buffer = await stream.ReadAsync(buffer, buffer.Capacity, InputStreamOptions.None)).Length > 0)
    await fileStream.WriteAsync(buffer);
    await fileStream.FlushAsync();
    how is your webservices offering the file?
    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

  • File to Web Service - No back system in hoplist

    Hi guys
    I've implemented a File to Web service Scenario with XI. The file is picked up from the server.
    The message monitoring in the Runtime Workbench shows the following error:
    "XI-Systemfehler erhalten. ErrorCode: NO_BACK_SYSTEM_IN_HOPLIST ErrorText: ErrorStack: Legacy system to which acknowledgment message is to be sent is missing in hoplist (with wasread=false)"
    Has anybody a clue?

    Hi Gokhan,
    please go thru the links below and see if u have followed the steps mentioned in it while defining the web service..if it still doesnt help you, pleease do let me know.
    http://help.sap.com/saphelp_erp2004/helpdata/en/31/daa0404dd52b54e10000000a1550b0/content.htm
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    /people/david.burdett/blog/2005/01/28/why-using-web-services-for-b2b-is-hard-to-do
    /people/dj.adams/blog/2004/06/24/forget-soap--build-real-web-services-with-the-icf
    /people/renald.wittwer/blog/2005/01/05/develop-a-web-service-that-sends-an-email
    I hope the info provided will help you to atleast some extent solve your problem.
    Regards,
    abhy

  • Trasport file by web services

    hi sdn boys
    i have a problem.
    i have a abap program that trasfer a file to server, than this file is put on a web page.
    now i must download the file using web services.
    it 's possible and How can I do?
    thanks

    Hello everyone.
    I have the same problem like it is described in the first post.
    I create a Web Service and also in WSADIMN my Service doesn’t appear.
    When I go to WSCONFIG it is not possible for me to save the created (press F5) Web Service. It seems that it is not possible for me to save in the whole system. Doesn’t matter what I do, the save button is disabled.
    I extend my license and I specify as user “student” and not “developer”. Could that be the problem?
    Anyone an Idea
    Thx a lot

  • How to create a proxy to retrieve the xml file from web services

    Hi Every one,
    We have a requirment where we receive a xml file from Kenexa, a third party HR tool using a middleware tool. from SAP side We have to create a proxy to retrieve the xml  file from web services by initiating call through middleware tool i used earlier.
    these are the steps i intend to follow to accomlish the requirement.  
    1) middleware tool has to initiate the call to kenexa web services to  receive the xml file when it is available.
    2) On SAP we need to create a ABAP Proxy service provider to middleware where this file can be received.
    Can any one guide me how i can create a proxy to retrieve the xml  file from web services by initiating call through other middlewre (its not PI). 
    Any help would be really great, i am not a ABAP developer, so please help me with this. Thanks.

    Thank for reply.
    The computers are in different locations, but yes it's possible, the users in this enviroment are all local administrator of the machines, and we can distribute the script centrally from the DC automatically
    Acrobat use Java, right? I'm not so expert in java, but something about it could not be so difficult to manage.
    Do you know some place where i can get some info about JS and acrobat?

  • Sending audio files through web service

    Hi,
    How can we send audio (mp3,wmv) files through web services ? i have tried making a byte array of the file and then sending the byte array through the web service, but it give OutOfMemory error. so is there any better and practical way of doing it ?

    Just read catalina.bat and find where $JAVA command is called, for NT it should be "%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% "
    "%_EXECJAVA% is java
    %JAVA_OPTS% and %CATALINA_OPTS% are enviroment parameter for java command. Just added one of them in your case.
    By the way, " i am using a HP PDA on the client side, so i cannot increase the JVM heap size there", you should info. the client, otherwise the client may be get "out of memory".

  • How to send large files using web service

    hello everyone,
    I am new to this forum, so please pardon me if I post some silly problem...
    I have created one service which sends file when client (jsp) request it. I am using JBOSS as my server. purpose of this application is when client request some fle then service will send this file... and most of the time we need to send only pdfs and ppts...
    Problem is, this service sends txt, java files easily of any size but when i tried sending PDF, PPT then i got xml.SAXParseException.......
    I thought this error is because of some characters, but how to fix it....
    I am working on Linux.
    code snippet is:
    import java.io.*;
    public class MyHelloService
    public String file_size (String name)
         String s = new String("");
    byte[] sendata1=new byte[100];
         try
              System.out.println("name recived is :::::::::::"+name);
              FileInputStream in=new FileInputStream(name);
              int size=0;
              size=in.available();
              System.out.println("FILE SIZE IS:::::"+size);
              byte[] sendata11=new byte[size];
              i=in.read(sendata11);
              System.out.println(new String(sendata11));
              s=new String(sendata11);
         catch(Exception e)
                   System.out.println("EXCEPTION IN JWS:::"+e);
                   s=new String("nofilefounderror");
         return s;
    pls tell me what am i doing wrong ad how to fix this?
    and one more thing can i send byte array from a web service as i tried but couldnt do that... so i am reading everything in a single byte array and then converted to string.....
    is it possibel to send file in a chunk?if yes, how to do that?
    waiting for the reply..... pls reply as soon as possible....
    Rashi

    hi,
    I am sending file from server to client i.e client will request for a file and service will send it back....... no socket connection is there...I am using JBOSS and apache axis.
    pls help me out.....
    Rashi

  • Exception in sending message thru SOAP from java file to web service

    Hi,
    I am trying to invoke a web service from a java file.
    But my code error out at particular statement where I am sending the message i.e. at
    SOAPMessage reply = connection.call(message, destination);
    The error message is
    java.security.privilegedactionexception: javax.xml.soap.SOAPException: Message send failed: For Input string "".
    I am using the wsdl link in destination variable-
    String destination = "http://soad.xxxxxxxxxx.org:80/soa-infra/services/default/xxxxxx/xxxxxxx?WSDL";
    Please help me with the solution.

    Guys, any ideas because this is driving me a bit insane...
    If you have any alternative implementations I'm open to them but I'd like to know why isn't this working really...
    Thanks and regards
    Krt_Malta

  • Loading *.txt files in web service

    I have a running web service on Axis, and can communicate with it from a j2se client and a browser test client.
    I'm attempting to load a txt file of data in the web service (stores a list of usernames). But the code can't locate the text file. Where are external resource placed if they're needed in a web service? I was assuming I could just place it next to my *.java files.
    Thanks

    I should add that I'm using Eclipse , and as such my web service seems to be self contained in my workspace for Eclipse. The structure is
    EclipseWorkspace -> myProject -> projectNamespace -> *.java
    I thought I could place my *.txt files inside the namespace directory with my Java files. I have also tried placing the *.txt file in the project directory, still no luck.

  • Modifying properties with a file for Web Service Stub used for Oracle Forms

    I have created a stubbed-out web service in JDeveloper (10.1.3.4) and imported into Oracle Forms.
    However, I would like to use a properties file to call the appropriate endpoint based on if the environment is dev, test, UAT or prod. I see that a properties file is referenced in the _Stub class. Here is a snippet of code from that class file:
    public CriticalChangeWS_Soap11_Stub(HandlerChain handlerChain) {
    super(handlerChain);
    setProperty(ENDPOINTADDRESS_PROPERTY, "http://epw-01.gds.graebel.com:8087/CriticalChange.svc/Soap11");
    setSoapVersion(SOAPVersion.SOAP_11);
    setServiceName( new QName("http://tempuri.org/","CriticalChangeService"));
    setPortName( new QName("http://tempuri.org/","CriticalChangeWS_Soap11"));
    setupConfig("wsquery/proxy/runtime/CriticalChangeWS_Soap11_Stub.xml");
    How can I use the XML file to set the ENDPOINT_ADDRESS_PROPERTY?
    Thanks.
    Jim O

    Hi Frank,
    I got the following two lines of code just to check if WebServiceConnection was able to read the connections file alright.
                String urlString = wsc.getWsdlUrlStr();
                System.out.println("WSDL URL: "+urlString);
    I am not using urlString for further processing.
    The output is
    WSDL URL: http://<host>/PSIGW/PeopleSoftServiceListeningConnector/MyService.1.wsdl
    java.lang.NullPointerException
            at java.lang.Class.isAssignableFrom(Native Method)
            at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:97)
            at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:118)
    The WSDL Url pointed to is the one that I configure in the connection while deploying the App.
    Ran a test and WSDL Url is accessible by the app.

  • Out of memory when coverting large files using Web service call

    I'm running into an out of memory error on the LiveCycle server when converting a 50 meg Word document with a Web service call.  I've already tried increasing the heap size, but I'm at the limit for the 32 bit JVM on windows.  I could upgrade to a 64 bit JVM, but it would be a pain and I'm trying to avoid it.  I've tried converted the 50 meg document using the LiveCycle admin and it works fine, the issue only occurs when using a web service call.  I have a test client and the memory spikes when it's generating the web service call taking over a gig of memory.  I assume it takes a similar amount of memory on the receiving end which is why LiveCycle is running out of memory.  Does any one have any insight on why passing over a 50 meg file requires so much memory?   Is there anyway around this?
    -Kelly

    Hi,
    You are correct that a complete 64bit environment would solve this. The problem is that you will get the out of memory error when the file is written to memory on the server. You can solve this by creating an interface which stores large files on the server harddisk instead, which allows you to convert as large files as LC can handle without any memory issue.

Maybe you are looking for

  • BAPI/FM ro retrieve stock based on material plant batch combination

    Hi Experts, Can anyone help me in giving information about the FM or BAPI that would fetch inventory/stock for the material plant and batch combination. I refered to some of the BAPI's like BAPI_MATERIAL_STOCK_REQ_LIST , MD_STOCK_REQUIREMENTS_LIST_AP

  • Table compare and derive alter script between 2 schemas

    I am in Oracle 10g. We are in need to synchronise table structures between two different database. and execute the alter script in the target database. I have an idea to find the tables which have the table definition changed using all_tab_columns an

  • Select List with the current value

    Hi, I have a Page suppose Page1 with 2 region. Region1 is having SEARCH button (target page 1 itself) and a SELECT LIST called Deptno (10,20,30,40) Region2 is just a simple employee report based on Deptno (where deptno = :p1_deptno) Now when I suppos

  • Not all Docs will go into iCloud

    Why can't I put "non-pages" documents on iCloud? It won't take PDF, DOC, RTF files. This is suppose to replace iDisk and doesn't take all the files iDisk did. What's up with that?!

  • E -reader device not supported

    I have recently purchased an Assus Tablet with an android OS mainly with the object of downloading ebooks. I Ihave downloaded e- books to my computer  which I then moved to the device. The e-reader Adobe app was also in situ. The books would not open