[JBoss jBPM] - Problems of using JBoss jBPM invoking web services
by HLQ
I was trying to make JBPM invoking web services, but failed...
I first tried to use BPEL1.1 beta3, after integrating BPEL and jBPM into JBossAS respectively, I found that BPEL and jBPM were using different DBschema. How can I make them work together, e.g. let the business process invoke the web service deployed by BPEL?
And then I tried to deploy a web service by using XFire, and it was successful and it also passed the test to test invoking this web service. However I tried to invoke it from the business process by doing:
<action class="com.myService.xfireDemo.InvokeService">
When I actually invoke it when starting the business process, it shows an error message on the page:
Error taking transition: com.myService.xfireDemo.InvokeService
| The application received a org.jbpm.graph.def.DelegationException.
| The message is: com.myService.xfireDemo.InvokeService
Can anybody help with it? Thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066452#4066452
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066452
18Â years, 9Â months
[JBossWS] - Cannot obtain java type mapping
by gapesteguia
I want to use the following code in order to inkoke the USZip web service, but I got the exception:
org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://www.webserviceX.NET}>GetInfoByZIP
I'm using jboss-4.2.1.GA. Could anyone help me ?.
Thanks
| public class CallWS {
| String result;
| public String CallUSZipCode() {
| try
|
| {
|
| URL url = new URL("http://www.webservicex.net/uszip.asmx?wsdl");
| String targetNamespace = "http://www.webserviceX.NET";
| QName serviceName = new QName(targetNamespace, "USZip");
| QName portName = new QName(targetNamespace, "USZipHttpGet");
| QName operationName = new QName(targetNamespace, "getInfoByZip");
|
| // create service
| ServiceFactory factory = ServiceFactory.newInstance();
|
| Service service = factory.createService(url, serviceName);
|
| // create call
| Call call = service.createCall(portName, operationName);
| // invoke the remote web service
| result = (String) call.invoke(new Object[] {"75080"});
| //System.out.println(result);
|
| } catch(Exception e){
| System.out.println(e);
| result = e.toString();
| }
|
| return (result);
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066450#4066450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066450
18Â years, 9Â months