Need PBL code to call webservice in ALBPM

I have make one HelloWorld webservice as below:-
package webBased;
import javax.jws.*;
@WebService
public class HelloWorld {
     @WebMethod
     public int hello(int a,int b) {
          int c=a+b;
          return c;
I have Created wsdl of it and imported in ALBPM by doing following steps:-
Catalog-> New Module -> WebService. All the xmls and wsdl are imported.
Now i want to call it in ALBPM flow and created Global activity. In main task of activity, I need to write PBL code to call that webservice.
Can anyone help me in this PBL code to call it.
or is there any other way to call this web service in ALBPM process flow.
Thanx,
Vinny

Thanx. I have drag and drop only two things
hello(OSBWeb.HelloWorldService.HelloWorldService, a : 10, b : 29, out @return : c)
helloWorldService = OSBWeb.HelloWorldService.HelloWorldService(endPoint : "http://localhost:7001/TestPOC/HelloWorld")
and successfully hit the service from Global Activity in ALBPM.

Similar Messages

  • How to call WebService in ALBPM WorkFlow

    Hi,
    I want to call one webservice in ALBPM. My requirements are to integrate it with other system like ALSB/OSB using Webservice & to expose OBPM as webservice , so that some other system can consume it. I have some queries regarding webservices.
    1.)     I have built one web service, I need to call it in BPM process. For that I called the WSDL in Catalog-> Module-> webservices. By that, wsdl & xmls are imported in catalog. But Im struck in how to call the webservice operation in BPM activities. How to make soap request in BPM flow, in order to hit this webservice.

    Hi
    Dont think so PDF is available for this
    Option could be
    1. [Secured WebServices - I|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID1178704850DB02001712700357265408End?blog=/pub/wlg/4999]
    2.[Invoking Rules web service from WebDynpro Application CE7.1|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID1178704850DB02001712700357265408End?blog=/pub/wlg/13520]
    3.[Webservice Calls From a User Defined Function.|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID1178704850DB02001712700357265408End?blog=/pub/wlg/5001]
    BR
    Satish Kumar

  • Need HTML code to call template from an existing web template

    Hi all,
    Can someone help me with a HTML code which can call another web template from a field of a table.
    I have a web template which includes table as web item.The template when executed displays the data of query view in the form of table.One of the field in the table is Europe.Now my requirement is when i click on that field Europe,it should open up another template which is present in the system.
    Please provide me with a HTML code which can do this.
    Regards,
    Suchitra

    Hi all,
    Can someone help me with a HTML code which can call another web template from a field of a table.
    I have a web template which includes table as web item.The template when executed displays the data of query view in the form of table.One of the field in the table is Europe.Now my requirement is when i click on that field Europe,it should open up another template which is present in the system.
    Please provide me with a HTML code which can do this.
    Regards,
    Suchitra

  • Need BDC code for Call Transaction of VL31N, which creates Inbound del.s,

    Hi Experts,
    Is any body does have the BDC (CALL TRANSACTION) code for VL31N transaction, where we can crete INBOUND deliveries from Purc Orders.
    Actually, currently am doing by using FM - GN_DELIVERY_CREATE, but, its not given me a chance to incorporate BATCH SPLIT functionality. So, decided to go with BDC
    1 - Is this VL31N is Okay for BDC, bcoz, some where I red that, since its a ENJOY tx, its NOT recommended?
    2 - Is there any other FM, BAPI to create INBOUND deliveries from POs, which can take care of BATCH SPLIT functionality?
    3 - BDC code for VL31N  tx.
    thanq
    Edited by: Srinivas on Jul 29, 2008 1:47 PM

    1 - Is this VL31N is Okay for BDC, bcoz, some where I red that, since its a ENJOY tx, its NOT recommended?
    yes you can do that .
    2 - Is there any other FM, BAPI to create INBOUND deliveries from POs, which can take care of BATCH SPLIT functionality?
    using BDC we can achieve the  Barch split functionality.
    3 - BDC code for VL31N tx.
    Record using SHDB it will give you.

  • Calling webservice in code using data control ADF Mobile

