PDA

View Full Version : Packages cannot be nested


mandkcasey
10-01-2007, 07:56 PM
I searched on the web for this and there we lots of similar problems, but the fixes aren't working. This is all I am trying to do at the moment. I keep getting "Packages cannot be nested".

package {
import mx.rpc.soap.WebService;
import mx.rpc.soap.WSDL;

public class WikiUsers
{
public function RegisterUser(Email:String, Password:string):string
{
var wsUsers = new WebService();
var Active:int = 1;
wsUsers.wsdl = "http://localhost:2593/TranscriptionWiki/TranscriptionWiki.asmx?WSDL";
wsUsers.loadWSDL();

wsUsers.RegisterUser(Email, Password, Active);
}
}
}

flexy
10-02-2007, 01:56 PM
Have you tried putting your class into a folder and defining the package name?

RegisterUser doesn't return a value, when a String is expected.

The password parameter and the return type for RegisterUser should be String not string.

Have you tried defining an empty constructor to see if this helps?