Expose Web Module Java Class as Web Service

Hi Expert,
can you please tell me whether Web module java class method can be expose as Web service in sap netweaver 7.1?
if possible give me some scenario.
Please Help
Regards,
Vanita

Please Help.
I am stucked in middle.
Regrads,
Vanita

Similar Messages

  • Exposing Web Services as Callable Objects

    Hello!
    I have SAP NetWeaver 04s SP7. How can I expose Web Services as Callable Objects?
    According to "Exposing Web Services as Callable Objects" (http://help.sap.com/saphelp_nw2004s/helpdata/en/44/4758351fcb1193e10000000a155369/frameset.htm), I should start with choosing type of CO "Service -> Web Service".
    Actually, I haven't this entry in CO type list!
    According to integrate Web Services with GP, this type appeared in SP8. What are the alternatives in SP7?
    "Background execution" and "External service" seem to be the best candidates...
    What is the best solution?
    Thanx in advance!

    Hello, Jan!
    I have SAP NWDS 7.0.07, and I cannot find there an option to create a CAF project. I can create Web service, EJB, Web DynPro, and something else - but not a CAF project. In documentation I did not find the connection points between NWDS and External Services, except some plug-ins.
    Maybe I've misunderstood you, sorry - I'm a newbie in SAP
    Actually, I've made a simple EJB, created a Web service from it, and deployed the WS to portal. Maybe, EJB instead of Web service can be somehow used in CAF?
    I've tried to create a CO of type Composite Application Service, but there was necessary to configure endpoint aliases. I've read the manual "Configuring Endpoint Aliases", but didn't succeed to make one for EJB remote call... I've defined the name, URL (http://<host_of_portal>:<portal_port>), user and pwd - but I've got an exception when tried to use the created alias:
    com.sap.caf.core.gp.servicelocator.exception.MetaModelBrowserException: Exception while trying to get InitialContext. at com.sap.caf.core.gp.servicelocator.CAFMetaModelBrowser.getAllApplications(CAFMetaModelBrowser.java:77) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.browseCAFCore(VSelect.java:305) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.onActionSelectEptAlias(VSelect.java:750) at com.sap.caf.core.gp.ui.backgroundco.admin.wdp.InternalVSelect.wdInvokeEventHandler(InternalVSelect.java:287) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at
    Maybe, the easiest way is to upgrade the versions of SAP and NWDS?
    Are there some manuals that could provide me some help about:
    1) creating CAS from the deployed Web service (from its creation in NWDS till its use in CAF, step-by-step)
    2) binding Web Dynpro apps and Web services, using CAF and GP.
    Or maybe I should attend SAP courses?
    I have SAP NetWeaver 04s SP7 and NWDS ver. 7.0.07.
    Sorry for the messy post, I did my best
    Message was edited by:
            Kirill Shepitko

  • Unauthorized Error when using XI exposed Web-Services

    I have configured a XI exposed Web-Services, when I fired the web service, there is an Unauthorized Error.
    when I go to message monitoring, I notice that the exception happened for the end point "http://XI Server:8000/sap/xi/engine?type=entry" for connection AFW

    Hi ST,
    When you are firing the webservice after sending the SOAP request through XML SPY for checking,you need to enter the PI Server ID and Password then only request will be posted to PI server.
    You can directly posting the Request to Integration engine without going through the Adapter engine.
    Still u are facing problem please let me know.
    All the best,
    Azeez.

  • Is it possible to invoke a Java class from Data Services 4.0?

    Is it possible to invoke a Java class from Data Services? I have a query transform with a varchar column which I want to run an external java class against to encrypt the string value. In the Management Console, I created an adapter of type TestAdapter and referenced my jar file in the Classpath section, but when I create a Datastore of type Adapter I can't import any functions related to my java class? It seems like I need to create a new Adapter type similar to the TestAdapter with the 'Adapter Class' set to my java class? I can't figure out how to do this - which is the correct approach and is there some documentation available? thanks!

    First u nees to imoprt the class which u are doing right
    then u need to call the function of the class , and then you can put the value in a string .
    DbCon.function()
    String data = DbCon.db;
    where db is a string in DbCon
    Cheers
    Varun Rathore

  • Exposed web services after restart of AS disappear

    hi,
    i create web services from the CAF application service. Then i deploy it with the whole CAF application to the AS. I can see and test the web service through the web services page in the portal.
    But when i restart the AS the deployed web services dissapper! Has anyone experienced such a problem?
    I am using the trial version of Netweaver CE 7.1

    The problem does not appear any more. Don't know why.

  • How to deploy java class as a service in weblogic

    All,
      I have a java class which polls on a mailbox. I want deploy this class as a service in weblogic so that when the service is started it should continuously poll the mail box untill the service is stopped. Its working as a standalone component, i want to deploy this as a service.
    Thanks,
    Ram

    if you want to set Startup Classes, please refer the following URL,
    Startup Classes: Configuration

  • How can i call java class implemented as service from ExtJS after successfull activation of a page ?

    Hi ,
    I want to call a java class implemented as a service in felix . This should be called after succesfull activation of the page .
    I want to use ExtJs implemented in /libs/cq/ui/widgets/source/widgets/wcm/SiteAdmin.Actions.js file CQ.wcm.SiteAdmin.activatePage method.
    Please suggest something on this .

    Hi Sham ,
    i tried this ,
    var response = CQ.HTTP.post(
            CQ.shared.HTTP.externalize("/bin/replicate.json"),
            callback,
            { "_charset_":"utf-8", "path":paths, "cmd":"Activate" }
    if (CQ.HTTP.isOk(response)) {
         CQ.HTTP.post("/bin/sample.json",
                  null,
                  {"_charset_":"utf-8","path":paths});
    It is giving an alert messege on siteadmin screen as "Unspecified Error" .
    What can be the problem , am i missing something here?

  • Exposing web services

    Hi,
    I know that in order to expose a WS, I need to place the wsdl file in a specific directory which is defined in the j2ee visual admin.
    I can't find the documentation for the place in the visual admin where I define the wsdl's directory.
    Please advise,
    Elad.

    Elad,
    Correct me if i am wrong, but are you looking at exposing an Outbound message Interface in Xi as a webservice?
    If yes, no need for Visual admin etc. Just take a look at this document , and the section, sender Soap adapter. it contains the steps to be done to expose a interface as an Webservice and the generation of the WSDL.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    Regards,
    Bhavesh

  • How to run a java class as nt service in jdk1.1.8

    Hi,
    Could you help me , i try to start a service for a class who needs jdk1.1.8. I find javaservice.exe but it runs only for jdk1.2 or 1.3.
    HEEEEELLLLLPPPP

    Once old man was sitting in the park reading book "Learn C++ in 21 days". A passer by saw him and asked "You are such an old guy, why do you bother to learn C++?" "I have heard that now communication language at heaven is C++ only , so after my death when I will be in heaven, I don't want to face communication problem." old man replied. "But how come are U so sure that U will be in heaven? It could be a hell also." he asked. "Ya, doesn't matter .... I already know Java".

  • Securing Web Services based on simple Java Classes

    Hi @all!
    We`ve got the following problem.
    There`s a .NET client calling our Web services deployed on Bea Weblogic 8.1 (without
    SP).
    The Web Services are generated by the ANT task servicegen. They are based on simple
    Java classes containing the service methods as public members.
    Is there a possibility to secure these methods without using the console menu
    item "Define Security Policy" ?
    We can`t use this menu because it has got a javascript bug with methods returning
    an array.
    Thanks in advance for help.
    Michael

    Hi Michael,
    Could you use transport level security, SSL [1]?
    I'm not sure what limitation you are experiencing with the console? Is
    there a traceback? Have you contacted customer support on this issue?
    Thanks,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/security.html#1053203
    Michael Albrecht wrote:
    >
    Hi @all!
    We`ve got the following problem.
    There`s a .NET client calling our Web services deployed on Bea Weblogic 8.1 (without
    SP).
    The Web Services are generated by the ANT task servicegen. They are based on simple
    Java classes containing the service methods as public members.
    Is there a possibility to secure these methods without using the console menu
    item "Define Security Policy" ?
    We can`t use this menu because it has got a javascript bug with methods returning
    an array.
    Thanks in advance for help.
    Michael

  • Calling a soap web service from a java desktop application

    Hi,
    Does anyone know how to call a soap web service from a java desktop application? I've seen examples using Apache Axis, but it sounds like Axis needs to run on a web server and we are trying to avoid that. My initial thought was that, "of course we need a web server", but I'm wondering if there is a way to do this without a web server.
    Any help is greatly appreciated.
    thank you,
    Julie

    If you are the consumer you don't need any web server. The web server is only needed in the provider end.
    In java 6 there is a built in framework to call web services without the need of third parties (such as apache axis)
    take a look at:
    https://jax-ws.dev.java.net/guide/Developing_client_application_with_locally_packaged_WSDL.html
    http://java.sun.com/webservices/technologies/index.jsp
    For the provider end there is also a built in http server to expose web service via HTTP without the need to
    use any external web server.
    take a look at:
    http://java.sun.com/javase/6/docs/api/javax/xml/ws/Endpoint.html

  • Java app with web service and servlets

    Hi. I intend to make a java application which exposes some methods as a web service and as jsp/servlets. It's core functionality is not really web centric, but its more a java app with a web tier. I am not sure about how the architecture of such a system would look like using the java platform. I currently see three options:
    1. Run everything in a servlet container like tomcat. I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web services. However, it would be really easy just to put everything into tomcat and use ServletContext to maintain some global objects.
    2. Use a Java EE to seperate application/business logic and data access into session beans and entity beans. I hesitate to this because it seem a bit overkill because the system isn't very big or complex right now. It also means that I would have to learn to use EJB's instead of just using some POJOs.
    3. Run the web tier in a servlet container and the main app in a separate JVM, and then connect the tier by sending serialized objects over TCP sockets. I don't like writing network code but at least there is some separation of the tiers.
    What would you do? Maybe I have overlooked a much better solution to the problem?
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) instead of the something quick and dirty that is hard to defend.

    jschell wrote:
    Run everything in a servlet container like tomcatTomcat is a JEE container.Now I am confused. Maybe you mean Glassfish? Tomcat is definitely a web container(?).
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) That pretty much makes it impossible then.
    1. A "Right" solution is generally only proven by time.
    2. It requires a great deal of knowledge about the business domain.Yeah, you are right. Let be try to rephrase it. What solution (pattern) would be considered the most common or appropriate when you have a Java App and want to expose a few methods as a website and web service?
    I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web servicesHuh? Do you already have an exposed web service? If you already have a server which other clients communicate then where does this functionality that you don't want to be tomcat running now? Or where do you think that you want to run it? And if you are or do run it somewhere else then tomcat could access it the same way any other client accesses that server.Sorry, that sentence was written badly. I don't have anything right now. What I meant to write was that I will have a lot of application scope data, objects that are kept in memory as long as the server is running, shared by multiple servlet instances.

  • BC4J as Web Services

    Good day...
    Ok... I am wanting to explorer putting all of the BC4J on SOAP and expose them as a web service. Then build client applications to take advantage of the web services. How feasible is it to do so. I haven't yet begun the process of doing this, but am looking forward to any feedback. The portion that I'm concerned about is taking advantage of the connections that exist with a client application talking with a class(es) that contain the BC4J, yet in reality talking with a web service instead. I understand the concept of taking a class and making a service, I'm just curious about this type of use.
    Has anyone had any experience or have any suggestions for me to begin?
    Thanks in advance,
    Jim

    Jeff,
    Your scenario above can be easily handled with features BC4J has today. Let me give you a quick list of the "ingredients" you would use to expose web services that your java client could interact with.
    [list]
    [*]BC4J AppModules can have custom service methods
    [*]These methods can take any serializable datatype as arguments, and return any serialized datatype
    [*]In particular, you can write a service method that accepts an XML Element (which can be the root element of an entire XML document), and it can have a return type of XML Element.
    [*]You can visit the AppModule editor's "Client Methods" tab, and publish one or more of these custom service methods to clients
    [*]You can easily create a Web Service Class for your Application Module using the right-mouse menu. This creates a class that automates using our application module pool in a stateless way to interact with your custom appmodule methods from anywhere on web via SOAP.
    [*]You can publish this Web Service Class as a web service using the New Web Service wizard
    [*]You can deploy this Web Service to Oracle9iAS
    [list]
    Then, any SOAP-capable client (be it your own Java application, or any application written in any language) can point at the WSDL description for the web service you created above, and invoke it over the web through the appropriate client-side web service stub that their client-side development tool environment provides.
    In the case of JDeveloper, you can author a Swing client that collects the data you need, and passes it to the middle tier by invoking the web service above. To create the client stub to be a "consumer" of the web service above, just use the "New | Web Services | Web Service Stub" wizard in JDev.
    Mike's comment above means that our current JClient data binding mechanism does not seamlessly support binding to queried data in the same way that a highly-functional database client interface might today over our EJB-deployed-AppModule approach (using RMI-over-IIOP as the remoting protocol instead of SOAP), however the approach of having your client interact with web services can still get you quite far (and possibly, all the way depending on your needs).

  • ORA-06502 JNI.CALL_STRING_METHOD Oracle Forms & Web Services

    Hello:
    A customer of us has been integrating Oracle Forms 10g and Web Services.
    There is a java class named WsGenQueryStub. That java class has been generated using Oracle JDeveloper.
    It implements the consume of a Web Service That class has a method named GetDat which receives 2 input parameters which are of VARCHAR2 type, containing XML text.
    This method returns an XML text string which may have more than 4000 characters .
    That class is incluedd at forms application by using the "Import Java Class" feature.
    Forms builds a package named WsGenQueryStub which includes the following funtion
    -- Method: GetData (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    FUNCTION GetData(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'Interfases/WsGenQueryStub', 'GetData', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
    END;
    Forms Version is 9.0.4.0.19 , and PL/SQL version ( of forms ) is 9.0.1.5.1 , both support variables of type VARCHAR2 up to 32767 characters long
    However when the form is run the line
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'Interfases/WsGenQueryStub', 'GetData', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
    gets the ORA-06502 error when the returned text is longer than 4000 characters
    I thank your answers.
    Fernando.

    Ferdo,
    could you split up the result string in chunks that don't exceed the max. length? A method exposed on the Java class to could do this and be called from Forms as long as there is data coming.
    Frank

  • Web services writen in Servlet ?

    Who can tell me that servlet can write a web services? And If can, what is the software that can use to write the web services using servlet. Thanks for helping me.

    If you mean SOAP web services, yes you can, but most of the time you will expose a JavaBean or EJB using a SOAP toolkit installed into your servlet engine. The SOAP engine will be a servlet, but your web service will be a class.
    If you mean serving XML data using a servlet/jsp? yes you can, and in this case you just do it using simple Java code inside your service method(). Set the content type to "text/xml" and send a string containing the xml. This is like home-made web services, very lightweight.
    There is also another web services protocol called XML-RPC. In Java it may be implemented as a servlet (the web service engine), but again exposing some java class as the service
    Resin servlet engine (www.caucho.com) is an awsome product, free for development, $500 for production server, that includes the most simple and trouble free implementation of xml web services, using a propietary protocol.
    Regards,
    Martin Cordova
    http://www.martincordova.com
    Dinamica framework for J2EE
    - the easiest way to Java webapps...

Maybe you are looking for