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

Similar Messages

  • NWDS setup for exposing web dynpro as callable object

    Hi
    I need help in understanding how to set-up my NWDS 7.0 environment, so as to implement and expose a web dynpro as callable object in Guided Procedure. I tried following some of the weblogs in the SDN but I get stuck at the step where depencencies to DC's caf/eu/gp/api/wd & caf/eu/gp/api etc. is to be done.
    It appears that NWDS 7.0 does not come with GP DC's.
    My NWDS version is 7.0.09 & in have NW 2004s.
    Thanks
    Vijendra

    Hi
    I need help in understanding how to set-up my NWDS 7.0 environment, so as to implement and expose a web dynpro as callable object in Guided Procedure. I tried following some of the weblogs in the SDN but I get stuck at the step where depencencies to DC's caf/eu/gp/api/wd & caf/eu/gp/api etc. is to be done.
    It appears that NWDS 7.0 does not come with GP DC's.
    My NWDS version is 7.0.09 & in have NW 2004s.
    Thanks
    Vijendra

  • Canu0092t use web service as Callable Object

    Hi,
    I’ve tried to use a web service as an callable object. After I provided the WSDL URL I’ve got the following error message : “Interface is empty; select Web service interface“. Can anybody tell me what that could be?
    Thanks in advance
    Robert Herbert

    Hi David,
    Thank you very much, you solved my problem.
    Curious usability issue!!
    Best regards,
    Robert

  • Expose Web Dynpro as Callable Object

    Hi,
    I created my own webdynpro application which I want to expose it as callable object and in the process I cannot complete the following step:
    Add DC caf/eu/gp/api/wd and its public part IGPWebDynproCO.  The reason is that I cannot see any DC called caf/eu/gp/api. All I can see are caf/UI.., caf/core.., caf/runtime... etc.
    Thanks for your time.
    Best Regards,
    Shiva

    Hi,
    please pay attention to the workaround that is described here:
    <a href="/people/andre.truong/blog/2006/06/26/working-with-the-apis-of-caf-guided-procedures-nwdi-or-local-development">CAF WD API workaround</a>
    Regards,
      Jan

  • Web Dynpro as Callable object in GP using PDF Forms

    Hi All,
    I somehow want to integrate a user filling out a pdf form within a Guided Procedure. So far I have created a local web dynpro DC and I want to make it a Web Dynpro Callable Object (GP Interface). The problem is, I want the user to be able to see the PDF form when filling out the form. For example, if they had a role in the portal where they can invoke the Web Dynpro application with the pdf form, then when they click submit on the pdf they invoke the guided procedure...is this possible? This is so, I can use the web dynpro to do some data validation and call some bapis to get info, then submit this all to the GP. Is this achievable? I know how to do most things, I just want to know things like when is the "execute" and "getDescription" methods called? I want my execute( com.sap.caf.eu.gp.co.api.IGPExecutionContext executionContext ) method to call a bapi also. Is that possible? How do I automate a GP process when I click submit on the pdf form?
    Thanks in advanced
    TM

    Hi,
    You can integrate a PDF control in a Web Dynpro view. Refer the following links for that:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm">Example of the Use of an Interactive PDF Form (SAP Library - Web Dynpro for Java)</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/60/6fc10c6748479392101e09c9e8d33a/frameset.htm">Interactive Forms in Web Dynpro for Java</a>
    Also you can create Web Dynpro Java callable object in GP by implementing the IGPWebDynproCO interface. Refer the following links for that:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59">Implementing a Web Dynpro Callable Object which Implements the GP Interface</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814">Implementing a Web Dynpro Callable Object</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/fd/afb4429027da11e10000000a155106/frameset.htm">Implementing a Web Dynpro Component</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/de/8976417f2d5558e10000000a1550b0/frameset.htm">Implementing and Exposing a Web Dynpro as a Callable Object</a>
    You can start a GP process using the public API:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/frameset.htm">Starting and Terminating Processes Using the GP API (SAP Library - Creating Composite Applications)</a><a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1">Creating Interactive Forms in Web Dynpro for Java</a>
    Also you can start a GP process using Web Service:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm">Starting a Process Using Web Services (SAP Library - Creating Composite Applications)</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/93/27dc108cfc407fbf6c726151840001/frameset.htm">Starting and Terminating Processes Within a Composite</a>
    Refering the above links you'll get a fairly good idea how to integrate Adobe forms in WDP and how to start GP process programitically. My suggestion for your requirement would be if always you need to start the process after the user submits the Adobe form, then consider having the Adobe form as the first step for the process. In that case you don't need to start the process programitically. Whenever the user starts filling up the Adobe form the GP process will start. You can refer <a href="/people/dipankar.saha3/blog/2007/03/02/how-to-present-your-gp-processes-to-the-end-user">this blog</a> on how to start a GP process as an iview link in portal.
    Otherwise if based on certain conditions you need to start the process then you can either use the Java API or the web service to start the process from Web Dynpro. You should have the Adobe form embedded in Web Dynpro and on submit event you can check the conditions and start the process if required.
    Thanks,
    Dipankar

  • Process Web Services and BPM Objects

    Hi,
    I try to expose a web service for a specific process (not PAPI-WS) for process creation. Works well but only if I use only simple types like String, etc. as input arguments. But when I try to use an BPM object, I get an error like 'Undefined variable 'arg1''.
    So, is it not possible to use such a process web service using BPM objects as arguments?
    Regards
    Matthias

    Yes it's true but Netbeans uses one of the existing SOAP implementations to do it. I'm almost sure that it uses one of the most popular implementations JAX-WS RI or Axis by default.
    Regards,
    S&#322;awomir Wojtasiak

  • Binding xml from web service to java objects

    I would appreciate if someone can tell me where can i get information regarding
    binding of xml from web service to java objects in weblogic 6.1 .
    Thanks,
    ag

    Hi Ag,
    To my knowledge, the only information on this topic is whatever you find in the
    documentation. What exactly do you want to know?
    Can you post a set of specific questions?
    Regards,
    Mike Wooten
    "ag" <[email protected]> wrote:
    >
    I would appreciate if someone can tell me where can i get information
    regarding
    binding of xml from web service to java objects in weblogic 6.1 .
    Thanks,
    ag

  • 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.

  • Web Dynpro application callable object error: Page Builder Not available

    Hi, SDN Fellow.
    I created a callable object of Web Dynpro application. The callable object is atatched to an Action, and Action --> Block, and Block --> Process.
    I initiate the process in GP Runtime, when it comes to the Action screen the Web Dynpro application atatched to, I got the following error:
    The page builder required to display this application UI inside the portal environment is not available.
    As aa comparison, another callable object that atatched to a Web Dynpro component (that implement GP interface) is working fine.
    Please advise.
    Thanks in advance,
    KC

    Hi KC,
    When you start your process from GP Runtime, does the actual action/callable object open in a new window?
    Have a look at this SAP Note:
    [Error when executing a GP task - Page builder|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_gp/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393831353137%7d]
    Although the error message you are getting is different, but if your callable object opens in a new window, then the problem (in most probability) is the same as mentioned in the SAP Note.
    Also, try testing the Web Dynpro callable object in standalone mode. For more information on this, see:
    [Testing Callable Objects|http://help.sap.com/saphelp_nw04s/helpdata/en/4c/588041a17e060de10000000a1550b0/frameset.htm]
    Bye
    Ankur

  • Help need in Java Web Service method receiving object values as null

    Below is my web method and Package is the object received from dotnet client as a consumer. I have also defined the Package object structure. Now when I receive the data from dotnet I get only identifier value, but I get ownerid and price as null, even both values are sent by Dotnet client. I want to know whether only primitive datatype in java web service works or I need to do some configuration changes in order to have build in Wrapper class datatypes? It would be a great help if somebody explains.
    @WebMethod
    @WebResult(name = "PackageId")
    public long createNewPackage(@WebParam(name = "Package") com.db.radar.wl.data.Package data1,@WebParam(name = "PackageDetail") PackageDetail data2,@WebParam(name = "PackageTrade") PackageTrade data3);
    public class Package {
    Long ownerid;
    Double price;
    long identifier;
    }

    Hi ,
    I am getting the same error. I am running my application on jboss-4.0.4.GA. Please let me know the version of jboss that you to got it working.
    Thanks
    Viv

  • Exception in executing External Service type Callable Object

    Hi
    I was trying to test a callable object of type external service. I have used the bapi BAPI_FLIGHT_GETDETAIL. But while executing I was getting exception like
    java.lang.IndexOutOfBoundsException: Index: 5, Size: 3
    at java.util.ArrayList.add(ArrayList.java:371)at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.addElementSilently(Node.java:1991)at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.addElement(Node.java:2003)at com.sap.tc.webdynpro.progmodel.context.Node.doAddElement(Node.java:676)at com.sap.tc.webdynpro.progmodel.context.Node.addElement(Node.java:644)
    Anybody knows the reason?
    Cheers
    Sudip

    Hii
            I forgot to mention that if the RFC has a structure as output parameter it doesnt get displayed but if the parameter in RFC is string value it works fine.Please Help Urgently
    Regards
    Ishita

  • External Service as Callable Object

    Hii Frens,
                  I have created an external service as a callable object.It executes a BAPI but when i test the service it doesnt give the output. A username is the input for the BAPI and output is a structure.But am not getting the output in the structure.I want to use this service in prefilling a Callable Object in Guided Procedure.Please tell me where am i goin wrong.
    Regards
    Ishita

    Hii
            I forgot to mention that if the RFC has a structure as output parameter it doesnt get displayed but if the parameter in RFC is string value it works fine.Please Help Urgently
    Regards
    Ishita

  • Web service problem serializing objects?

    JDeveloper Studio Edition Version 10.1.3.2.0.4066
    I deployed a web service developed with JDeveloper to OAS 10.1.3.1.0
    I generated a web service client proxy in JDeveloper to call the web service.
    I get an exception (below). I tried regenerating the proxy code. Same exception when I try running it. I tried regenerating the web service and redeploying. Same exception.
    It seems like the WSDL is correct, but the XML produced by the web service drops some letters from the schema types?
    Has anyone else seen this? Here is the exception I'm getting:
    unexpected element type: expected={http://edu.apollogrp.selfservice/ISelfService.xsd}edu_apollogrp_selfservice_SelfServiceResults, actual={http://edu.apollogrp.selfservice/ISelfService.xsd}edu_apollog_SelfServiceResults
    at oracle.j2ee.ws.common.encoding.SerializerBase.verifyType(SerializerBase.java:168)
    at oracle.j2ee.ws.common.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:170)
    at oracle.j2ee.ws.common.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:147)
    at customerservice.proxy.runtime.SelfServiceBinding_Main_RespS__SOAPSerializer.doDeserialize(SelfServiceBinding_Main_RespS__SOAPSerializer.java:44)
    at oracle.j2ee.ws.common.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:180)
    at customerservice.proxy.runtime.SelfServiceBinding_Stub._deserialize_Main(SelfServiceBinding_Stub.java:193)
    at customerservice.proxy.runtime.SelfServiceBinding_Stub._readFirstBodyElement(SelfServiceBinding_Stub.java:176)
    at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:333)
    at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
    at customerservice.proxy.runtime.SelfServiceBinding_Stub.main(SelfServiceBinding_Stub.java:81)
    at customerservice.proxy.SelfServicePortClient.mainExt(SelfServicePortClient.java:44)
    at customerservice.SelfService.getSSData(SelfService.java:116)
    at customerservice.SelfService.Test(SelfService.java:93)
    at customerservice.SelfService.main(SelfService.java:109)

    Yeah. You need a deserialize class to deserialize (cast) the Complex Data Type (object). But the orignal class is not necessary. Also, it is impossible to use the orignal class if you write a client on J2EE platform to consume a service on .NET platform. Your can use the WSDL file to generate a tub using some tool. The stub can handle the remote calls and de/serialization (cast).
    Hope this can help you. Cheers
    Shaun

  • XDB Native Web Services - Collection of object types

    Hello,
    my DB 11g (11.1.0.6.0) is enabled to use XDB Native Web Services, everything works as it should. I already use it successfully to publish a web service with object types as OUT parameter. They are created as complex types in the XML response as described here: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm#CHDGBFID]
    But what I need is a collection of these object types, e.g.
    I have a type FLIGHT with some information elements (departure, arrival, date, time, price) and I have a web service function GET_AVAILABILITY with parameters departure, arrival and date. What I want is to return a collection of FLIGHT objects, it could be none, one or many flights for a request.
    For the moment I create another object type which contains a fix number of FLIGHT objects to work around the collection issue:
    create flight_tab_typ as object (
    fl1 flight_typ
    ,fl2 flight_typ
    ,fl3 flight_typ
    I tried to build a PL/SQL table of object type and also a VARRAY of object type but for both the WSDL of the web service cannot be build up correctly in the web browser. For me it seems that this is not supported by the Native Web Services.
    I know I can build up my own XMLTYPE with XML structure as OUT parameter but to use object types is much easier and it builds up the XML structure automatically.
    Does anybody know how to use collections (VARRAY or PL/SQL Tables) with the Native XML DB Web Services?
    Thanks,
    Andreas

    Hi flea,
    I use complex types with XDB native webservices. Here is an example. Using people/groups objects. I haven't compiled this so there may be some typos etc, but it should give you the idea.
    Beware!I have had problems with the created WSDL file in that it doesn't always include the namespace from all types. In many client packages ( JDevloper , SOAPUI etc) this causes a wsdl import failure.
    You can add the missing namespace by hand a load the WSDL file locally and then it should work. I haven't raised an SR with Oracle about this yet.
    Assume you create the following under SCoTT schema on machine host.com on port 8080.
    The webservice[WSDL] will be available from
    http://host.com:8080/orawsv/SCOTT/WEBSERVCIES/GET_GROUP[?wsdl]
    For other peoples sanity it took me a little while to realise the WSDL url is case specific. E.g. the schema, package and functions have to be UPPER case.
    create table people_groups_tab (group_name varchar2(40 char),first_name varchar2(40 char),last_name varchar2(40 char))
    insert into people_groups_tab values ('FINANCE','Joe','Bloggs')
    insert into people_groups_tab values ('FINANCE','Bob','Jones')
    insert into people_groups_tab values ('IT','Alan','Andrews')
    create or replace type person_obj
    as object
         first_name people_groups_tab.first_name%type
         ,last_name people_groups_tab.last_name%type
    create or replace type people_obj
    as table of person_obj
    create or replace type people_groups_obj
    as object
    group_name varchar2(40 char)
    people people_obj
    create or replace package webservices
    as
              function get_group
         p_group_name varchar2
              ) return people_groups_obj;
    end;
    create or replace package body webservices
    as
              function get_group
         p_group_name varchar2
              ) return people_groups_obj
    as
    l_group people_groups_obj;
              l_people people_obj;
    begin
              select person_obj
                        first_name
                        ,last_name
              bulk collect into l_people
              from people_groups_tab
              where group_name p_group_name;
              l_group := people_groups_obj(p_group_name,l_people);
              return l_group;
    end;
    end;
    /

  • Web Services and XML Object

    Hi All ,
    The types supported by JAX-RPC seem not to include any XML object (i.e. org.JDom.Document). But OC4J supports this. Any one can give me direction if any other tools can permit me in creating web services which will permit to exchange XML objects (Documents or Elements ) .
    Regards,
    Rao

    Apache Axis has support for RPC, Document, Wrapped and Message service styles.
    see http://ws.apache.org/axis/java/user-guide.html#PublishingServices and scroll down to the 'Message services' subheading.
    JAX-RPC supports the RPC service style.
    Pete

Maybe you are looking for

  • ITunes randomly linking to non-song files... a real curve-ball of an issue

    I have been having problems with songs in my iTunes library suddenly not playing. When I select "Reveal in Finder" the file that it revealed is often a driver in my library - worse still, the song is then no-where to be found using spot-light but it

  • Jsf headache, please help, thank you.

    Dear everyone, I have made this customized jsf component. In the following, I have shown the code of the UIComponentTag codes and in the bold part, I would like to set the component id to be dojoid, which is unique id. I would like to apply component

  • Copy and paste motion only ?

    hiya, hope you can help I have animated a slideshow effect where one frame moves out teh way and another moves into frame i am happy with it and now want to repeat it with all teh other images in the slideshow the problem is, when i copy the keyframe

  • Javascript with only 'OK' option

    Hello, How do I modify the following Javascript so that there is no 'Cancel' option, only an 'OK' option? Thanks..... <script language="JavaScript" type="text/javascript"> <!-- htmldb_delete_message='"DELETE_CONFIRM_MSG"'; //--> </script> <script lan

  • Unusual problem w/ Enya's watermark CD--

    any idea why my imac or itunes will not recognize my enya watermark CD--it is a manufacturer store bought copy, plays perfectly on any CD player i put it on. However when I put it into my mac to play or to get itunes to rip it--it does not even reali