Hi all,
I have a BPM process that has a start message trigger. I am trying to trigger this process from an EJB. and finally the EJB would be exposed as a web service.
The steps that I followed for the same:
-> I copied the URL of the WSDL (start trigger) from Configuration Mgmt -> Process Repository -> Select the process and choose 'Start Process' . The WSDL URL appears in the bottom table.
-> I imported the WSDL into an EJB module DC. Right click , Import WSDL. I could see 3 wsdl files in my DC. One with the name rootwsdl_TriggerDummyProcess.wsdl, the other 2 are rootwsdl_importedwsdl_1_TriggerDummyProcess.wsdl and rootwsdl_importedwsdl_2_TriggerDummyProcess.wsdl.
-> The wsdl that has the start trigger's location is rootwsdl_TriggerDummyProcess.wsdl. I created a web service client for this WSDL using the wizard.
-> I cretaed a session bean and wrote the code in the attached text file to execute the WSDL. The host and port are removed in this attachment.
-> I used the wizard to expsoe the EJB as a web service
->Now when I try to execute this web service, I get the below exception
Caused by: java.io.IOException: Server returned HTTP response code: 405 for URL: http://<host>:<port>/bpm/demosapcom/testbpm/DummyProcessTrigger
Can someone please advise how to go abotu resolving this?
Thanks in advance
Subathra M
Hi Subathra,
I have to ask, why would you want to wrap the BPM Start WS in a further layer in the form of an EJB? If you want to trigger the start of a BPM process as a WS, why not just call the BPM Start WS directly? I'm basically unclear on what you are trying to do and why - maybe give a bit more information on this and we can help more.
Gareth.
Hi Gareth,
I have just stated part of the requirement in here. The BPM process has to be triggered from the EJB as part of an end-to-end scenario.
Subathra M
are you sure it is requirement? i think it's your design
can you tell us the whole story?
Hi Jun Wu,
We need to execute a web service from EJB. The web service would invoke BRM rules. As you mentioned, it is as per our design. As a start, we are trying to invoke a sample web service, which in this case is the BPM process WSDL. Any case, I would like to know the cause of the error. What is that I am missing.
Thanks
Subathra M
Still cannot understand why you have to put those call in ejb.
For wsdl URL, better get it from service registry.
Okay. Thank you. Will try that and get back in case of any issues.