Hi All,
Iam Accessing a webservice from a portlet using the RPC Calls for which the code is as shown below.
Call call = _service.createCall(_port,"sayHi");
QName qn = new QName( "urn:SampleService", "strHello" );
call.setOperationName( new QName("SampleService", "sayHi") );
call.addParameter( "strHello", _qnameNS_XSD, ParameterMode.IN);
call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING );
String str = "HI";
String strVal = (String)call.invoke( new Object[] {str} );
Iam getting the below error
[#|2008-04-03T11:55:43.597+0530|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=37;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=04cd65a4-840f-4f24-b758-3b11e919c5ba;|
com.test.HelloServiceException: Can not get hello: operation style: "rpc" not supported
at com.test.HelloService.getHello(HelloService.java:107)
Any hints?
Thanks & regards
Srikanth