PHP nusoap to java complex varables
===

I'm trying to pass back 2 strings from my php nusoap server to my ksoap2 client but ksoap2 isn't spliting the response from nusoap into different properties.

Here's my class for making the complex object in java.
   
    import java.util.Hashtable;
    
    
    import org.ksoap2.serialization.KvmSerializable;
    import org.ksoap2.serialization.PropertyInfo;
    
    
    public class ArrayOfStrings implements KvmSerializable {
    	
    	public String Status;
    	public String Data;
    	
    	public ArrayOfStrings(){}
    	
    	public ArrayOfStrings(String status, String data) {
    		Status=status;
    		Data=data;
    	}
    
    	@Override
    	public Object getProperty(int arg0) {
    		// TODO Auto-generated method stub
    		switch (arg0) {
    		case 0:
    			return Status;
    		case 1:
    			return Data;
    		}
    		return null;
    	}
    
    	@Override
    	public int getPropertyCount() {
    		// TODO Auto-generated method stub
    		return 2;
    	}
    
    	@Override
    	public void getPropertyInfo(int index, Hashtable hashtbl, PropertyInfo pi) {
    		// TODO Auto-generated method stub
    		switch (index) {
    		case 0:
    		pi.type=PropertyInfo.STRING_CLASS;
    		pi.name="Status";
    		break;
    		case 1:
    		pi.type=PropertyInfo.STRING_CLASS;
    		pi.name="Data";
    		default: break;
    		}
    	}
    
    	@Override
    	public void setProperty(int index, Object o) {
    		// TODO Auto-generated method stub
    		switch (index) {
    		case 0:
    			Status = o.toString();
    			break;
    		case 1:
    			Data = o.toString();
    			break;
    		default: break;
    		}
    	}
    
    }


Here's the code for adding the complexType in PHP nusoap.

    $server->wsdl->addComplexType("ArrayOfString",
    		"complexType",
    		"struct",
    		"",
    		"SOAP-ENC:Array",
    		array('Status'=> array('name' => 'Status', 'type' => 'xsd:string'),
    			  'Data'=>	array('name' => 'Data', 'type' => 'xsd:string'))
    );
    
    $server->register("appswitch",     
    		array(	"app" => "xsd:string",
    				"content" => "xsd:string"),
    		array("ArrayOfString" => "tns:ArrayOfString"),
    		"urn:webservices",
    		"urn:Submit#appswitch",
    		"rpc",
    		"encoded",
    		"G4Apps Webservices Gateway");

Any ideas?

