I wrote this services:

package classes.ch.mitlinks.services;
import classes.ch.mitlinks.dataaccess.*;
import java.sql.*;

public class NestedTable extends JDBCConnect
{
protected String Tabelle = "personal";
protected String ID_Name = "id";

public NestedTable()
{
super();
this.setDriver( "com.mysql.jdbc.Driver" );
this.setUrl( "jdbc:mysql://localhost/test" );
this.setUid( "root" );
this.setPassword( "" );
}

public int getRoot()
{
setQuery( "SELECT id FROM " + this.Tabelle + " WHERE l = 1" );
executeQuery();
int Laenge = m_twoDArray.length;
return Laenge;
}
}

and deploed it:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"; id="urn:NestedTable">
<isd:provider type="java"
scope="Request"
methods="getRoot">
<isd:java class="classes.ch.mitlinks.services.NestedTable" static="false"/>
</isd:provider>
</isd:service>

if i add a main method and start the class from the command line, the result is 10 and that is corrert. if i request the method with my soap client (php), i see the folowing error:

soap_fault Object ( [error_message_prefix] => /linktool/servlet/rpcrouter [mode] => 1 [level] => 1024 [code] => SOAP-ENV:Server [message] => Exception from service object: null [userinfo] => [callback] => )

what is the problem?

sandro


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to