Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
it not work. return exception.
Options options = new Options(args);
String endpoint = "[URL unfurl="true"]http://server.com/crbtprov/Content";[/URL]
String proc="getFragmentList";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName( proc );
call.addParameter( "i1", XMLType.XSD_INT, ParameterMode.IN );
call.addParameter( "i2", XMLType.XSD_INT, ParameterMode.IN );
call.setReturnType( XMLType.XSD_INT );
Integer ret = (Integer) call.invoke( new Object [] { new Integer(40), new Integer(10) });
System.out.println("Got result : " + ret);
try{
java.net.URL ur=new java.net.URL("[URL unfurl="true"]http://server.com/crbtprov/ContentProvider?invoke=getFragmentList&key=111111&n=1&rownum=10&used=1&order=1&showCount=1&access=1&lang=1");[/URL]
java.net.URLConnection conn = ur.openConnection();
java.beans.XMLDecoder xd= new java.beans.XMLDecoder(conn.getInputStream());
ru.cboss.in.ws.crbt.proxy.ru_cboss_in_ws_crbt_results_FragmentRowsResult obj=(ru.cboss.in.ws.crbt.proxy.ru_cboss_in_ws_crbt_results_FragmentRowsResult)xd.readObject();
System.out.println(obj.toString());
}catch (Exception Ex) {
Ex.printStackTrace();
}
it return java.lang.NoClassDefFoundError exception
i think it is valid xml. but decoder cant deserialize it because it serialize by soap.