November 22, 2006, 02:03 PM
valixxWebservices with Apache Axis issue Please Help !!!
Hi,
I try using Webfocus Webservice manual to consume a Web Service with Apache Axis but I have a issue when I try to compile my Java file I got an error :
cannot resolve symbol
symbol : class ArrayOfValuesArrayEntry
Somebody can give me help , please don't send me to the books .
Best regards,
Valixx
November 22, 2006, 03:20 PM
dhagenDid you generate and build the classes from the wsdl? If so, are those classes in your class path or part of your application?
It cannot find the ArrayOfValuesArrayEntry.class file. Have you imported the "com.informationbuilders.*" packages into your class?
November 23, 2006, 03:43 PM
valixxHi dhagen,
I tried to import the com.informationbuilders.* and not work .
regards,
valixx
November 24, 2006, 10:47 AM
dhagenDid you generate the required classes from the wsdl file?
Does the com.informationbuilders.*.java files exist?
Does the com.informationbuilders.*.class files exist?
If the classes exist, are they on your class path?
The following is a sample using the ArrayOfValuesArrayEntry:
package wstesting;
import com.informationbuilders.*;
/**
* @author dhagen
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class myWsTest {
private static WebFocusSoap wfs;
private static LogOnInfo logon;
private static String sectoken;
private static ArrayOfStringArray arrayStringArray;
private static StringArray[] StringArray;
public static void main(String[] args) {
// Establish WebFOCUS logon.
try {
wfs = new WebFocusLocator().getWebFocusSoap();
logon = wfs.webFocusLogOn("","","admin","");
System.out.println("Return: " + logon.isStatus());
} catch (Exception e) {
System.out.println("Exception: " + e);
return;
}
// Run a request.
try {
FexInfo fexInfo = new FexInfo();
fexInfo.setName("wsnewtest.fex");
WebFocusReturn webFocusReturn = wfs.webFocusRunFex(logon,fexInfo);
// ------------ Start: for whole array based output-----------------------
// get the columns or output.
arrayStringArray = webFocusReturn.getValues();
StringArray = arrayStringArray.getStringArray();
// loop through the colums.
for (int i = 0; i < StringArray.length; i++ ) {
System.out.println("Column" + i);
String[] columns = StringArray[i].getValuesentry();
for (int j = 0; j < columns.length; j++) {
System.out.println("Row" + j + ": " + columns[j]);
}
}
// ------------ End Of: for whole array based output-----------------------
} catch (Exception e) {
System.out.println("Exception: " + e);
return;
}
}
}
I still suspect that the supporting class files do not exist - hense the error.