Not able to invoke document style service from DII Client
I am not able to invoke document/literal service from DII client. It works fine for rpc/encoded service.
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.setReturnType(QNAME_TYPE_STRING);
call.setOperationName(new QName("http://batchrecord.webservices.sums.cfm.com", "processBREditForAlerts"));
call.addParameter("string", QNAME_TYPE_STRING, ParameterMode.IN);
// call.addParameter("parameters", requestQname, String.class, ParameterMode.IN);
String params[] = {
"testtest"};
String result = (String) call.invoke(new QName("http://batchrecord.webservices.sums.cfm.com"), params);
System.out.println(result);

