Focal Point
Webservices with Apache Axis issue Please Help !!!

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3391008791

November 22, 2006, 02:03 PM
valixx
Webservices 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
dhagen
Did 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?


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
November 23, 2006, 03:43 PM
valixx
Hi dhagen,

I tried to import the com.informationbuilders.* and not work .

regards,
valixx
November 24, 2006, 10:47 AM
dhagen
Did 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.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott