[jboss-user] [JBoss jBPM] - jBPM BPEL- accessing a business process from java client
shefagarwal
do-not-reply at jboss.com
Thu Jan 24 04:40:35 EST 2008
Hi,
I have created a simple BPEL process (similar to hello example of jBPM BPEL package) with receive-assign-reply activities.
The process has been successfully deployed on JBOSS 4.0.5.GA But when I try to access this process through my java client program, it throws some exceptions:
The client program is as follows:
public class WsClient
{
private static String invokeWS() throws Exception
{
Service service;
String namespace = "http://eclipse.org/bpel/sample";
URL url = new URL("http://ddc1a-01-378:8080/bank/helloProvider?wsdl");
QName qname = new QName(namespace, "helloService");
ServiceFactory factory = ServiceFactory.newInstance();
service = factory.createService(url, qname);
QName operation = new QName(namespace, "process");
QName port = new QName(namespace, "helloProviderPort");
Call call = service.createCall(port, operation);
return (String) call.invoke(new Object[] { "Shefali" } );
}
public static void main(String[] args)
{
try {
System.out.println("Invoke: " + invokeWS() );
} catch (Exception e) {
e.printStackTrace();
}
}
The runtime exception I faced:
the serializer/deserializer for parameter number: 0, named: "{http://eclipse.org/bpel/sample}helloResponse", type: "{http://eclipse.org/bpel/sample}helloResponse", is ambiguous because its class could not be determined at com.sun.xml.rpc.client.dii.BasicCall.serializerNotFoundException(BasicCall.java:779) at com.sun.xml.rpc.client.dii.BasicCall.createLiteralResponseSerializer(BasicCall.java:722) at com.sun.xml.rpc.client.dii.BasicCall.getResponseDeserializer(BasicCall.java:692) at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:480) at com.test.WsClient.invokeWS(WsClient.java:32) at com.test.WsClient.main(WsClient.java:38)
Can somebody provide a possible solution to this problem?
Thanks in advance
Shefali.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122942#4122942
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122942
More information about the jboss-user
mailing list