Re: [SOAP] [PHP] Soap / Wsdl Beginner

From: Date: Mon, 22 Nov 2010 11:50:32 +0000
Subject: Re: [SOAP] [PHP] Soap / Wsdl Beginner
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-3133@lists.php.net to get a copy of this message
On 22 November 2010 11:35, bkrqpzef <bjornulf.frode@gmail.com> wrote: > > Hello, > > I have never use SOAP/WSDL before. I need to access to a webservice to get > some informations. > I don't understand the technical documentation i got. > > I need to use the method "Tarif" it should be like that (according to the > technical documentation) : > > <Tarif> >  <Clef></Clef> >  <TarifParams IdCo=""> >   <Devis> >      <Personne> >         <Nom> </Nom> >        <Prenom>Prenom</Prenom> >        <Numero></Numero> >        <Type>Adherent</Type> >        <DateNaissance></DateNaissance> >      </Personne> >      <Parametres> >        <DateEffet></DateEffet> >        <CodePostal></CodePostal> >        <Produit> </Produit> >         <Garanties> >           <Garantie> >                <Libelle> </Libelle> >           </Garantie> >        </Garanties> >      </Parametres> >    </Devis> >  </TarifParams> > </Tarif> > > > > But i'm not able to do it. :s > > I have something like : > > $client = new > SoapClient('https://adresseweb.com/file.asmx?wsdl'); > $result = $client->Tarif(); > > > > Whatever i put into the "()" of "Tarif" I have a : > > Server was unable to process request. ---> Object reference not set to an > instance of an object. > > Thx for your help and sorry for my english. Tarif() requires parameters. You have to fill them in. If you can supply the wsdl file URL, I'll send back the code you need to start working. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

« previous php.soap (#3133) next »