Using Eclipse 3.1 SDK to implement Web Services

Hi
I am using Eclipse3.1 as the SDK for developing Web Services from Java Classes, and I have created two Web Services: X and Y. I need to make X a client to Y; therefore, I have been searching the Internet on how I can implement this. I got many references; some of them uses JAX and others use "com.ibm.cowbell" and "com.ibm.ws packages", but so far I cannot make it. When I try to import "com.ibm.ws", I got an error that the name of the package cannot be resolved. If any one has a suggestion of best practice in this or telling me why I cannot import "com.ibm.cowbell", I will be really appreciating as this is very impotant for my MSc. Thesis.
Best regards for all
Sherif

Kurt:
It does look like a bug. I can offer the following workaround.
Create a Manual Web reference as described here:
http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/advnc.htm#BABCBBHJ
section "Creating a Web Service Manually"
based on the WSDL below, you would enter the following for URL and Action:
URL: http://xpvm.us.oracle.com:8888/orabpel/default/ItemGet/1.0
Action: process
Also, enter a name for an APEX collection to store the response, such as GET_ITEM_RESPONSE.
For the SOAP Envelope, paste in the one that works from SOAPUI or use BPEL Control to get the envelope. Instead of static values for the parameters you use #ITEM_NAME# substitutions. So if the page generated by the wizard was on page 1, it would look something like:
<inputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><get:Item xmlns:get="http://TargetNamespace.com/GetItemRequest">
<get:SETID>#P1_SETID#</get:SETID>
<get:ITEM_ID>#P1_ITEM_ID#</get:ITEM_ID>
</get:Item>
</part></inputVariable>
(with the proper SOAP Envelope wrapper around it)
Now go to page 1 (assuming that was the page created by the wizard) and remove the current process of type Web service on that page. Add a new process of type Web service, choose Manual, and choose the manual one you created above.
Follow the instructions in the section titled "Displaying Web Service Results in a Report" at the link above to create a report on the result.
There is also an advanced tutorial using Manual Web references you may wish to review:
http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/web_serv.htm#CHDEFEGH
Hope that helps,
Jason

Similar Messages

  • Problem with HowTo guide - Use the BI Java SDK in a Web Dynpro Application

    Hello,
    I am following the HowTo guide - Use the BI Java SDK in a Web Dynpro Application
    at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e49be590-0201-0010-0c83-fc20e5da124f">this link</a>.
    I have configured the connector on the WAS as needed.
    The problem is that when I run the application I receive an Unauthorized error on the connector URL.
    If I open this URL on a browser I receive a pop-up for UID and PWD and when I enter the same UID and PWD I used to configure the connector I am able to login and see the WSDL.
    Any ideas?

    I've never tried using BI in WebDynpro !!!
    But i foond one posting on the connection problem https://forums.sdn.sap.com/click.jspa?searchID=955524&messageID=2133396
    Regards,Anilkumar

  • Implementing Web Services in Lodestar

    Dear all,
    I'm trying to implement Web services using the Lodestar suite.
    In particular, what I am trying to do is to implement a Web service that executes a Rate Schedule procedure.
    The idea is to receive an XML message in input, perform some logic within the Rate Schedule, and then produce an XML in output.
    Currently, I am able to register the Web service into the Lodestar environment and let clients to invoke it.
    Upon the receive of a message, the proper Rate Schedule is executed and an output XML message is produced.
    Unfortunately, what I am not able to do is to pass the content of the input message of the Web service to the Rate Schedule.
    Do you know how to solve this issue?
    Thanks in advance
    Enrico

    Sorry for such a late reply. There were few architectural changes coz of which web service implementation was taken outside OAE app. So, I was unable to get the debug output.
    Still, I would be interested in knowing the possible root cause of the issue and a possible solution.
    Thanks
    Shruti

  • (261680070) Q WWO-2   Can I use a different vendor to host Workshop web services?

    Q<WWO-2> Can I use a different container(say IBM websphere) to host my "BEA workshop
    implemented" web services?
    A<WWO-2> The web services generated by Workshop (.jws files, .ctrl files, etc), while
    they are J2EE compliant, are not likely to be ubiquitously deployable to over Java
    application servers (at least not yet). However, BEA has proposed the .jws file structure
    to be Java standard for making web services. Only time will tell how this is accepted
    in the Java community.

    I would just like to correct my comment in response to the previous statement. You
    can build the appropriate .ear file by using the jwsCompile facility. This really
    a java class but a DOS command, jwsCompile.cmd, has been provided for you in the
    c:\bea\weblogic700b\samples\workshop folder. When you use the -ear option with this
    command you can specify the appropriate output enterprise application (invoke it
    without arguments to see what your options are). This application can then be deployed
    to a cluster in a WLS domain.
    "Adam FitzGerald" <[email protected]> wrote:
    >
    Q<WWO-7> Can I deploy "web services" to a cluster?
    A<WWO-7> Yes you certainly can. While the test environment for Workshop
    is a single
    server with an exploded directory structure the real deployment component
    is a .ear
    file containing all the appropriate J2EE compliant generated classes (not
    accessible
    thorugh Workshop but available with the servicegen Ant task). Enterprise
    applications
    can be targeted to clusters.

  • How to use a deployable proxy to consume a web service?

    HI Gurus,
    I am following this article below which helpfully explains how to create a proxy. So far so good. I have been able to create a proxy. However, the article only describes how to build a proxy.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c7d0f7-153d-2a10-5d96-d334b67cd771
    In the concluding part of the document the author says "In my next article I will tell you how to use this deployable proxy to consume the web service in web application."
    I have looked around the SDN but have not been able to get the next part of this document.
    I have a JSPDynpage application which is required to consume a webservice. I want to use this proxt to consume the webservice.
    Any help or any other document that explains how to use a deployable proxy to consume a web service will be helpful.
    Thanks,
    SB

    Hi,
    Here is an example how to consume the deployable proxy in web application:
    http://help.sap.com/saphelp_nw70/helpdata/EN/ca/c8efe3e8a64163b01924ad4ccd706d/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/5c/971740198d8f5ce10000000a155106/frameset.htm
    Regards,
    Praveen Gudapati

  • Implementing Web Services as Transport Protocol in B2B and Healthcare

    Hi B2B Gurus,
    I am unable to implement web service transport in B2B and Healthcare, I am getting few issues.
    I fallowed below link.
    http://docs.oracle.com/cd/E28280_01/user.1111/e10229/bb_partner_webservice.htm#BABIIEJJ
    Can any one explain how exactly web service transport works in B2B?
    please provide me any samples or document on implementing web service transport in B2B and Healthcare.
    Thanks in advance.
    Satheesh

    I think the B2B forum will be the best place to ask those questions - Integration - B2B
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to Use SOAPArray to Exchanged Data with a Web Service

    The method of a prototype Web service I created is defined to take many parameters
    and return an object of a user defined class. Furthermore, the user defined class
    includes data elements of another user defined class and the Java ArrayList class.
    This works with a Java client referencing the WebLogic created client.jar file
    but I don't know how well it will work with a non-Java client. In particular,
    with Perl which is the language that will be used by the developer who first will
    test with the prototype.
    In posts to this newsgroup use of "language-specific, generic containers" has
    been discouraged and the "language-agnostic" SOAPArray recommended. I have searched
    this newgsroup and the Web for examples of how to use a SOAPArray in a Web service
    EJB to receive parameters and return results but found none.
    Will someone refer me to an example or give an overview of how a Java Web service
    EJB running in WebLogic 6.1 would use SOAPArray to get parameter values and return
    results?
    Also, I would like confirmation that it is best to use SOAPArray to exchange data
    with a Web service to achieve the goal of a service accessible by any language.
    Thank you.

    Replies in-line:
    How are the structures, e.g. gltrans-workType, defined in the Web service?The structure is made up of nested Java Beans, but this does not mean that the
    client for your web service has to be written in Java. The WSDL that I sent contains
    everything that a .NET-based (or Perl-based, or Python-based, or VB-based, or
    C++ based) Web Service Stack needs to correctly create all the data types in the
    web services' signature! That's the beauty of XML Schema! It's programming language
    independent :-)
    In
    other words, what definition in Java resulted in the WSDL statements?The WSDL wasn't produced by WLS 6.1, but it (WLS 6.1) can consume it.
    What is the signature of method submitGLTransWorkAsJavaBean() in the
    Web service?public void submitGLTransWorkAsJavaBean(GlTransactionsCpyType glTransactionsCpyType)
    GlTransactionsCpyType is the outer-most Java Bean. WLS 6.1 does not generate
    Java Beans for you, but it will use ones that you defined. See the Java Bean tutorial
    on the Javasoft sitem for details on how to create a Java Bean.
    Was the WSDL generated using the WL tools for creating a Web service?No.
    Conclusion:
    You asked for someone to provide you with an example of how to use SOAP array
    in a WSDL, which is what the attached file contained :-) What you want to do now
    is find a tool that can generate Java Bean code from this WSDL (Apache Axis has
    a wsdl2java tool that should work), or create the Java Beans yourself. Afterwards,
    create a WLS 6.1 Web Service a expose it for a Perl or .NET client.
    Regards,
    Mike Wooten
    "Jeff Carey" <[email protected]> wrote:
    >
    Please elaborate.
    How are the structures, e.g. gltrans-workType, defined in the Web service?
    In
    other words, what definition in Java resulted in the WSDL statements?
    What is the signature of method submitGLTransWorkAsJavaBean() in the
    Web service?
    Was the WSDL generated using the WL tools for creating a Web service?
    Thank you.
    "Michael Wooten" <[email protected]> wrote:
    Hi Jeff,
    Sounds like a pretty cool prototype :-)
    I have attached a WSDL (at the bottom of this post) that contains a<schema>
    that
    uses a SOAPArray to create an array of a <complexType>.
    HTH,
    Mike Wooten
    "Jeff Carey" <[email protected]> wrote:
    The method of a prototype Web service I created is defined to take
    many
    parameters
    and return an object of a user defined class. Furthermore, the user
    defined class
    includes data elements of another user defined class and the Java ArrayList
    class.
    This works with a Java client referencing the WebLogic created client.jar
    file
    but I don't know how well it will work with a non-Java client. Inparticular,
    with Perl which is the language that will be used by the developerwho
    first will
    test with the prototype.
    In posts to this newsgroup use of "language-specific, generic containers"
    has
    been discouraged and the "language-agnostic" SOAPArray recommended.
    I have searched
    this newgsroup and the Web for examples of how to use a SOAPArray in
    a Web service
    EJB to receive parameters and return results but found none.
    Will someone refer me to an example or give an overview of how a Java
    Web service
    EJB running in WebLogic 6.1 would use SOAPArray to get parameter values
    and return
    results?
    Also, I would like confirmation that it is best to use SOAPArray toexchange
    data
    with a Web service to achieve the goal of a service accessible by any
    language.
    Thank you.

  • How to use user-defined packages in JAX-RPC web service

    I am trying to use Object of my class located in my package in jax-rpc webservice,the code is
    package supercomputer;
    import Hello.*;
    public class SuperImpl implements SuperIF
    public String sendParam(String data)
    Temp ob=new Temp();
    int i=ob.get1(10000);
    return data+"returned by supercomputer";
    Temp is located in Hello package,I have jar the Hello package as Hello.jar and has set its classpath in targets.xml of Ant tool.
    The code compiles well and service is deployed successfully,but when i try to call the service from the client its gives me following error.
    [echo] Running the supercomputer.SuperClient program....
    [java] java.rmi.ServerException: Missing port information
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:357)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
    [java] at supercomputer.SuperIF_Stub.sendParam(SuperIF_Stub.java:60)
    [java] at supercomputer.SuperClient.main(Unknown Source)
    I dont know if it deploys why it gives error on client side.
    Please tell how to use user-defined packages and class in jax-rpc service code ,i am not talking about passing user-defined parameters i am just talking about making objects of user defined classes in jax-rpc service.I think there is some problem in classpath.
    Please guide me in doing that.
    Thanks,
    Farrukh

    Farrukh,
    I don't know if your error is about a missing class from your custom package, ... what track did you followed to say that?
    To use your package in the implementation of you web service, you should only follow the rules of making a web application: put your package jar in your \lib directory inside WEB-INF/ or your package classes unjared in classes (also in WEB-INF/).
    As I already said, I have doubts that your error should be originated from a missing class from your package, but:
    -try to see the logs (errors?) when you deploy your web service that could give a hint about the problem.
    -try to see if you can access your endpoint through your browser to see if there is a online status
    -display your config/WSDL file, and the steps you did to build your web service.
    regards,
    Pedro Salazar.

  • How to implement web service client timeout

    I'm trying to implement a web service client using JAX-RPC specification and the client is generated by clientgen utility. We are using weblogic8.1(sp5).
    How do I control the connection timeout and data transmission timeout? I have tried:
    BindingInfo.setTimeout() method and stub._setProperty("weblogic.webservice.rpc.timeoutsecs", "1" /* secs */);
    and they don't seem to be working...
    I have searched the web service documentation and didn't found any mentioning on this. Can someone shred some light on this?
    Thanks.
    Ren
    null

    Hi,
    I had a problem too for setting the timeout of a webservice client. but i didn't find any thing on this.
    But there is a work around for this see if it suits you but for this you have to use Apache AXIS webservice api to generate the client in that Api you have the Stub.timeOut() function to over come this problem
    Cheers !!
    Vivek:-)

  • Implementing Web Service in Web DynPro

    Hi Experts,
    I am trying to implement a web service say 'Currency Exchange Rate' found in the following link,
    http://www.flash-db.com/services/?ID=3&sType=Financial
    WSDL URL provided there is http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl (available web service)
    I create the <b>Adaptive Web Services Model -> UDDI or URL -> No Logical Destinations - use WSDL URL metadata retrieval and web service execution -></b> when I give the WSDL URL <b>http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl</b> I get an error saying Error in loading the WSDL file.
    Do I need to add any Plugins. If yes please do give the links to obtain the PlugIn.
    Regards,
    Boopathi M

    hi boopati,
    I tried thi wsdl using normal webservice model its working fine,
    try with normal webdervice model rather than adaptive webservice model
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
    Regards,
    Naga

  • Implementing Web Service with Stateless Session Bean

    I have a web service that I've built using the WorkSpace Studio tools (create a WSDL, generate the Java code from the WSDL, fill in the skeleton methods in the service implementation class). This service is deployed as a web module within an EAR to WebLogic Server 10.0 and is working great as a web service.
    I'd like to be able to also call the operations on this service via an EJB interface (from a different application on the same server). I followed the guidelines for adding EJB annotations to the web service implementation class (from [http://edocs.bea.com/wls/docs100/webserv/jws.html#wp215790]). I added the @Session annotation to the class, implemented javax.ejb.SessionBean, and added the ejbXXX() methods. This all makes perfect sense, and looked like it was going to work. However, WorkSpace Studio now gives me a compile error on the class that says "EJB backed WebServices are not supported."
    A few internet searches for that error didn't return anything relevant.
    It seems like I followed the instructions correctly. Is there a better way to build a service like this that is both a web service endpoint and a stateless session bean?
    Thanks!
    -Eric

    Having separate EJB and web modules certainly makes things easier, but I have non-trivial (i.e. not feasible to copy) application logic that I'd like to expose with both a bean interface (for intra-application usage) and a web service interface (for public consumption).
    I've tried starting with a "web application" WorkSpace Studio project and adding bean annotations. This produces the error I originally described. I also tried starting with an "EJB" WorkSpace Studio project and adding web service annotations. This fails at deployment time with errors about missing web service descriptors (the error is correct - the web-service-related descriptor elements are missing from the deployment descriptors).
    The documentation explicitly presents this as an option (annotating a class with both web service and session bean annotations), but how does one actually make this work?

  • Problem implementing web services with types generated by jdeveloper 10.1.3

    Hello,
    I have generated a web service using JDeveloper 10.1.3.3. from a WSDL. This WSDL includes a schema with some types defined. There is a element with the following definition:
    <xs:element name="OptionalInputs" type="AnyType"/>
    where:
    <xs:complexType name="AnyType">
    <xs:sequence>
    <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    The meaning of the element OptionalInputs is that it can include other elements, of any type, definied within the same schema.
    After generating the web service from the WSDL, I get the following:
    - A Class named 'AnyType' that consists of one element of type
    protected javax.xml.soap.SOAPElement[] _any;
    - Some classes which must be included in an object of type 'AnyType', and that implements java.io.Serializable.
    However, I do not know how to include successfully one of this (serializable) classes into an object of type 'AnyType' (SOAPElement[]).
    Could you be so kind as to help me, please?
    Thank you very much in advance.

    Hi there,
    10.1.3 is not production ready yet, and you will find this warning on the oracle page http://www.oracle.com/technology/tech/java/oc4j/1013/index.html
    "Under no circumstances should it be used in production environments."
    Does this mean that it's not possible to deploy a Doc/Lit webservice to production using JDeveloper? Is there any other way of getting it to work with 10.1.2?
    Thanks,
    Vid.

  • Need to auto-generate SDK for REST web service.

    My company has developed a REST API for some web services, and we'd like to provide users with a Java SDK for consuming those services.
    Our services are described by an XSD schema. On the backend, we are using JAXB to create Java classes corresponding to the schema. We create the request objects based on the parameters in the REST url, and JAXB converts our response objects from Java to XML.
    We'd like to provide our users with similar Java classes on the client side. They should be able to create the object corresponding to the request, fill in various parameters, and submit it to our web service. The SDK should automatically convert the object into a REST URL, hit the URL with a Get, read the XML response, and convert that response into Java objects.
    It seems like we should be able to auto-generate such an SDK based on our schema.
    It seems like there are several tools for doing this for SOAP web services. For example, Apache Axis has Java2WSDL and WSDL2Java.
    Can anyone recommend tools for creating client-side libraries for consuming RESTful web services? Does anyone have advice on products to avoid?

    Replying to my own post here. The WADL2Java project on java.dev seems to be more like what I need. The only user-experience I've seen on the 'net is in this forum post:
    http://forum.java.sun.com/thread.jspa?threadID=5239123&tstart=0
    Anyone else used it?

  • How do I use Adobe Media Server 5 on Amazon Web Services?

    Adobe Media Server 5 on Amazon Web Services was suggested to my project manager as a way to deal with some of the video we have to host at work, but after signing up and poking around, I'm wondering: how do you actually use it? Is it something that requires the Media Server software, or is there a web interface through AWS? I follow the links, and they tell me it's already active for my account - but I still see no way to use it.
    Thanks in advance for help on this seemingly remedial question!

    Hi,
    Please have a look at the document and let me know if it helps you get started: http://help.adobe.com/en_US/adobemediaserver/amazonec2/adobemediaserve r_5.0_amazonec2.pdf
    Thanks,
    Apurva

  • How to use a collection as an input in web services?

    Hi all,
    I have to connect to a web service of an rfc sap, the RFC has the following structure:
    - Input
       - parameters(parameters)
          - ZBAPI_SET_CG(ZBAPI_SET_CG)
             - V_DES_KOSTL(com.sap.caf.base.string)
             - V_DES_KSTAR(com.sap.caf.base.string)
    -T_TEXT(TABLE_T_TEXT_TLINE)
    - item(java.util.Collection - TLINE)
    - TDFORMAT(com.sap.caf.base.string)
    - TDLINE(com.sap.caf.base.string)
    - Output....
    How can I create such a collection as input?
    Should I create a new operation or use existing ones? (read, create, update, delete, findbymultipleparameters, readbycustomkey)
    thanks!!!
    Edited by: Pablo Umaña on Apr 8, 2009 8:11 PM

    Hi Pablo,
    Can you provide some more info?.
    Which version are you using , CE 7.1 or NW 7.0?
    If you are using CE 7.1:
    If you want to invoke the Web Service from your project, Just import that web service and map it to an application service operation. You can go for default mapping.
    if you want to go for Remote persitensy, then only you have to use CRUD(read, create, update, delete)
    methodes of the Remote Business Objects.
    Refer the [help documentation|http://help.sap.com/saphelp_nwce10/helpdata/en/45/174ae492ef5d79e10000000a11466f/content.htm].
    Thanks

Maybe you are looking for

  • Problem in replacing with the unicode equivalent character ?

    Hello, I have a situation wherein i must replace m with \u3005 n with \u3006 o with \u3041 etc ..., I get the codepoint value from the multibyte represenation . But the problem is I can not replace String temp="ename"; temp.replace('m','\u3005'); I a

  • QuickTake 150 and Power mac G3 (beige mini tower)

    hello there I have an apple QuickTake 150 but I don't have the software on the floppies. How ever I was able to download them. This is when I hit trouble. when I start to install the software it will select the proper stuff then it stops and says "th

  • No Audio; headphones, internal speakers, nothing.

    I'm sorry for another thread, I know there are a lot more that address this problem. I've read a lot of them, none of them have helped me. Alright so my audio won't work at all. I was plugged into external speakers and then it just stopped. My intern

  • Simple auditing question...

    Hello, We are running 11.2.0.2 on AIX 7.1. I'm trying to understand why our auditing is not behaving the way I think it should. First, we have the default auditing turned on as part of 11GR2. It seems to be capturing some things, but not always every

  • Have a file with a ? mark after trying to upgrade to Snow Leopard.

    I am running Leopard on my MacBook Pro and wanted to upgrade to Lion. Wouldn't work so friend suggested I try to upgrade to Snow Leopard first. Followed the Snow Leopard Installation instructions which said it would take 45 minutes and it would autom