Re: [PHP] Soap / Wsdl Beginner

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux