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

[email protected] (Richard Quadling) Mon, 22 Nov 2010 11:50:32 +0000
Newsgroups php.soap
Message-ID <[email protected]>
On 22 November 2010 11:35, bkrqpzef <[email protected]> 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