    Hi,
    I am calling webservice in code using data control. Below image is show my binding.
    https://www.dropbox.com/s/ufjnnd67mfaeucq/Snap%202013-05-13%20at%2011.49.17.png
    My code is :
    ValueExpression ve1 = AdfmfJavaUtilities.getValueExpression("#{bindings.WeatherDescriptionIterator}", AmxIteratorBinding.class); // Using IteratorBinding
    AmxIteratorBinding iter = (AmxIteratorBinding) ve1.getValue(AdfmfJavaUtilities.getAdfELContext());
    GenericType row = null;
    iter.getIterator().first();
    iter.release();
    for(int i = 0; i < iter.getIterator().getTotalRowCount(); i++)
    row = (GenericType)iter.getCurrentRow();
    Integer s = new Integer(i+100);
    row.setAttribute("deptId", s);
    This code is work fine in POJO data control. But When I used this code for calling webservice data control then i get following error.
    can not find property bindings.
    And I also use below code but same error occur.
    ValueExpression ve1l = AdfmfJavaUtilities.getValueExpression("#{bindings.WeatherDescription.collectionModel}", AmxCollectionModel.class); // Using CollectionModel
    AmxCollectionModel model = (AmxCollectionModel)ve1l.getValue(AdfmfJavaUtilities.getAdfELContext());
    Object[] myArr = model.getKeys();
    for (int x = 0; x < myArr.length; x++)
    Object myObj = myArr[x];
    Map provider = (Map)model.getProviders().get(myObj);
    String deptName = provider.get("deptName").toString();
    }

    !!!! IMPORTANT !!!!
    The use of +*#{data.view_FlexFieldDisplayPageDef.publicflexfieldflow1.regionModel}"*+ in your code is an *absolute no-go and serious coding issue* as there is no guarantee that this PageDef file exists in the application you use the declarative component in. Even if you don't plan to use the declarative component anywhere else, you should pass the model reference as an input attribute to the declarative component so it can be configured by each use of the component
    Frank

  • Call webservice URL through view, on click of a button

    Hello Gurus,
    I have a local development webdynpro project . My requirement is that on click of a submit button, webservice is called and it returns a string which i need to display on the view. I searched a lot but couldnt find the exact step by step process.
    While creating the web service model, which one dhould i choose n then after model creation
    what code should i write to call webservice.
    Regards
    nishu

    Hello All,
    Thanks for all your replies. I am able to create model and bind it to my component controller.
    But when i write the code to call webservice , i am unable to instanciate the model....
    I wrote the following code :
    testmodel = new Soap(); - (1)
    Request_ServiceSoap_insertTicket insert = new Request_ServiceSoap_insertTicket(testmodel); - (2)
    insert.setUserId("CCM_RUS");   
    wdContext.nodeRequest_ServiceSoap_insertTicket().bind(insert);
    private Soap testmodel;
    In Above code , line (1) , 'Soap' is the name of my WebService model, which i made by importaing the wsdl file from my local system. And line (2), i amd getting error :
    the constructor Request_ServiceSoap_insertTicket(testmodel) is undefined.
    If i remove the 'testmodel' and just write Request_ServiceSoap_insertTicket() , the webservice is not called, since model instantiation is necessary for webservice Models. I am stuck
    Please help
    Thanks
    Nishu
    Edited by: nishu_rj on Aug 23, 2011 9:01 AM

  • How to call webservice?

    Hello,
    i am trying to call webservice.i tryed  following code for calling webservices via actionscript.it is givind the response.but it is not giving correct response.
    is this correct way to call webservice?is there other way to call webservice?can anybody tell me,how to call webservice?
    <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”vertical” width=”420″ height=”380″ xmlns:net=”flash.net.*”>
    <mx:Script><![CDATA[
    import mx.rpc.soap.LoadEvent;
    import mx.rpc.AbstractOperation;
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.soap.Operation;
    import mx.rpc.soap.WebService;
    private var serviceURL:String = "http://localhost:7080/icon-ws/services";
    private var wsdlURL:String = "http://localhost:7080/icon-ws/bulkUpload.wsdl";
    private function callWS():void {
    var service:WebService = new WebService(serviceURL, serviceURL);
    service.wsdl = wsdlURL;
    service.loadWSDL();
    var oper:Operation = service.getOperation("BulkUpload") as Operation;
    oper.addEventListener("result", resultHandler);
    oper.addEventListener("fault", faultHandler);
    oper.send();
    public function resultHandler(event:ResultEvent):void {
    Alert.show("Result returned"+ event.result.toString());
    public function faultHandler(event:FaultEvent):void {
    Alert.show("fault: "+ event.toString());
    ]]></mx:Script>
    <mx:Button id=”selectBut” label=”CALL webservice” click=”callWS()”/>
    </mx:Application>

    sorry for my english. I expect you understand me...
    I do that extended sp 
    Code Block
    use atdb_main_test
    Declare @Object as Int;
    Declare @ResponseText as Varchar(8000);
    DECLARE @login VARCHAR(50);
    DECLARE @user_passwd VARCHAR(50)
    Exec master..sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
    Exec master..sp_OAMethod @Object, 'open', NULL, 'get', 'http://172.xx.xx.xx:wwww/account.asmx?op=CreateEquipementMacAddress', 'false'
    EXEC master..sp_OASetProperty @Object, 'user_login', @login
    EXEC master..sp_OASetProperty @Object, 'user_passwd', @user_passwd
    EXEC master..sp_OASetProperty @Object, 'p_nb_poste', 1
    EXEC master..sp_OASetProperty @Object, 'p_id_site', 91400
    EXEC master..sp_OASetProperty @Object, 'p_id_type_poste', 83
    EXEC master..sp_OASetProperty @Object, 'p_adresse_mac', null
    EXEC master..sp_OASetProperty @Object, 'p_num_serie', null
    EXEC master..sp_OASetProperty @Object, 'login', null
    EXEC master..sp_OASetProperty @Object, 'passwd', null
    EXEC master..sp_OASetProperty @Object, 'default_gateway', null
    EXEC master..sp_OASetProperty @Object, 'ip', null
    EXEC master..sp_OASetProperty @Object, 'bCreateIPPhone', 'false'
    EXEC master..sp_OASetProperty @Object, 'vlanId', 0
    Exec master..sp_OAMethod @Object, 'send'
    Exec master..sp_OAMethod @Object, 'responseText', @ResponseText OUTPUT
    Select @ResponseText as ResponseText
    Exec master..sp_OADestroy @Object
    I use a SQL server 2000 and don't do anything else.
    But it doesn't work
    I don't know what to do ...
    the message is (1 row affected) but no tupple is written in my db...
    can you help me please ?

  • Need to call webservice WSDL directly from Java code

    Hi All,
    I hope u all are doing great.
    I am new to web services and i have a requirement where i need to call the webservice directly from the java code, we dont need any middle layer(via proxy n all).
    Can you all please help me on this, we are using Jdeveloper 11g and we do have WSDLs
    we shld be able to use the wsdl in code and pass the request and get the request
    Any help will be appreciated
    Thanks

    @Puthanampatti     
    Thanks, but i already went through this link and seems this link also says we need to access webserivice through stub,dii etc.
    I want straught java code to access webservice without any tier in between
    Thanks

  • Need a  code / How  to  call outstanding notification for a loggined user !!

    hi all ,
    Need a  code / How  to  call outstanding notification for a loggined user !!
    i need to create a service  such then when the user logins in he should see the outstanding service..

    Hello Prashanth,
    1) Goto QMEL table read OBJNR of the notification.
    2) Pass the notification number and the language to the function module "STATUS_TEXT_EDIT".
        in the return parameter read the parameter LINE, based on the first four characters you can find out       the status of the notification.
    OSNO - Outstanding notification
    NOPR - Notification in process
    NOCO - Notification completed
    Regards,
    TP

  • Call Webservice URL with multiple methods in PI 7.0

    Dear Gurus,
    I have the following requirement:
    I need to make multiple calls to a same webservice (URL) which have multiple methods on its WSDL. I know it is possible in PI 7.1. But is it possible in PI 7.0?
    I have already designed and configured the scenarios and generated ABAP Proxy. When I call the endpoint without specifyng the method I got the following message:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Endpoint {http://mywebserviceurl.com} does not contain operation meta data for: {http://mynamespace}MyMessageInterface</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please somebody could help me to solve this issue?
    Thank you in advance.
    Fabio Purcino

    >>. But is it possible in PI 7.0?
    Just few cents..
    Test using SOAPUI or  XMLSPY and use that same WSDL URL in the target URL of Communication channel. Just to make sure you use the right endpoint.
    or
    You can specify the method name as  soap action dynamically using udf in mapping and see how it behaves.

  • How to call webservice using jdev9i

    Hi gurus and experts,
    i need to consume a webservice using oaf. with great effort finally i created stub using axis s/w.
    now i dont know how to use the stub in jdev.where to write the code and what to write.iam strucked :-( .
    since there were no sample tutorial about how to call webservice from jdev9i, iam struggling to make.iam jus a starter.
    and while googling i came to know that stubs can be created using jdev9i .but when i see new-->webservices--web service stub it is greyed out.
    i have 2 questions now:
    1)if stub created using axis can it be used in jdev9i? if yes ,please tell me how? any tutorial links also helps me.
    2)if the stubs should be created only by jdev9i so that webservices can be called using jdev,then please guide me how to make it.
    i need some helping hands from u guys.
    Thanks a lot
    Edited by: 881533 on Oct 25, 2011 2:34 AM
    Edited by: 881533 on Oct 25, 2011 2:37 AM

    Hello sir,
    i got following reply:
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Error_request</returnResult>
    </returnRecordResponse>
    but correct response is
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Success</returnResult>
    </returnRecordResponse>
    can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice?

  • Need help about setting timeout webservice client.

    Hi,
    I trying to set timeout before make call to the webservices, my target webservice is deployed on WebLgic server 8.14 (service pack 4). Nothing just Thread.sleep for 1 min. then return some string. Here is my client code. I use the proxy generated by the workshop testing browser, "Java proxy" button.
    public static void main(String a[]) {
    try {
    EjbTimeout_Impl proxy = new EjbTimeout_Impl();
    EjbTimeoutSoap_Stub myStub = (EjbTimeoutSoap_Stub)proxy.getEjbTimeoutSoap();
    BindingInfo bInfo = (BindingInfo)myStub._getProperty("weblogic.webservice.bindinginfo");
    System.out.println(bInfo.getTimeout()); // print out '-1' no timeout I guess
    bInfo.setTimeout(5); //secs
    System.out.println(bInfo.getTimeout()); // print out '5', value change accepted
    myStub._setProperty("weblogic.webservice.rpc.timeoutsecs", "5");
    System.out.println(myStub._getProperty
    ("weblogic.webservice.rpc.timeoutsecs")); // also print '5'
    String ss = myStub.sayHello("WEBLOGIC");
    System.out.println(ss);
    } catch (Exception e) {
    System.out.println(e.toString());
    As you see the timeout value is changed but when I call webservice from this client everything is fine. The output string ruturn from webservice is printed out after Thread.sleep(60000).
    Are there any missing things about this client code, my webservice code is quite simple, or if there is some way else to achieve this ???
    Many thanks.

    Before you use the JMS, you need to deploy some drivers related to specific MQseries, Kindly ensure that proper driver are deployed....
    If you use MQSeries 53x.xxx, you must enter the following JAR files in aii_af_jmsproviderlib.sda.
    com.ibm.mq.jar, com.ibm.mqbind.jar, com.ibm.mqjms.jar, connector.jar (use the JAR file from the J2EE client directory)
    check this link it will give you more inofmration
    http://help.sap.com/saphelp_nw04/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/content.htm
    check this to get the condifuration the JMS
    How to use conversion modules in JMS - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Ref How To Use the Content Conversion Module in JMS Adapter - https://websmp106.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000582377&

  • Write PBL code in one place

    There are about 10 activities in a process. Most of them have some PBL code snippet such as calculating deadline (including calendar rules) and throwing exceptions.
    I also need to create about 50 processes and about more than 500 activities. It is tedious to change all methods in different activities.
    Can I just write these similar code snippets in one place? For example, I can put all these similar code snippet in a method and invoke it in different activities (In one process).
    If it is possible, can some of the methods is inherited by other PBL methods?

    What Eduardo and Marcos are saying is this to create a BPM Object, and start to create the methods you need, and then, in the methods' properties, set them as "static".
    And, when you need to invoke them, in your PBL code you place those calls as YourModule.YourHelperBpmObject.yourStaticMethod(args)
    Sergio.

  • Calling webservice from Peoplecode to upload pictures

    Hi,
    I need to create and call a webservice from Peoplecode to upload pictures from a SQL server database. Has anybody done this before?
    Does anybody have a sample peoplecode which calls a webservice?
    We are on PS 9.1 using Oracle 11g database.
    Any help is appreciated.
    Thanks,
    Les

    sanju.sinha wrote:
    What makes you think that calling Web service from XSLT is possible?It is possible.
    Can you give evidence? Please find the below link.
    http://bytes.com/topic/xml/answers/854477-http-post-xslt
    Not really. That, obviously, used an extension. Thus the xslt called out to some other process. It is similar to java using JNI.
    So the answer based on that.
    1. Write java code (not xstl) to do what you want
    2. Figure out how to add that java code into your xslt processor as an extension.
    3. Use it that extension in your xslt.
    Note that the fact that above can be done doesn't mean it is a good idea.
    If it was me and I got to the point where it looked like that was required (in xslt) then I would question the design and even the architecture/requirements.

  • Error while calling WebService inside ISchedulerTask.

    Hi,
    Env: NW 2004s
      I have a requirement of calling webservice frequently. I developed a portal project with scheduler, where the application gives a runtime error while calling/reading the property file (which is generated during the webservice proxy generation, without it webservice call is impossible).
    I have varified the ear file which contains all the required class files and config files including property file.
    fyi:
    portalapp.xml file looks like this.
    +
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
      </application-config>
      <components/>
      <services>
        <service name="RFServiceWrapper">
          <service-config>
            <property name="className" value="com.sap.netweaver.rf.wrapper.RFServiceWrapper"/>
            <property name="startup" value="true"/>
          </service-config>
        </service>
      </services>
    </application>
    +
    Any input will be highly appreciated.
    Thanks,
      Vinod

    Following is the error message:
    msg1:
    at <package>.AFFERAAFWSServiceImpl.<init>(AFFERAAFWSServiceImpl.java:10)
    msg2:
    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ServiceBase.loadProtocolsFromPropertyFile(ServiceBase.java:238)
    Reporting from Logs and Traces.
    Error Located @ following code inside AFFERAAFWSServiceImpl.java, which is a proxy class generated using apache axis
    input = this.getClass().getClassLoader().getResourceAsStream("<package>/protocols.txt");
    loadProtocolsFromPropertyFile(input);
    protocols.txt is another config file generated along with AFFERAAFWSServiceImpl.java, which is been used @ run time.
    FYI: All these files are present on ear file.

Maybe you are looking for

  • Terms and Conditions in PDF PO with RTF Template

    Hi Gurus, We have a custom RTF template for the PDF PO. I want to add the Terms and Conditions into this RTF template that should start after the last page of each PO I looked into the Oracle standard template also but it is in XSL-FO format. I tried

  • Error 1047 w/ Labview 8.20: Labview failed to send variable to the script server

    Hello, I have found similar questions, but with previous versions of Labview and Matlab and no resolution. Could someone please enlighten me? I'm using Matlab 7.4.0 (2007a) and Labview 8.2 and this is the error I get when I try to input a 1D array in

  • Bank account array list

    I'm very lost and need a push in the right direction. I am trying to get the balance of a bank account which is an array list of accounts and balances. The class I am working on is the Bank class. There is also a BankAccount class and a BankTester cl

  • Adding Two Spheres to Same Transform Group

    Should be a simple question. How do I add two spheres to the same TransformGroup? With this code, only one sphere is displayed: TransformGroup tg = new TransformGroup(); Sphere sphere001 = new Sphere(0.1f); Vector3f vector = new Vector3f(0.0f, 0.0f,

  • ColdFusion Structure

    I'm looping an array of records (from a fixed length feed) and creating a structure for each required field. Then for every loop, I'm passing this structure to a function to check if certain required field in the structure's element is left empty. Th