Creating a java Web Service Using Axis

I need to write a Java web Service using Axis which send a file as an DIme attachement and It should to be invoked by .NET Client .
I need to know how to attach a file to Soap response and how to read a file from the response at Client.
I am new to web Services ,,please help me......

Hi
You can use a java web service to publish a Web service from a Java class.
A wizard creates the WSDL document and deployment files needed to publish your code as a Web service. After you select the class and methods you want to publish, the wizard generates deployment descriptors, a JAX-RPC mapping file, and a WSDL document that can be deployed to an application server.
You can refer : \bpel\samples\tutorials\102.InvokingProcesses\ws sample to invoke a WS using JAX-RPC Call.
Hope that helps!
Cheers
A

Similar Messages

  • Java web service using pl/sql DB package - JDev 10.1.3.1

    Hi All,
    I wanted to create a java web service, instead of a pl/sql web service, that calls a pl/sql package in my DB.
    Jdev (10.1.3.1) can generate java code for my pl/sql package. But the generated code can't be used with a java web service. I've found that the generated code uses types that can't be serialized for a webservice (ie. java.sql.Timestamp).
    Does anyone know of a work around?
    Thanks!

    http://www.oracle.com/technology/obe/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
    It's pretty well documented within Jdev also.
    Thanks, Rob

  • Publishing pl/sql as web services using axis

    Hello,
    I am a newbie to web services.
    I want to publish pl/sql packages as web services using axis and tomcat. Can you please tell me where to start - I will appreciate any information, links to tutorials and docs. Can you please tell me what I need to deploy and run the services.
    Thank you very much in advance!
    Eka

    Hello,
    The OracleAS Database Web Service is only available for OracleAS using the Oracle Web Service runtime and tools as documented here.
    If you are not using OracleAS or if you want to use another Web Service stack you can still manually program you Web Service manually using JDBC and is features.
    Here a generic article: http://www.onjava.com/pub/a/onjava/2003/08/13/stored_procedures.html
    and you can use advanced features of JDBC and JPublisher if needed:
    Simplifying Database Access
    Regards
    Tugdual Grall

  • How to Create and Deploy Web Services Using Oracle 9i JDeveloper

    Hi,
    My Question is how to create and deploy Web Services using Oracle 9i JDeveloper.Anybody please give me a detailed Reply.Please Reply to [email protected]
    Hopr to Hear From you,
    Regards,
    G Sreekumar

    You could use datasources. You should do this in your BC4J Configuration. Then when deploying your applicaiton use the command -installDataSource (from admin.jar) to create the right datasource.
    You could probably use the name of your connection + "DS" so you can also use it locally in JDeveloper as JDev seesm to create this automaticly for your Connections.

  • Web services using axis /eclipse/tomcat

    Hi all
    I am trying to develop web services using apache axis in Eclpise.
    I got an error Unexpected element "wsdl:definitions" definitions
    and even I cant get a target to specify while building.
    Can some one help me out?

    hi,
    ask scott from http://onlinecares.com about Java classes, he would be able to help you out.
    Edited by: jimwar on Nov 20, 2007 4:00 AM

  • How to create JAX-WS web services using providers?

    I am looking at WebLogic web services, because we are investigating the possibility of migrating our web services from Apache CXF to WegLogic web services. Our web services are implemented using JAX-WS providers. However, I browsed through the Oracle Fusion Middleware document library, but I couldn't find any documents for implementing JAX-WS web services using providers.
    Is there any document, tutorial, or examples of that?
    Thanks in advance!
    Tao

    Ok just as I expected. So I guess I am left with the following two options
    1) either I switched to using JAXB in my apps instaed of xmlbeans....
    2) or if I still wanna use the old JAX-RPC web services to deploy on the Weblogic 10gR3 server i will have to create my own ant task jwsc directly......as shown below in your docs
    Programming Web Services for WebLogic Server (ant tasks)
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webserv/anttasks.html
    Getting Started With WebLogic Web Services Using JAX-RPC
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv_rpc/index.html
    Will OEPE be supporting the old JAX-RPC anytime in the near future release? or have to create own build ant task to call jwsc ant task directly to compile JAX-RPC web services??

  • How to get the cookie from a web service using Axis

    I used the AXIS wizard to consume a WSDL and create a bunch of boiler plate code. It works great in that I can talk to the web service and submit requests.
    The problem is that I need to retrieve the cookie from the login request and use it when making subsequent requests. I have been unable to find the cookie and would appreciate a point in the right direction.
    Currently I'm trying something like this
    String cookie = (String)((Stub)service)._getCall().getMessageContext().getProperty(HTTPConstants.HEADER_COOKIE);
    Thanks in advance.

    Answered on my own:
    Just have to use
    x_result = http_client->response->get_data( ).
    instead of
    x_result = http_client->response->to_xstring( ).
    Just don't knwo why the filesize is wrong also - but I can work with this image!

  • 2 way SSL in web services [using Axis]

    Hi,
    Can anyone tell me how to implement 2 way SSL handshake before making a web service call , using Axis.
    This is what i have to start off with:
    1. wsdl, which i use to create the client side files [using eclipse] do meet the business needs.
    2. I also have my [client] key and cert and the servers root cert, required for SSL handshake
    Thanks for the help,
    Sandy

    Hi,
    Do you have created a Service Key provider and attached the same to proxy service.
    Oracle Service Bus verifies that you have associated a service key provider with the proxy service and that the service key provider contains a key-pair binding that can be used as a digital signature.
    Service Key Providers
    Regards,
    Abhinav

  • Reading complex types of a Web Service  using Axis.

    Hi,
      I am trying to read a WSDL using AXis APIs. Lets say I use this WSDL.
    http://www.dataaccess.com/webservicesserver/conversions.wso?WSDL
      This contains 3 complex types and 7 simple types.
    SymbolTable symbolTable = wsdlParser.getSymbolTable();
    BindingEntry bEntry =  symbolTable.getBindingEntry(binding.getQName());
    Collection c = bEntry.getParameters().values();
        Now when I read through the collection I get only 7 simple types contained in the complex types. Can I read the complex types only when they are registered. I expect this to be available because the parser is expected to read the WSDL. I get only these types.
         Urgent !! So please help !!
          (java.util.HashMap$Values) [
    returnParam = (QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , NumberToWordsResult, OUT)
    faults = {}
    signature = null
    (inputs, inouts, outputs) = (1, 0, 1)
    list = [(QName:         unsignedLong
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , ubiNum, IN)],
    returnParam = (QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , TitleCaseWordsResult, OUT)
    faults = {}
    signature = null
    (inputs, inouts, outputs) = (2, 0, 1)
    list = [(QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , sText, IN), (QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , sToken, IN)],
    returnParam = (QName:         string
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , NumberToDollarsResult, OUT)
    faults = {}
    signature = null
    (inputs, inouts, outputs) = (1, 0, 1)
    list = [(QName:         decimal
    name:          null
    isReferenced?  true
    Class:         org.apache.axis.wsdl.symbolTable.BaseType
    Base?:         true
    Undefined?:    false
    isSimpleType?  false
    Node:          null
    Dims:         
    isOnlyLiteralReferenced: false
    RefType:       null
    , dNum, IN)]]

    Hi Shiva
    just check the following link
    http://wiki.apache.org/ws/FrontPage/Axis/StaticDeployment
    thanks & regards
    Shishir Shah

  • Generation Error - when trying to publish a Java web service

    Hi All,
    I keep getting the following Generation Error -- java.util.NoSuchElementException_ when I'm trying to create a Java Web Service using the jdeveloper wizard.
    I have 2 entities and 2 stateless session beans acting as their facades. One entity has a One-One(FK) relationship with the other entity. I test out the entities and session beans using the test client and the OC4J embedded container and everything seems to work. When I try to generate a Java WebService from one of the entities I keep getting the "Generation Error". Could someone please provide me with some insight into why I'm facing this problem, because it seemed fine when I published J2EE web services previously and now this happens and I cant seem to publish web services anymore. Everytime I keep getting the same GenerationError. Thanks in advance.

    Without going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.

  • Java web service question

    I am trying to create a java web service using the wizard in Jdeveloper, but I am not able to pick up the java class I want. I already setup the classpath and library to include the java class files. but seems the wizard doesn't look at the classpath. what's the right way to do it?
    Is there any demo or tutorial code about how to create java web service ?

    Hello again,
    I am quite surprised I got no responses to my query below.
    Can anyone explain how I might do this?
    Please feel free to respond to [email protected]
    I am looking for what I think should be a simple
    example/tutorial but so far no luck. I am using
    JDeveloper 10g 10.1.3 and the Oracle Application
    Server.
    want to do this:
    create a simple Java web service
    deploy it
    create another simple Java web service, that makes a
    call to a method on the first service
    deploy it
    client->WSfront->WSback
    want to keep this as basic as possible.
    lthough I have found examples of how to create a web
    service proxy, there are no examples that I have
    found that show how to use that proxy in another web
    service:
    I did what I thought were the right things; generated
    a proxy for the first web service, and used that
    proxy in the second web service's source Java class.
    However when I deployed and tested many classes were
    missing: all the classes the proxy class depends
    on.
    I actually managed to get something like this working
    but had to manually create the .ear and .war files
    for WSfront, explode the archives, and manually add
    the missing classes to its WEB-INF/classes.

  • Using a Java Web Service in a BPEL Process

    Hello.
    I am newie with Oracle Soa Suite and BPEL process and i have problems. I have developed a Java Web Service, first developing the Java Class and then using the wizard to create a Java Web Service.
    Now i want to develope a BPEL Process that use this Java Web Service. I have tried it with the component Partnert Link from de palette and looking for the java web service wsdl file. I have tried it with the component Java Web Service from the palette. In both of them, it happens the same, it appears erros looking for the wsdl or looking for something that the wsdl use. If someone could try it. Its easy. Create a Java class with one simple method. Create A java web service with the wizard. Then create a BPEL process and try to use it with a partner link.
    I have been trying it one week...
    Thank you in advance.

    Hi
    You can use a java web service to publish a Web service from a Java class.
    A wizard creates the WSDL document and deployment files needed to publish your code as a Web service. After you select the class and methods you want to publish, the wizard generates deployment descriptors, a JAX-RPC mapping file, and a WSDL document that can be deployed to an application server.
    You can refer : \bpel\samples\tutorials\102.InvokingProcesses\ws sample to invoke a WS using JAX-RPC Call.
    Hope that helps!
    Cheers
    A

  • Unable to create java web service

    morning all
    Being new to ejbs I created a simple ejb project comprising one entity bean and one session bean. The session bean exposes two methods one to retrieve individual employee data (return object EmployeeData class which implements java.o.Serializable) and a second retrieving all employee data (return object java.util.Collection).
    When I attempt to create a Java Web Service and select the session bean to expose as a web service the method are grayed out, clicking 'Why Not?' displays a message box showing the message
    'The following parameter types do not have an XML Schema Mapping and\or serializer specified'
    What does this mean and how do I solve it?

    Hi,
    The java.io.Serializable marker is not consulted when determining whether a Java object can be transmitted in a web service invocation. Instead, each parameter and return value of a web service method must conform to one of the 3 rules below:
    1. It is a Java primitive (int, long, byte etc.), Java primitive wrapper (java.lang.Integer etc.), or a java.lang.String.
    2. It is a Java bean with a zero-argument constructor, and a pair of "get" and "set" methods for each property to be exposed. Each property must itself conform to one of these 3 rules.
    3. It is an array of a type that meets either rule 1 or rule 2.
    In the first case, I'd hazard a guess that your EmployeeData class doesn't have the form of a Java bean. Make sure it's got the zero-argument constructor, and that all of the "get" and "set" methods use types which are themselves publishable.
    In the second case, java.util.Collection doesn't conform to any of the 3 rules above. However, once you've fixed your EmployeeData class, you can convert the method that returns the Collection into a method that returns a EmployeeData[], which you will be able to publish in your web service.
    Hope that helps,
    Alan.

  • How to access PL/SQL Web Services using java

    New to Webservices. Created PL/SQL Web Service using JDeveloper. Vendor is not sure how to access it using java. Can anyone please help to point in the right direction or provide some sample ?

    So if I'm correct you have already exposed a PL/SQL procedure or function as web service?
    In that case you can generate a proxy (client) for the generated web service using JDeveloper. It will generate Java code which invokes the web service.
    See the wizard in JDeveloper, it should be in the same category as the create PL/SQL web service wizard.
    Regards, Ronald

  • Security-role for java web services developed using j-developer 10.1.2.1

    I have developed a java web service using j-developer 10.1.2.1, I have deployed this web service to oracle 10g (10.1.2.1) application server successfully. Now I want to add security-role to my web service deployment descriptor so that only a group of users that belong to a group can access my web service.
    How can I do this? Can any one please let me know.
    Thanks,
    SC.

    Hi.
    I suspect you have a proxy server between your localhost and the
    drive-app1.drivesoftwaresolutions.com
    Probably in Jdev that proxy is setup nicely in Tools->Preferences->Web Browser and Proxy
    But maybe your OC4J container running BPEL on localhost does not have that proxy setup.
    You need to add startup parameters to the JVM. In 10.1.3 you can do this via the "AS Control" administration pages (there is a link on the SOA suite welcome page). Go to JVM, click on the container and switch to the "Administration" tab.
    The properties are proxySet, proxyHost, proxyPort and nonProxyHosts
    When deploying from JDev, the compilation in JDev works fine (uses the proxy). But when the JAR is transferred to the server, it is compiled again. This fails because the proxy is not used on the server side and it cannot read the wsdl.

Maybe you are looking for

  • # - number sign in a variable

    Hello, i have a problem with variables that have "#'. I'm using conditional branch to start the report: Set these items: "P4_FILETYPE,P4_FILEID,P4_TXNUM,P4_ST" With these values: "TRNS,0,&P22_TXID1.%," When i enter value 333#444 in the item P22_TXID1

  • Translate to upper case a structure in ecc 6.0

    Hi, How to translate to upper case a structure in sys:ecc 6.0 (unicode) like it was possible in sys:4.7 TRANSLATE s_tab TO UPPER CASE. now I have an error message: "s_tab shall be a character-type". thanks

  • Events View in iPhoto '08

    When I go to the Events view in iPhoto '08 about half of my events groups do not show the key photos. Similarly, when you drag the mouse across the front of the event window in some instances no photos appear, in others only half appear and the rest

  • How can I get my iPhone & iPad2 to share 1 calendar

    Trying to get my calendar to match up on my iPhone & iPad2.  Does anyone know how to do this?

  • Reclassification of vendor group

    friends, 1. how to reclassify the vendor group to match with gl account. 2. can we create spl gl code for employee transactions regards,