I am Not able to invoke document/literal service from DII client. It says operation does not exist, pls check your operation name.
Here is the code
---------------------
System.setProperty("javax.xml.rpc.ServiceFactory",
"weblogic.webservice.core.rpc.ServiceFactoryImpl");
ServiceFactory sf = ServiceFactory.newInstance();
QName serviceQname = new QName("http://batchrecord.webservices.sums.cfm.com", "CFMBatchRecordService");
Service service = sf.createService( serviceQname);
QName portQname = new QName("http://batchrecord.webservices.sums.cfm.com", "CFMBatchRecordServicePort");
QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
Call call = service.createCall(portQname);
// call.setProperty ("javax.xml.rpc.encodingstyle.namespace.uri", "");
call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document");
call.setTargetEndpointAddress(endpoint);
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
// call.("http://batchrecord.webservices.sums.cfm.com");
call.setProperty(ENCODING_STYLE_PROPERTY, "");
call.setReturnType(QNAME_TYPE_STRING);
call.setOperationName(new QName("http://batchrecord.webservices.sums.cfm.com", "processBREditForAlerts"));
call.addParameter("string", QNAME_TYPE_STRING, ParameterMode.IN);
String params[] = {"testtest"};
String result = (String) call.invoke(new QName"http://batchrecord.webservices.sums.cfm.com"), params);
System.out.println(result);
-
Not able to invoke document/literal service from DII client (0 messages)
- Posted by: ashutosh kumar
- Posted on: February 02 2006 08:04 EST