|
Re: nusoap client, .NET document/literal server: msg#00076php.nusoap.general
Posting the WSDL would be the biggest help, but here's my guess based on what you posted. define("SERVICE", "http://localhost/project/projectService.asmx?WSDL"); $soapclient = new soapclient(SERVICE,'wsdl'); $params = array('leaderId'=>888); $projectsByLeader = $soapclient->call('listProjectsByLeader', array('parameters'=>$params)); 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: "Alisdair Graeme Daws" <S3010497@xxxxxxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, May 13, 2004 8:38 PM Subject: [Nusoap-general] nusoap client, .NET document/literal server I have a strange situation accessing methods on a .NET web service using a nusoap client. Methods that take no parameters return correctly, but those that do require parameters invariably fail. I noticed somebody else had a similar problem and the solution was to wrap the array of parameters in another array with a single element named after the service method. I tried something similar, but to no avail. (This is all on my local machine at the moment.) define("SERVICE", "http://localhost/project/projectService.asmx?WSDL"); $soapclient = new soapclient(SERVICE,'wsdl'); $leader = array('leaderId'=>888); $params = array('listProjectsByLeader'=>$leader); $projectsByLeader = $soapclient->call('listProjectsByLeader', $params, "http://tempuri.org/"); Following are the example request and response generated by VS.NET: POST /project/projectService.asmx HTTP/1.1 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/listProjectsByLeader" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <listProjectsByLeader xmlns="http://tempuri.org/"> <leaderId>int</leaderId> </listProjectsByLeader> </soap:Body> </soap:Envelope> HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <listProjectsByLeaderResponse xmlns="http://tempuri.org/"> <listProjectsByLeaderResult> <anyType /> <anyType /> </listProjectsByLeaderResult> </listProjectsByLeaderResponse> </soap:Body> </soap:Envelope> Any suggestions as to how I can successfully pass even a simple parameter to my .NET web service would be gratefully received! ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&op=ick _______________________________________________ Nusoap-general mailing list Nusoap-general@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: sending more then one packet: 00076, Scott Nichol |
|---|---|
| Next by Date: | nusoap client, .NET document/literal serve: 00076, Alisdair Graeme Daws |
| Previous by Thread: | nusoap client, .NET document/literal serveri: 00076, Alisdair Graeme Daws |
| Next by Thread: | nusoap client, .NET document/literal server: 00076, Alisdair Graeme Daws |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |