Web Service to transmit a file (a very large file)

Greetings,
Is is possible to use a web service to transmit a file, sometimes a very large file? If so, what are the security implications of doing such a thing?
Thanks,
Charles

Quick answer: It depends... Did you try using Google to look-up examples of doing this? Here is a url to try: http://www.google.com/#sclient=psy&hl=en&source=hp&q=web+service+transfer+file&pbx=1&oq=web+service+transfer+file&aq=f&aqi=g1g-j3g-b1&aql=&gs_sm=e&gs_upl=1984731l1997518l0l1997874l25l19l0l1l1l0l304l3879l0.7.10.1l18l0&bav=on.2,or.r_gc.r_pw.&fp=7caaed5eb0414d97&biw=1280&bih=871
Thank you,
Tony Miller
Webster, TX
Never Surrender Dreams!
JMS
If this question is answered, please mark the thread as closed and assign points where earned..

Similar Messages

  • How to use web dynpro's web service to import XML file

    Hi
    I have an xml file and I want to use a web dynpro's web service to cosume this file which is existing on my local drive. Can anyone help me which steps I have to do to use this file as a web service using web dynpro.
    Thanks

    Hi
    You can refer below Wiki Article on SDN. I hope that will help you out.
    [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/emtech/consuming%2babap%2bweb%2bservices%2busing%2bflex]
    Thanks.

  • How to write a web service for uploading a file

    Hi all,
    I want to write a web service for uploading a file to some specified folder under application server, how to do that? Thanks

    I believe the "difference" that you're seeing is that one web service is "RPC" style (The Hello World example) and one web service is "Document" style (The WSDL you have downloaded).
    Document-style web service methods always have one element as a parameter, and this parameter manifests itself as a SOAPElement in the service interface.
    RPC-style web services are true "remote procedure calls", and are more functional in nature, in that they accept multiple parameters. JAX-RPC will bind these parameters to generated Java types.

  • Web Service Project using WSDL file

    Hi All,
    I want to create web service project using WSDL file(I already have a wsdl file), which needs axis2 run time to generate correct project structure, I did this in eclipse but now I want to do it through JDeveloper(11.1.2.0.0), so please suggest me any ways on how can I configure axis2 runtime in Jdeveloper, and is it possible do it in Jdevloper?
    Thank You,
    Sunny
    Edited by: Sunny on May 8, 2012 1:51 AM

    Have you installed the 64-bit Access driver on your machine? See
    Data Source Names and 64-Bit Operating Systems for the differences in odbcad32. Call %SystemRoot%\system32\odbcad32.exe to check the drivers.
    How do you host your service? Stand-alone or IIS or embedded to another application? Keep in mind that IIS7 runs it in its application pool which is defaullt 64bit. Thus the bad image exception, when compiling your service as 32bit.
    When you need the Access database for your service to store informtation, then I would switch to SQL Server (Express) or XML files depending on your actual needs.
    Also check whether your account under which your service is run has the necessary NTFS file permissions on the access file and the folder. This is getting even more complex when it's a remote folder.

  • Write Web service to return binary file

    Hi there,
    I am trying to write a simple weblogic web service which read a file (pdf, doc, png...) and return the file in SOAP (as attachment).
    I haven't found any bea tutorial on that topic. I would appreciate if you could provide me some links or some tutorials about SOAP attachment with weblogic 10.0
    Best regards,
    Phuong

    I don't see a version number.
    I don't see any indication as to where the code you posted originated.
    I don't see any indication of whether it works or does not work (for example an error message).
    If you have questions about web services ask them in the correct forum.
    If you want someone to teach you how to use them all I can tell you is that the developers where I work use lots of SOAP and not one has written a procedure similar to what you posted.

  • Consume web service from a PAR file

    Hi All,
    Is it possible to consume web service from a PAR file? If yes, can you please give me an example / link.
    Appreciate your help.
    Thanks,
    Vimukta

    << Do not post the same question across a number of forums >>

  • Web Service to download a file...

    Hi,
    I would like to develope a PL/SQL web service that "attach" a file when this is called , so the client could download this file...
    Is this possible, with JDeveloper??? Any whitepaper?
    thanks in advanced..

    Hello,
    Web Services allow exhanging files using the "Web Service Attachment" feature and OracleAS does support multiple encoding style depending of your needs, as you can see in the documentation:
    - Working with Attachment
    The doc that I have pointed you to is for Web Services development in Java independently of the database..
    The current database Web Services does now allow you to expose LOB resources as attachment directly.
    So what you can do is to implement the Web Service in Java and using EJB, or any JDBC technology to access the database and expose that using attachment as Web service.
    Regards
    Tugdual Grall

  • How to trigger web service automatically when xml file generated at static

    Hi Experts,
    I have developed web service to read content from XML file.
    I need to setup like whenever new xml file generated on static location (eg:E:\xml_files) generated web service should trigger automatically.
    My requirement:
    1) XML FIle content: have 3 tags with nultiple records.
    2) Configured Weblogic Apploication server on JDev 11g
    3) Developed Java code to read XML content and store it in Oracle Database.
    4) created web service and called java class.
    above 4 points, which I did already.
    I appreciate if any one help me out, when ever new file created on static location, web service should triggered automatically and stored the data in to data oracle DB.
    Thanks,
    Phani

    Hope you are looking for a SOA Suite/OSB solution for this.
    If SOA Suite - You can configure a JCA File Read adapter to read off the XML file and then use a mediator/composite to invoke your WS.
    If OSB - You can configure a File read transport or a JCA Adapter to read off the XML file and then use a route node/service callout to invoke your WS.

  • Error when trying to create a web service from a wsdl file using jdeveloper

    Hello,
    I'm using the latest jdeveloper and jdk 6 update 20 on solaris sparc 10.
    When I'm trying to create a web service from a wsdl on the java EE 1.5 platform i get the following error:
    Validation failed:
    java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    I've tried the endorsed mechanism with the latest jaxws-api.jar and jaxb-api.jar packages with no help.
    It works fine when i use the java EE 1.4 platform....
    The full Error description:
    oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     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.setDescription(JavaWebService.java:745)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.topdown.TDJaxWsSpecifyWsdlPanel.setDescription(TDJaxWsSpecifyWsdlPanel.java:364)+
    +     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 "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     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)+
    +     ... 8 more+
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     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 $Proxy34.getJaxWsSeiInfo(Unknown Source)+
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)+
    +     ... 11 more+
    Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:186)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.annotateReference(AbstractField.java:209)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractField.java:164)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.createField(AbstractFieldWithVar.java:75)+
    +     at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:89)+
    +     at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:76)+
    +     at sun.reflect.GeneratedConstructorAccessor53.newInstance(Unknown Source)+
    +     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)+
    +     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)+
    +     at com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer.generate(GenericFieldRenderer.java:64)+
    +     at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:75)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:751)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:539)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:241)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:181)+
    +     at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)+
    +     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:251)+
    +     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)+
    +     at oracle.j2ee.ws.common.tools.databinding.jaxb20.JAXB20TypeGenerator.generateJavaTypes(JAXB20TypeGenerator.java:117)+
    +     at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:186)+
    +     at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:647)+
    +     ... 20 more+
    Caused by: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at java.lang.Class.getMethod(Class.java:1605)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:184)+
    +     ... 40 more+
    Thanks,
    Roy.

    Guys,
    You are asking about an issue that was a pain in the nick for me few months ago. The problem is that you won't find mych help here as I figured out that Apex geeks here either did not do much webservices or ended up hating it as i do :) . This is an error that can be due many different reason, let me ask you this:
    1- Does your the other system you are trying to call through webservices using HTTPS ?
    2- If yes, did you create a valid oracle wallet for that https connection ?
    3- Make sure you are using the correct URL ( am sure you do, just double check )
    4- If using a proxy, then you have to define that in the web service reference creation page
    provide more info and I hope I can help you with this,
    Sam
    Please reward good answers by marking them correct or helpful!

  • Putting web service in an ear file

    I am using the jwsc ANT to to create a web service. The docs say by default it creates an exploded directory. I don't want an exploded directory, I would rather have an ear file. I see that the jwsc task has an explode attribute, but setting that to false has no affect (actually I see no difference in behavior whether I set that to true or false).
    So how can I get it into an ear file?
    I would rather have the ear file because I am having no luck deploying an exploded directory with the wldeploy ant task. It claims it can't find any application files:
    [Deployer:149003]Unable to access application source information in '/java_projects/vacd-webservices/dist/RealtimeStatsEar' for application 'RealtimeStats'. The specific error is: No application files exist.
    <target name="build-realtimestats-service" depends="clean">
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask"/>
    <jwsc srcdir="src/java" destdir="${distdir}/RealtimeStatsEar">
    <jws file="com/wic/vacd/wsimpl/realtimeStats/RealtimeStatsImpl.java"/>
    </jwsc>
    </target>
    <target name="deploy-realtimestats-service-devel">
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy"/>
    <wldeploy action="deploy"
    debug="true"
    name="RealtimeStats"
    source="${distdir}\RealtimeStatsEar"
    user="system"
    password="wicsysdev"
    adminurl="removed for security">
    targets="7001" />
    </target>
    Under the dist directory exists a directory named RealtimeStatsEar that contains a war file (under the appropriate package path), a META-INF directory and a APP-INF directory. Both those directories contain the appropriate descriptor files so I really don't know why it claims it can't find the files.
    I have followed the docs exactly and am having no luck deploying this thing.
    This is with Weblogic 9.0.

    Just want to mention that I do see a difference when I use the explode attribute on the jws task (its not on the jwsc task like I mentioned before).
    The war file containing the service is expanded.

  • How to write Web Service Log to a file in Java

    Hi..
    I have a requirement that I need to maintain Log file of my web service which is deployed on OC4J server.
    Is there any API for this ? Or any other way to do it ?
    Regards,
    Ajay

    Hi..
    Thanks.
    Instead of using Logging API, I created own class to handle Log.
    But my issue is When Ever I am appending Log to already created file the following Line is also appending.
    <?xml version = '1.0' encoding = 'UTF-8'?>I want this Line only one time in each log file.
    What should I do for this ?
    Regards,
    Ajay

  • Web Services Code for reading file.

    Hi,
    I wanted to write java program for developing a web service which will have a single operation as getFileDetails and two message as getFileDetailsRequest and getFileDetailsResponse.
    Body of getFileDetailsRequest message will be as below
    <getFileDetailsRequest>
    <file><file>
    </getFileDetailsRequest>
    Here datatype for file is string and value will be path of a file itself.
    Body of getFileDetailsResponse message will be as below
    <getFileDetailsResponse>
    <name></name>
    <type></type>
    <size></size>
    <readAccess></readAccess>
    <writeAccess></writeAccess>
    <lastModified></lastModified>
    </getFileDetailsResponse>
    Here, name is name of the file. type is a type of the file. size is a size of the file in KB. readAccess and writeAccess are boolean and will return true or false depending upon the access provoided. lastModified is a timestamp in the ddMMyyyy'T'hhmmss format.
    Thanks in advance.

    Hi,
    I wanted to write java program for developing a web service which will have a single operation as getFileDetails and two message as getFileDetailsRequest and getFileDetailsResponse.
    Body of getFileDetailsRequest message will be as below
    <getFileDetailsRequest>
    <file><file>
    </getFileDetailsRequest>
    Here datatype for file is string and value will be path of a file itself.
    Body of getFileDetailsResponse message will be as below
    <getFileDetailsResponse>
    <name></name>
    <type></type>
    <size></size>
    <readAccess></readAccess>
    <writeAccess></writeAccess>
    <lastModified></lastModified>
    </getFileDetailsResponse>
    Here, name is name of the file. type is a type of the file. size is a size of the file in KB. readAccess and writeAccess are boolean and will return true or false depending upon the access provoided. lastModified is a timestamp in the ddMMyyyy'T'hhmmss format.
    Thanks in advance.

  • CAF service: import web services using Remote Location / File System

    Hallo Experts
    I use the NetWeaver DevStudio 7.1 SP5.
    I have a CAF project and in this project I want to import one WebService as external service. I have chosen the option "Remote location/ File System" in the import web service wizard, then I enter the URL in the following step. But at the end of wizard I got the error "WSDL could not be downloaded because Server returned HTTP response code 403 for URL". The web service I've deployed and tested on the server. It runs well. Any Hints?
    Thanks in advance
    Kind Regards
    Ping

    Hallo
    I found out: if I enter one URL "http://xxxx.xx.ch:51000/ExampleService/ExampleBean?wsdl&mode=ws_policy". Afterwards I got the error "http://xxxx.xx.ch:51000/ExampleService/ExampleBean?wsdlmode=ws_policy". & ist not correct displayed. Is this the problem that I got 403 Error... It is a bug in SP5
    Thanks if you can tell me some work-arround.
    Ping

  • Invoke web service to return binary file (image) using soap

    Dear all,
    Please I a problem when invoking a web service throgh soap protocol,
    this we service has two operations, the first one takes student id and return doctype of it's documents id's,
    the another operation takes the document id and return it's image ( this is like archiving system)
    NOTE:
    I use soap package from this link:
    [http://www.oracle-base.com/dba/miscellaneous/soap_api.sql|http://www.oracle-base.com/dba/miscellaneous/soap_api.sql]
    Also I tried to invoke the following web service but failed:
    [http://www.webservicex.net/WS/WSDetails.aspx?CATID=12&WSID=56]
    CREATE OR REPLACE PACKAGE BODY pkg_my_webservice IS
    vg_funciton_fnc VARCHAR2(256):='GetCitiesByCountry';
    vg_ws_address VARCHAR2(255):='http://www.webservicex.net/globalweather.asmx';
    FUNCTION call_myfunction(vp_parameter1 VARCHAR2,vp_parameter2 VARCHAR2)
    RETURN VARCHAR2 AS
    ol_req soap_api.t_request;
    ol_resp soap_api.t_response;
    BEGIN
    ol_req:=soap_api.new_request(vg_funciton_fnc,'xmlns="'||vg_ws_address||'"');
    soap_api.add_parameter(ol_req,'string1','partns:string',vp_parameter1);
    soap_api.add_parameter(ol_req,'string2','partns:string',vp_parameter1);
    ol_resp:=soap_api.invoke(ol_req,vg_ws_address,vg_funciton_fnc);
    RETURN soap_api.get_return_value(ol_resp,'result','xmlns:m="'||vg_ws_address||'"');
    END call_myfunction;
    END pkg_my_webservice;
    Please can any one tell me how to invoke this web service to achive this ?
    Thanks in advance

    I don't see a version number.
    I don't see any indication as to where the code you posted originated.
    I don't see any indication of whether it works or does not work (for example an error message).
    If you have questions about web services ask them in the correct forum.
    If you want someone to teach you how to use them all I can tell you is that the developers where I work use lots of SOAP and not one has written a procedure similar to what you posted.

  • Deploying a Web Service w/o WAR files

    I've seen several posts on this (including a few from me about a year ago), but I haven't seen anything from Sun on how to do this.
    In JWSDP 1.1 xrpcc would create a *Config.properties file, and I would add the following to my web.xml file
                         <servlet>
              <servlet-name>API</servlet-name>
              <servlet-class>com.sun.xml.rpc.server.http.JAXRPCServlet</servlet-class>
              <init-param>
                 <param-name>configuration.file</param-name>
                 <param-value>/WEB-INF/APIService_Config.properties</param-value>
              </init-param>
              <load-on-startup>0</load-on-startup>
         </servlet>
       <servlet-mapping>
          <servlet-name>API</servlet-name>
          <url-pattern>/api/*</url-pattern>
       </servlet-mapping>The xrpcc tool would create all my stubs, and it would create the *Config.properties file referenced in the web.xml. I could bundle these with my other classes, and everything would work. Very nice.
    JWSDP 1.2 introduced wscompile/wsdeploy. These tools started requiring WARs (which SUCKS for large projects during development, btw. PLEASE ADD OTHER OPTIONS, SUN!!!!!).
    wscompile also quit creating the Config.properties file. However, I was able to keep my old build process working by holding onto the Config.properties files from 1.1 and using the same web.xml definition.
    My questions are:
    1. What tool generates this *Config.properties file? How can I get back to this?
    2. Is the configuraiton I'm using optimal for use with 1.2 (I haven't even looked at 1.3 yet)?
    3. Does anyone else build/deploy not using WAR files?!? Do you have any ideas/suggestions/experience that might be helpful.

    I dont know if this will help, but I also use a config.properties to load my servlet values and also using JWSDP 1.2 .
    I manually create the config file ( since i know what values to expect )
    I run wscompile/wsdeploy over my files to create the war file containing tie + wsdl + utility classes
    This is then extracted to a temp directory .
    Here I maually edit my web.xml and copy the config file across to WEB_INF directory .
    Note that the wsdl file has to be in the same directory as the WEB-INF....
    This may sound quite long winded to do , but works fine for me ..

Maybe you are looking for

  • Threads and lockups

    Hi everyone, I have a question about threads. I have a JDesktopPane in a Frame. I have added a number of JInternalFrame to the JDeskTopPane that is show/hide as required. This all works fine. One particular internal frame is a frame that allows the t

  • Drop Down Problem in Google Chrome

    Hi, Total newbie to Dreamweaver and spry menu bars. I just finished my new site and I need help solving one small problem. When browsing the page on Google chrome, the "Galleries" menu will not drop down is selected in one if the children pages. I ha

  • Problems upgrading After Effects CS 5 to CS 5.5?

    I have had After Effects CS 5 for a long time, as it was working for what i needed it for. Now i want the free upgrade to CS 5.5 and the installer wont work. Adobe Application Manager pops up saying "Update failed. Updates could not be applied." How

  • MUVO TX SE imoprtant questi

    Hi, i would like to ask... .Why isn't a MuvoTX SE firmware available on creative webpage. Is MuvoTX(or TX FM) firmware suitable for MuvoTX SE? 2.Are there any other differences between MuvoTX and MuvoTX SE?(I just know that accessories in the package

  • Information Regarding Personnel Development

    Hi I need a small help from expertise in PD i need a step by step config details of the personal development .LSO Pls help me Thanks Thiru