From: Sylvain M. <sma...@gm...> - 2005-10-31 17:05:17
|
oups (pff). Ok i send you the "good" log (i hope). the result is very strange :-/ Thanks again Sylvain. 2005/10/31, Scott Nichol <sni...@sc...>: > The $client->request and $client->response are for the endTask call, rath= er than listCustomers. Can you capture these for listCustomers? > > Scott Nichol > > Do not send e-mail directly to this e-mail address, > because it is filtered to accept only mail from > specific mail lists. > ----- Original Message ----- > From: "Sylvain Maucourt" <sma...@gm...> > To: "Scott Nichol" <sni...@sc...> > Cc: <nus...@li...> > Sent: Monday, October 31, 2005 2:52 AM > Subject: Re: [Nusoap-general] experience between nuSoap server and Java c= lient > > > allwright i had soap_fault when it's needed. > > i capture my client test program log. (added to the end of email) > > thanks again (and again). > > > 2005/10/31, Scott Nichol <sni...@sc...>: > > In this case, the result is less interesting than $client->response, wh= ich would show a little more detail. To me, the code looks reasonable, alt= hough I always use $resultat[] =3D ... instead of array_push. > > > > Unrelated, your method should return a soap_fault when checkAuth fails. > > > > Scott Nichol > > > > Do not send e-mail directly to this e-mail address, > > because it is filtered to accept only mail from > > specific mail lists. > > ----- Original Message ----- > > From: "Sylvain Maucourt" <sma...@gm...> > > To: "Scott Nichol" <sni...@sc...> > > Cc: <nus...@li...> > > Sent: Sunday, October 30, 2005 6:01 PM > > Subject: Re: [Nusoap-general] experience between nuSoap server and Java= client > > > > > > it's me again :-/ > > now .. i can recieve information from my webservice nusoap server. > > (http://tracker.sylvek.homelinux.net/BETA/timetracker.php) > > From my Axis client (generate by WSDL2JAVA), i recieve an array > > (Customer[]) with 4 elements... but 4 null elements :-/ > > i think that problem come from my function listCustomers. > > this is my function. > > > > function listCustomers($randomid) { > > if(checkAuth($randomid)) { > > $resultat =3D array(); > > global $db; > > $sql =3D "select name_customer,id,url,codeimg,doc from > > Customers_list > > where status=3D1"; > > $db->query($sql); > > while ($row=3D$db->fetch_assoc()) { > > array_push($resultat,$row); > > } > > return $resultat; > > } else { > > return new soapval('return', 'xsd:string', "false"); > > } > > } > > > > the result: > > > > [0] =3D> Array > > ( > > [0] =3D> Array > > ( > > [0] =3D> Array > > ( > > ) > > > > [1] =3D> Array > > ( > > ) > > > > ) > > > > [1] =3D> Array > > ( > > [0] =3D> Array > > ( > > ) > > > > [1] =3D> Array > > ( > > ) > > > > ) > > > > [2] =3D> Array > > ( > > [0] =3D> Array > > ( > > ) > > > > [1] =3D> Array > > ( > > ) > > > > ) > > > > [3] =3D> Array > > ( > > [0] =3D> Array > > ( > > ) > > > > [1] =3D> Array > > ( > > ) > > > > ) > > > > ) > > [...] > > > > how may i modify it to recieve not null information? > > > > Thanks again. > > > > > > 2005/10/30, Sylvain Maucourt <sma...@gm...>: > > > oupps! thanks :-) > > > now i can generate classes with WSDL2JAVA :-) > > > > > > Sylvain > > > > > > 2005/10/29, Scott Nichol <sni...@sc...>: > > > > There is a typographical error in one of your addComplexType calls.= The WSDL shows a type named 'Projets', where I assume you meant 'Projects= '. > > > > > > > > Scott Nichol > > > > > > > > Do not send e-mail directly to this e-mail address, > > > > because it is filtered to accept only mail from > > > > specific mail lists. > > > > ----- Original Message ----- > > > > From: "Sylvain Maucourt" <sma...@gm...> > > > > To: "Scott Nichol" <sni...@sc...> > > > > Cc: <nus...@li...> > > > > Sent: Saturday, October 29, 2005 1:34 PM > > > > Subject: Re: [Nusoap-general] experience between nuSoap server and = Java client > > > > > > > > > > > > i write 2 files. > > > > > > > > 1 - the last version who works (with complextype definition into ws= dl) > > > > http://tracker.sylvek.homelinux.net/BETA/timetracker.php > > > > > > > > 2 - the version with array of object support (doesn't work) > > > > http://tracker.sylvek.homelinux.net/BETA/timetracker-notwork.php > > > > > > > > WSDL2JAVA works with version 1 but not with version 2 (errors in pr= evious mail). > > > > my client test in php works with version 1 but return nothing with = version 2 :'( > > > > > > > > Thanks Scott for your help! > > > > > > > > 2005/10/29, Sylvain Maucourt <sma...@gm...>: > > > > > i'll try to capture the network information. > > > > > right. > > > > > > > > > > 1st step. > > > > > i create only complextype. launch WSDL2JAVA who create to me the > > > > > objects class. Great .. but it was not an array of objects only > > > > > object. > > > > > but i want to recieve array of objects... i looks for internet an= d i > > > > > found this page: > > > > > http://sourceforge.net/mailarchive/forum.php?thread_id=3D8665676&= forum_id=3D12929 > > > > > > > > > > 2nd step. > > > > > i create new complextypes. > > > > > ex: > > > > > > > > > > -------------------- > > > > > $server->wsdl->addComplexType( > > > > > 'Customer', > > > > > 'complexType', > > > > > 'array', > > > > > 'all', > > > > > '', > > > > > array( > > > > > 'id' =3D> array('name'=3D>'id', 'type'=3D>'xsd:string'= ), > > > > > 'name_customer' =3D> array('name'=3D>'name_customer', = 'type'=3D>'xsd:string'), > > > > > 'url' =3D> array('name'=3D>'url', 'type'=3D>'xsd:strin= g'), > > > > > 'codeimg' =3D> array('name'=3D>'codeimg', 'type'=3D>'x= sd:string'), > > > > > 'doc' =3D> array('name'=3D>'doc', 'type'=3D>'xsd:strin= g') > > > > > ) > > > > > ); > > > > > > > > > > $server->wsdl->addComplexType( > > > > > 'Customers', > > > > > 'complexType', > > > > > 'array', > > > > > '', > > > > > 'SOAP-ENC:Array', > > > > > array(), > > > > > array( > > > > > array('ref' =3D> 'SOAP-ENC:arrayType', > > > > > 'wsdl:arrayType' =3D> 'tns:Customer[]') > > > > > ), > > > > > 'tns:Customers' > > > > > ); > > > > > > > > > > function listCustomers($randomid) { > > > > > if(checkAuth($randomid)) { > > > > > $resultat =3D array(); > > > > > global $db; > > > > > $sql =3D "select name_customer,id,url,codeimg,doc= from Customers_list > > > > > where status=3D1"; > > > > > $db->query($sql); > > > > > while ($row=3D$db->fetch_assoc()) { > > > > > array_push($resultat,$row); > > > > > } > > > > > return $resultat; > > > > > } else { > > > > > return new soapval('return', 'xsd:string', "false= "); > > > > > } > > > > > } > > > > > $server->register('listCustomers', > > > > > array('randomid' =3D> 'xsd:string'), > > > > > array('return' =3D> 'tns:Customers'), > > > > > 'urn:TimeTracker', > > > > > 'urn:TimeTracker#listCustomers', > > > > > 'rpc', > > > > > 'encoded', > > > > > 'Liste des clients' > > > > > ); > > > > > -------------------- > > > > > and i cross my fingers and launch WSDL2JAVA.. but i recieve this = error: > > > > > -------------------- > > > > > java.io.IOException: Type > > > > > {http://tracker.sylvek.homelinux.net/soap/TimeTracker}Projects is > > > > > referenced but not defined. > > > > > at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForU= ndefined(SymbolTable.java:663) > > > > > at org.apache.axis.wsdl.symbolTable.SymbolTable.add(Symbo= lTable.java:543) > > > > > at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(= SymbolTable.java:516) > > > > > at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(= SymbolTable.java:493) > > > > > at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parse= r.java:360) > > > > > at java.lang.Thread.run(Unknown Source) > > > > > -------------------- > > > > > "http://tracker.sylvek.homelinux.net/soap/TimeTracker"?? but it's= doesn't exist. > > > > > i watch my WDSL file > > > > > (http://tracker.sylvek.homelinux.net/BETA/timetracker.php?wsdl) .= . and > > > > > i see: > > > > > -------------------- > > > > > - > > > > > <definitions targetNamespace=3D"http://tracker.sylvek.hom= elinux.net/soap/TimeTracker"> > > > > > - > > > > > <types> > > > > > - > > > > > <xsd:schema targetNamespace=3D"http://tracker.sylvek.home= linux.net/soap/TimeTracker"> > > > > > <xsd:import namespace=3D"http://schemas.xmlsoap.org/soap/encoding= /"/> > > > > > -------------------- > > > > > that's normal?! > > > > > > > > > > 2005/10/29, Scott Nichol <sni...@sc...>: > > > > > > >>>>> > > > > > > i update my wsdl (http://tracker.sylvek.homelinux.net/BETA/time= tracker.php?wsdl) > > > > > > i write a axis (java) client which works perfectly with simple = data > > > > > > (auth method) but i'm lost now with complexe data (listCustomer= s > > > > > > method).. WSDL2JAVA don't works :-| > > > > > > <<<<< > > > > > > > > > > > > Please be more specific. What error message do you get from ws= dl2java? The .NET wsdl tool (10/29/2005 12:47 EDT) gives these errors: > > > > > > > > > > > > Error: Unable to import binding 'TimeTrackerBinding' from names= pace 'urn:TimeTracker'. > > > > > > - Unable to import operation 'listProjects'. > > > > > > - The datatype 'Projects' is missing. > > > > > > > > > > > > >>>> > > > > > > and when i try something about complex type i recieve error: > > > > > > "org.xml.sax.SAXException: Bad envelope tag: br" > > > > > > <<<< > > > > > > > > > > > > It would be very useful to capture the network information usin= g, for example, tcpdump on Linux or Network Monitor on Windows. > > > > > > > > > > > > Scott Nichol > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.Net email is sponsored by the JBoss Inc. > > > > > > Get Certified Today * Register for a JBoss Training Course > > > > > > Free Certification Exam for All Training Attendees Through End = of 2005 > > > > > > Visit http://www.jboss.com/services/certification for more info= rmation > > > > > > _______________________________________________ > > > > > > Nusoap-general mailing list > > > > > > Nus...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > > > > > > > > > > > > > > > > > -- > > > > > Sylvain Maucourt > > > > > sma...@gm... > > > > > > > > > > > > > > > > > -- > > > > Sylvain Maucourt > > > > sma...@gm... > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by the JBoss Inc. > > > > Get Certified Today * Register for a JBoss Training Course > > > > Free Certification Exam for All Training Attendees Through End of 2= 005 > > > > Visit http://www.jboss.com/services/certification for more informat= ion > > > > _______________________________________________ > > > > Nusoap-general mailing list > > > > Nus...@li... > > > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > > > > > > > > > -- > > > Sylvain Maucourt > > > sma...@gm... > > > > > > > > > -- > > Sylvain Maucourt > > sma...@gm... > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. > > Get Certified Today * Register for a JBoss Training Course > > Free Certification Exam for All Training Attendees Through End of 2005 > > Visit http://www.jboss.com/services/certification for more information > > _______________________________________________ > > Nusoap-general mailing list > > Nus...@li... > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > -- > Sylvain Maucourt > sma...@gm... > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Nusoap-general mailing list > Nus...@li... > https://lists.sourceforge.net/lists/listinfo/nusoap-general > -- Sylvain Maucourt sma...@gm... |