Call Enterprise service in BPM Process

Hi,
I define a BPM process for PO creation
In the first Lane : Purchase requestor
In the second Lane: Approve Process
In the third Lane: Create PO(Enterprise Service)
Here in the first lane iam giving the below attributes
Requestor Name
Requestor Country
Product ID
Product Descrption
This will be send to second lane i.e Approver Process
Once he approved it should create a PO in Hu2 if he reject it should goto first stage
I consumed Enterprise Service from HU2 and i published in service registry
Now i created automated activity and imported PO create service in BPM flow seccussfully.
Now my problem is to write code in webdynpro.
How to write code for below process?
In the second lane i.e Approver Process i should write a code that if it approve goto third process i.e call webservice which which creates a PO .If it rejects goto first process??How to write this code?Plz can u help Iam new to coding moreover to webdynpro...
Regards
Shwetha.
Edited by: Shwetha-Capita on May 1, 2009 1:28 PM

Hi Shwetha,
The following part of the documentation explains how to prepare your Web Dynpro DC so that it can be used in SAP NetWeaver BPM:
https://help.sap.com/saphelp_nwce711/helpdata/en/48/cae1791e774da5e10000000a421937/frameset.htm
The important thing to know is that SAP NetWeaver BPM is waiting for a complete event to be triggered in your application. Once this is received the process flow continues.
So in your case you would simply create two Web Dynpro user interfaces. The first one for entering the data and the second one for reviewing / approving / rejecting the data.
In the first case you would have some sort of "submit" button, which triggers the before mentioned 'complete' event. SAP NetWeaver BPM will then take the data that is visible in the Web Dynpro context of the interface controller and continue the processing.
The second case basically works the same with one little difference: Here you would have two buttons -  one for the approval and one for rejection. Both will trigger the 'complete' event, but should set a field in the Web Dynpro context (e.g. "isApproved") differently. While the "approve" button should set it to "true" the "reject" button would set it to "false".
So once this step is also completed you could make use of gateways and conditions (https://help.sap.com/saphelp_nwce711/helpdata/en/47/635cb242bf6831e10000000a421937/frameset.htm) in your proces model to determine if the data should be passed to the service for PO creaton or if it should handle a different situation in case of a rejection.
If you're new to SAP NetWeaver BPM it might help having a look at the documentation first and also browse through some sample models as they are provided here:
https://www.sdn.sap.com/irj/sdn/nw-bpm?rid=/webcontent/uuid/006a16ad-a3ad-2b10-4e9a-af2ee5820848 [original link is broken]
Hope that helps,
Martin

Similar Messages

  • How to access/invoke Web Service from BPM Process

    The following steps required to attach and invoke web service method from process:
    1) Add a module in the catalog for ex WebServiceMO
    2) Add WebService Catalog component demoWebService in WebServiceMO
    3) Put ur WSDL address in WSDL address field like "http://localhost:8080/test/test?wsdl"
    4) Click next to introspect the web service it will import required files and setting from the url to your project
    5) Now for invoking webservice just call the method for ex.
    @return as String[]
    getTestStringList(TestInterfaceService, out @return : @return)
    logMessage "web service calll result >>"+length(@return)+">>>"+@return[0]
    Here @ return is the return from webservice call.
    this way u can access web service from BPM process.
    Edited by: Anurag Yadav on Jul 17, 2009 2:19 PM

    I have a web service which does not return any value but when I introspect the web service, I have an out parameter to it.. Not sure why?
    For e.g.
    TestServiceListener.addTestNotes(TestNotes : testNotes, out TestNoteResponse : testNoteResponse);
    So here I see an out parameter, but my web-service has no out parameter...
    Any idea why is this happening?

  • Changing user who calls Enterprise Service dynamically

    Hello all,
    I'd like to call Enterprise Service as Portal logon user.
    As you know Enterprise Service is implemented on ECC, it always requires ECC's user/password when I access it.
    Off the top of my head I may use logon ticket, but it does not work well for Enterprise Service.
    I've already done the system configuration to use logon ticket - setting profile parameters of ECC, importing client certification and so on.
    What I tried:
    1. Create Destination at "Web Services Configuration: WS Destination"with following parameters:
      Destination Type: WSDL
      URL: http://<hostname>:<port>/sap/bc/srt/xip/sap/ECC_SALESORDERCRTRC?sap-client=800&wsdl=1.1
      Authentication: HTTP Authentication, Logon Ticket
    2. Try to test ES at "WS Navigator"
      -> When I search ES in destination which I created, the following error occurred:
    Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<hostname>:<port>/sap/bc/srt/xip/sap/ECC_SALESORDERCRTRC?sap-client=800&wsdl=1.1"
    When I changed destination's settings as follows, testing ES at "WS Navigator" succeeded.
      Authentication: HTTP Authentication, User ID/Password(Basic), apply fixed user
    But I'd like to change user who calls ES dynamically, because I want to set the user who creates sales order to Portal logon user.
    Could you give me any advice?
    Ikue

    hi lkue,
    Please see my weblog @ https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7891. [original link is broken] [original link is broken] [original link is broken]  When you create SM59 HTTP destination, select "send logon ticket" or "logged in user id /password" . This will automatically use logged in user id dynamically.
    Hope it helps you and solves your problem.
    Regards,
    Arul

  • "A technical error during invocation : Could not invoke service reference" Error message while calling a service from BPM

    Hi Experts,
    We are facing a issue while calling a Automated activity from BPM process, the process gets suspended and the BPM logs says "Process XYZ suspended, A technical error during invocation: Could not invoke service reference name fdhueoegghejietyhsjk6886 Component name ABC " We have already checked the mapped service reference and provider system. Gone through the below link, but no help.
    http://http://wiki.scn.sap.com/wiki/display/TechTSG/Sending+a+message+from+SAP+NetWeaver+BPM+process+to+PI+fails+via+automated+activity?original_fqdn=wiki.sdn.sap.com
    Any pointers or suggestions to fix up this issue will be highly appreciated. Thanks in advance.
    Regards,
    Mohit Jaju

    The details/ID in NWDS Service Reference must exactly match the SOA configuration. Sometimes it's possible you have changed the reference or the group itself and something changed to become mismatched.
    It's possible they don't match - but the SG itself will show green in NWA since the service exists and responds on the target system. Does the ID listed in the error match what is shown in the NWDS project?
    regards, Nick

  • Call Java Method from BPM Process

    Hi,
      I have defined a java class with set of methods , and I want to know if there is any way to call those methods from a BPM process..
    Thanks in Advance,,
    Best Regards,,
    Ola Essa..

    Use the spring component context in soa suite instead of ejb. Look for documentation in soa suite developer guide. Only if you have existing ejbs then use ejb adapters.
    See this http://www.oracle.com/technetwork/middleware/soasuite/learnmore/fivecoolusecasesforspring-1885529.pdf
    Vikram
    Message was edited by: VikramFusionApplied

  • Calling Enterprise Services through xMII Web Service action block

    Hi All,
    I'm calling some Enterprise Service through xMII Web Service action block.
    After providing URL and user credentials, I'm getting error "SOAP Service could not be loaded: The element type 'p' must be terminated by the matching end-tag '</p>'."
    Can anyone point out what might be the reason ?
    Thanks,
    Sumit

    If you haven't already, try using the browser from the xMII server machine rather than your own (client).
    The error that you recieve usually means that instead of a WSDL an HTML is being returned when you use the WebService action block.
    Possible reasons - as Jeremy pointed out - improper credentials or some error with the webservice itself.
    Another thing you can possibly try out - use some web service analyser to access the webservice . There's one that goes by the name StrikeIron which is a freeware.Pretty neat tool.

  • Hit TransitionException when call web service in bpm

    hello, my mesage of exception like follows:
    <br>
    com.sap.glx.core.kernel.api.TransitionException: An exception occurred while executing the script "_FileIn:AUTOMATED_ACTIVITY_FI_Notice_PSP(
          com.sap.glx.adapter.BPMNAdapter:Token_0_CSS_FileIn_58b390c7e1a007da73193237933adb39 token,
          com.sap.glx.adapter.BPMNAdapter:Instance_0_CSS_FileIn_58b390c7e1a007da73193237933adb39 parent,
          com.sap.glx.adapter.internal.ContainerAdapter:Context_0_IRO_58b390c7e1a007da73193237933adb39 context_0){
      exit=new com.sap.glx.adapter.BPMNAdapter:Exit();
      exit:addParameter(token);
      exit:addParameter(parent);
      exit:addParameter(context_0);
      exit:onActivation("4B1F796E2DC84120E4AC11DEB8BF00016C0D596F", parent, token);
      delete exit;
      controller=new com.sap.glx.adapter.internal.ExceptionAdapter:ExceptionController();
      controller:setContext(token);
      delete controller;
      callscope=new com.sap.glx.adapter.internal.TypeRegistry:Scope_20_FileIn_58b390c7e1a007da73193237933adb39(parent);
      call=new com.sap.glx.adapter.UnifiedConnectivityAdapter:Call_3_FI_Notice_PSP_58b390c7e1a007da73193237933adb39(callscope);
      request=callscope:instantiate("http://tsmc.com/csspoc/notice/ejb/sb/", "#entrustSendingNotice");
      mapper=new com.sap.glx.adapter.internal.Transformer:DataMapper();
      yves_in=new com.sap.glx.adapter.internal.Transformer:Data();
      yves_out=new com.sap.glx.adapter.internal.Transformer:Data();
      data=context_0:getData();
      yves_in:setData("tsmc.com/filein/pc/iresolution/Pool/FileIn", "$tsmc.com/filein/pc/iresolution/Pool/FileIn:IRO", data, "F2E8AB22162217BCFE0495CA03E629FD");
      yves_out:setData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNotice", request, "0B03C177B47A4396F51FAC817E2C3870");
      mapper:map("4B1F796E2DCB4E62E4AC11DEB49600016C0D596F_58b390c7e1a007da73193237933adb39", yves_in, yves_out);
      request=yves_out:getData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNotice", "0B03C177B47A4396F51FAC817E2C3870");
      delete yves_in;
      delete yves_out;
      delete mapper;
      call:setInputData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNotice", request);
      response=callscope:instantiate("http://tsmc.com/csspoc/notice/ejb/sb/", "#entrustSendingNoticeResponse");
      call:setOutputData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNoticeResponse", response);
      call:invoke();
      response=call:getOutputData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNoticeResponse");
      mapper=new com.sap.glx.adapter.internal.Transformer:DataMapper();
      yves_in=new com.sap.glx.adapter.internal.Transformer:Data();
      yves_out=new com.sap.glx.adapter.internal.Transformer:Data();
      yves_in:setData("http://tsmc.com/csspoc/notice/ejb/sb/", "$http://tsmc.com/csspoc/notice/ejb/sb/:entrustSendingNoticeResponse", response, "0B03C177B47A4396F51FAC817E2C3870");
      mapper:map("4B1F796E2DD00950E4AC11DEC9F000016C0D596F_58b390c7e1a007da73193237933adb39", yves_in, yves_out);
      delete yves_in;
      delete yves_out;
      delete mapper;
      delete call;
      delete callscope;
      token:state=14;
    com.sap.glx.core.kernel.execution.transition.ScriptTransition.execute(ScriptTransition.java:69)
    com.sap.glx.core.kernel.execution.transition.Transition.commence(Transition.java:241)
    com.sap.glx.core.kernel.execution.LeaderWorkerPool$Follower.run(LeaderWorkerPool.java:118)
    com.sap.glx.core.resource.impl.common.WorkWrapper.run(WorkWrapper.java:58)
    com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator$1.run(ServiceUserManager.java:116)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAs(Subject.java:337)
    com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator.run(ServiceUserManager.java:114)
    com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    java.security.AccessController.doPrivileged(Native Method)
    com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:169)
    com.sap.glx.core.kernel.api.TransitionException: An exception occurred while executing the script command "call:invoke()"
    com.sap.glx.core.kernel.trigger.config.Script.execute(Script.java:675)
    ... (11 more)
    com.sap.glx.core.kernel.api.TransitionException: com.sap.glx.adapter.api.AdapterException: Unexpected exception occured.
    com.sap.glx.core.dock.impl.DockObjectImpl.invokeMethod(DockObjectImpl.java:465)
    com.sap.glx.core.kernel.trigger.config.Script$MethodInvocation.execute(Script.java:247)
    ... (12 more)
    com.sap.glx.adapter.api.AdapterException: Unexpected exception occured.
    com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallObject.invokeWebServiceOperation(UnifiedWebServiceCallObject.java:333)
    com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallClass.invoke(UnifiedWebServiceCallClass.java:197)
    ... (14 more)
    com.sap.glx.adapter.api.AdapterException: Exception occured during wsdas initialization.
    com.sap.glx.adapter.app.ucon.UnifiedConnectivityAdapter.createNewWSDAS(UnifiedConnectivityAdapter.java:654)
    com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallClass.getWSDAS(UnifiedWebServiceCallClass.java:53)
    ... (16 more)
    com.sap.engine.services.webservices.espbase.discovery.TargetNotMappedException: Logical Target CSD.SystemHome.f7sap03 not mapped to a physical system.
    com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getLogicalDestination(DestinationsHelperImplSoa.java:831)
    com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:985)
    com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:582)
    com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:338)
    com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:321)
    com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASImpl.<init>(WSDASImpl.java:33)
    com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASFactoryImpl.createWSDAS(WSDASFactoryImpl.java:39)
    ... (18 more)
    <br>
    i have no idea why and how it happen, it been work well.

    Vic,
    the vital piece of information in the error stack is this line:
    com.sap.engine.services.webservices.espbase.discovery.TargetNotMappedException: Logical Target CSD.SystemHome.f7sap03 not mapped to a physical system.
    It seems that there is something wrong with the configuration of the target system for the called Web Service in your AS Java.
    Best regards,
    Oliver
    Edited by: Oliver Goetz on Dec 11, 2009 5:24 PM
    Edited by: Oliver Goetz on Dec 11, 2009 5:24 PM

  • Debugging EnterPrise Service in Process Instances

    Hi BPM Experts.
    I'm trying to debug EnterPrise Service on BPM(Process Composer).
    but, NDWS's debug view is only possible to see Process Context values.
    I want to check value of service interface of EnterPrise Services, before and after.
    Please tell me how to do it.
    Best Regards,
    Yuki

    Hi Arafat.
    thank you for your answer.
    i did attempt to edit process context (XSD).
    but i couldn't import process context (XSD) to ESR as Data Type.
    do i have to use other XSD editter??
    error message is below.
    "Schema to be handled does not contain a definition of type processcontext"
    xsd is below ( BPM tutorial's xsd file)
    ============================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.example.org/approvalprocess" elementFormDefault="qualified" targetNamespace="http://www.example.org/approvalprocess">
        <element name="InvestmentApprovalProcess"
             type="tns:InvestmentApprovalProcess" />
        <complexType name="Requester">
             <sequence>
                  <element name="requesterName" type="string"/>
                  <element name="requesterCountry" type="string"/>
             </sequence>
        </complexType>
        <complexType name="Product">
             <sequence>
                  <element name="productDesciption" type="string"/>
                  <element name="productPrice" type="decimal"/>
                  <element name="productID" type="string"/>
                  <element name="productQuantity" type="decimal"/>
             </sequence>
        </complexType>
        <complexType name="PurchaseOrder">
             <sequence>
                  <element name="orderTotalAmount" type="decimal"/>
                  <element name="orderComment" type="string"/>
                  <element name="orderApproved" type="boolean"/>
              <element name="orderID" type="string"/>
                  <element name="orderDate" type="date"/>
             </sequence>
        </complexType>
        <complexType name="ApprovalInfo">
             <sequence>
                  <element name="approverName" type="string"/>
                  <element name="orderApproved" type="boolean"/>
                  <element name="approverComment" type="string"/>
             </sequence>
        </complexType>
        <complexType name="InvestmentApprovalProcess">
             <sequence>
                  <element name="ApprovalInfo" type="tns:ApprovalInfo"></element>
                  <element name="Product" type="tns:Product"></element>
                  <element name="PurchaseOrder" type="tns:PurchaseOrder"></element>
                  <element name="Requester" type="tns:Requester"></element>
             </sequence>
        </complexType>
    </schema>
    ============================================================
    Best Regards,
    Yuki

  • JNDI Error when Oracle BPM Process invokes an EJB Service Adapter

    Hi All,
    I am trying to invoke an EJB Service from my Oralce BPM process/workflow. I have provided the JNDI name in EJB service adapter in Jdeverloper also. Even though I have configured the JNDI in weblogic server properly, i am getting some JNDI invocation error (FabricInvocationException) as below.
    Can somebody help me on this.
    Non Recoverable System Fault :
    *<bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>oracle.fabric.common.FabricInvocationException: Exception creating jndi context for ejb invocation:</summary></part><part name="detail"><detail>Unable to resolve 'XXXXXXInterfaceRemote'. Resolved ''</detail></part><part name="code"><code>null</code></part></remoteFault></bpelFault>*
    Edited by: 920456 on Apr 2, 2013 2:09 AM

    Hi All,
    Still i am facing the above stated challenge, i am getting a JNDI error when i am trying to call it from Oracle BPM process.
    can somebody tell me Does Oracle SOA Suite - EJB Adapter version 3.0 has any runtime bugs ? etc.
    Bcoz in the below link it is given something like EJB Version 2 Are Not Supported During Runtime. So, i want to check whether any bugs.
    [Oracle SOA EJB Adapter Version bugs|http://www.oracle.com/technetwork/middleware/docs/aiasoarelnotesps5-1455925.html#intadapt]
    Regards,
    Satya

  • How to pass value object to BPM process and access process returned data

    Hi,
    I am new to Oracle BPM studio and gone through the tutorial. I did not find anywhere how to orchestrate the java components or ejb components or web services in BPM process. if any one provide sample business process orchestered with java component or ejb component or webservice, it will be great. Or atleast provide steps to do that.
    Thanks and Regards
    Mahesh Babu

    There is a tutorial available online.. But you can always catalogue web services and JARs files into the ALBPM..
    Just create a new module inside the Catalogue and then right click on it to see Catalogue Component and then select what component u want to add to ALBPM and then follows the steps of adding that component from your local machine and introspecting it..
    If it is successful, then all the web-service methods or the JAR file methods would be catalogued into ALBPM..
    You can put the WSDL address in the space provided for Web Services.. If password is required that too can be put..
    Another way is to create a component in External Resources and then Cataloguing it...

  • Consume Enterprise Services in Java Application

    Hey guys,
    I'm very new in this field, maybe you can help me how to start....
    I want to call Enterprise Services (asynchronous, provided by SAP) from an external java application. Therefore I want to configure a integration scenario between two business systems: java application (consumer) and sap application system (service provider). Maybe you can help me to answer the following questions.
    1) What kind of adapter I have to use in communication channels?
    2) Have I to define outbound/inbound interfaces for Communication Component "sender" (business system: java application)?
    2) How does the communication between the java application and IS work? What kind of API I have to use - some kind of advanced adapter engine ... JCO, JCA ???
    Is there any demo scenario from sap? Please help me to start
    Kind regards,
    Christian

    Hello,
    problem is you are using wsimport on web-service which uses RPC/encoding. Wsimport use JAX-WS so it is not able read it.
    You should wscompile.bat instead it.
    Here is example :
    wscompile.bat -gen:client -d build/classes -s src -keep config.xml
    (-gen:client -says to generate classes for client
    -d - directory where to store classes
    -s - directory where to store sources
    -keep - to keep source file
    xml file
    Where config.xml looks like
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
    xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl location=
    "http://something/yourws?wsdl"
    packageName="org.your.package.client"/>
    </configuration>
    I hope it will help.
    best regards

  • Enterprise Services and PI

    I am looking for some white papers / blogs on calling SAP Enterprise Services via PI. I would also like to get sdome idea of the following points:
    1) A typical scenario using Enterprise Services
    2) Is it possible to extend Enterprise Services as one might a BAPI, in order to enhance it specifically for a customer?
    3) What is the performance like compared to posting IDocs via PI?
    4) Is it better to call Enterprise Services via XI, or directly into the ERP system?
    Kind Regards,
    Tony.

    Hi,
    this could be helpful:
    All you ever wanted to know about Enterprise Services Repository and Services Registry – Really!
    Regards
    Patrick

  • Realationship enterprise service - application/entity service

    I read some books about ESA and CAF but I still don't know the relationship between enterprise services in ESA and application and entity services in the Netweaver DevStudio (CAS framework).
    Are application/entity services also enterprise services? Or is there a difference?
    Thanks for your answers.
    Joachim

    You can consume SAP Enterprise Services. You can also participate in the definition of the Enterprise Services  through the ES Community (see ES Community under Enterprise SOA in SDN) and even create your own Enterprise Services. You can use whatever web development tools you like. In Netweaver Java stack, you can use CAF to implement or develop Application Services (where business logic is coded) leveraging Entity Services taping into your local or remote data model(s). Enterprise Services can be modeled and coded in CAF Application Services but you can use plain J2EE as well. In SAP case, the interfaces for Enterprise Services are defined in XI (input/output/exception). Their implementation happen in the appropriate SAP solutions like ERP where business logic can execute against appropriate data.
    Practically CAF Entity Services cannot be called Enterprise Services unless you want to. They just perform basic CRUD (create/read/update/delete) operations on an data object. They're more like utility services. But like Anton's mention of "Private Enterprise Services", what's private remains your own business!

  • Calling Oracle BPM Process Web Service from Oracle Service Bus

    Hi
    I am using Oracle Service Bus 10gR3.
    I have developed simple BPM process through Oracle BPM studio 10.3.1.0.I then followed steps below
    1. Create a Process.
    2. Expose the Process as a Web Service.
    3. Run the project. This starts the Process Execution Engine.
    4. Create an ALSB External Resource of type Management Host.
    5. Create a second ALSB External Resource for registration.
    6. Register the End Point
    Until this point everything is fine. Then I created one project through Oracle Service Bus console. Under that created WSDL, Proxy Service and Business Service Folders. I am using the web service created through BPM studio as teh Business Service in SB . I then created one proxy service to route the request to the Business Service.
    Finally when I try to test the Proxy Service by launching test console, I get the
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-380001</con:errorCode>
    <con:reason>INTERNAL SERVER ERROR</con:reason>
    <con:location>
    <con:node>RouteNode1</con:node>
    <con:path>response-pipeline</con:path>
    </con:location>
    </con:fault>
    I also tried to debug through "Oracle Workshop for WebLogic Version 10.3 " . But I am not getting enough details as to why this is failing.
    Please help me . Thanks In advance.
    Thanks
    Nilay
    Edited by: user8950019 on Feb 1, 2010 4:11 AM

    Hi,
    When im calling wsdl created when BPM exposed as webservice in SOAP-ui, i first hit the startSession
    Request is:-
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exp="http://bea.com/albpm/ExpenseManagement/ExpenseReport">
    <soapenv:Header/>
    <soapenv:Body>
    <exp:startSession>
    <password>Employee</password>
    <user>Employee</user>
    </exp:startSession>
    </soapenv:Body>
    </soapenv:Envelope>
    Response i Get is:-
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <ns1:startSessionResponse xmlns:ns1="http://bea.com/albpm/ExpenseManagement/ExpenseReport">
    <return>3782hecq1s85h</return>
    </ns1:startSessionResponse>
    </soapenv:Body>
    </soapenv:Envelope
    but when i put this sessionId in main request:-
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exp="http://bea.com/albpm/ExpenseManagement/ExpenseReport">
    <soapenv:Header/>
    <soapenv:Body>
    <exp:expenseReport>
    <sessionId>3782hecq1s85h</sessionId>
    <reportArg>
    <!--Optional:-->
    <comments>yes</comments>
    <!--Optional:-->
    <costCenter>jaa</costCenter>
    <!--Optional:-->
    <description>aa</description>
    <!--Optional:-->
    <isApproved>y</isApproved>
    <!--Zero or more repetitions:-->
    <items>
    <!--Optional:-->
    <elements>
    <!--Optional:-->
    <amount>700</amount>
    <!--Optional:-->
    <date>?</date>
    <!--Optional:-->
    <description>?</description>
    <!--Optional:-->
    <receiptChecked>?</receiptChecked>
    </elements>
    </items>
    <!--Optional:-->
    <reviewedBy>?</reviewedBy>
    <!--Optional:-->
    <submitDate>?</submitDate>
    <!--Optional:-->
    <submittedBy>?</submittedBy>
    <!--Optional:-->
    <total>?</total>
    </reportArg>
    </exp:expenseReport>
    </soapenv:Body>
    </soapenv:Envelope>
    Response coming is :-
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server.userException</faultcode>
    <faultstring>fuego.lang.ComponentExecutionException: The method 'expenseReport' from class 'xobject.ExpenseReportWebServiceImpl.ExpenseReportServiceInternalAlbpmListenerImpl' could not be successfully executed.</faultstring>
    <detail>
    <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">fuego.lang.ComponentExecutionException: The method 'expenseReport' from class 'xobject.ExpenseReportWebServiceImpl.ExpenseReportServiceInternalAlbpmListenerImpl' could not be successfully executed.
         at fuego.lang.Invokeable.invokeImpl(Invokeable.java:244)
         at fuego.lang.Invokeable.invokeDynamic(Invokeable.java:188)
         at fuego.lang.Invokeable.invoke(Invokeable.java:160)
         at fuego.soaptype.SoapListener.invokeDynamic(SoapListener.java:104)
         at fuego.lang.Invokeable.invoke(Invokeable.java:160)
         at fuego.fengine.FEngineWebServiceExecutor$2.execute(FEngineWebServiceExecutor.java:133)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
         at fuego.fengine.FEngineWebServiceExecutor$1.run(FEngineWebServiceExecutor.java:65)
         at fuego.component.Message.process(Message.java:576)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
         at fuego.fengine.FEngineWebServiceExecutor$WebServiceExecutorPrincipal.processBatch(FEngineWebServiceExecutor.java:168)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    Caused by: java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "jaa"
         at xobject.ExpenseReportWebServiceImpl.ExpenseReportServiceInternalAlbpmListenerImpl.expenseReport(ExpenseReportServiceInternalAlbpmListenerImpl.xcdl:36)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.lang.Invokeable.invokeImpl(Invokeable.java:234)
         ... 21 more
    Caused by: java.lang.NumberFormatException: For input string: "jaa"
         at java.lang.NumberFormatException.forInputString(Unknown Source)
         at java.lang.Integer.parseInt(Unknown Source)
         at java.lang.Integer.valueOf(Unknown Source)
         at fuego.util.Conversion.tojava_lang_Integer(Conversion.java:934)
         at fuego.xobject.runtime.ConversionUtilities.fromString(ConversionUtilities.java:56)
         at fuegoblock.xml.XmlElementDeserializer.deserializeElement(XmlElementDeserializer.java:175)
         at fuegoblock.xml.XmlElementDeserializer.deserialize(XmlElementDeserializer.java:81)
         at fuegoblock.xml.DynamicXml.createObjectFrom(DynamicXml.java:160)
         at fuegoblock.xml.DynamicXml.createObjectFrom(DynamicXml.java:119)
         at xobject.ExpenseReportWebServiceImpl.ExpenseReportServiceInternalAlbpmListenerImpl.expenseReport(ExpenseReportServiceInternalAlbpmListenerImpl.xcdl:17)
         ... 28 more</ns1:stackTrace>
    <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">D-113014550</ns2:hostname>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    can anyone explain why this error is coming.?
    Edited by: user8937128 on May 19, 2010 6:58 AM

  • Unable to call  BPM process in service bus

    Hi,
    I am exposing BPM process as webservice. Inside oracle service bus based on bpm process WSDL i am creating business service and proxy service. How to call BPM process? I am trying with sample client which is invoking proxy exported wsdl. But i am always getting echoed request. Any suggestions on how to call BPMProcess inside service bus?
    regards,
    PV

    I am not able to test my proxy using test console .. I am getting following error message
    The invocation resulted in an error: .
         <soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soapenv:Body>
         <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>BEA-380002: CCHL-349940</faultstring>
         <detail>
         <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-380002</con:errorCode>
         <con:reason>Hostname</con:reason>
         <con:location>
         <con:node>RouteNode1</con:node>
         <con:path>request-pipeline</con:path>
         </con:location>
         </con:fault>
         </detail>
         </soapenv:Fault>
         </soapenv:Body>
         </soapenv:Envelope>

Maybe you are looking for