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

[email protected] (Daniel Molina Wegener) Mon, 22 Nov 2010 08:57:59 -0300
Newsgroups php.soap
Organization http://coder.cl/
Message-ID <[email protected]>
On Monday 22 November 2010,
bkrqpzef <[email protected]> wrote:

> Hello,

  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.

  Well, try some Web Service related sites, like WS-I. To Work with Web
Services, you need to know about XML and HTTP:

  http://www.ws-i.org/

> 
> I need to use the method "Tarif" it should be like that (according to the
> technical documentation) :

  OK, is the <Tarif/> element the return type of the Web Service?. I don't
see any argument in yout call to the Web Service.

> 
> <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();

  Yes this looks fine, only if the Tarif() operation do not have any
arguments. Take a look on the examples here:

  http://www.php.net/manual/en/soapclient.soapclient.php

> 
> 
> 
> 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.

Best regards,
-- 
Daniel Molina Wegener <dmw [at] coder [dot] cl>
System Programmer & Web Developer
Phone: +56 (2) 979-0277 | Blog: http://coder.cl/
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABCgAGBQJM6lrHAAoJEHxqfq6Y4O5NXzQQAKlEhQ3vIO5RvXOH0K9dBNCb
wzoQH5WJHWsCh96mi+JULk+tOKqEU/SqU7KFMEhuG171tTe894gC7PJ19fIKnt1d
hjWCbJvgH8f1gFyqv4k8OQx1Kb7Xa+fzolQUvnMYqbgr241coKmiPjszGWKJnZQV
0t1YUrLAkCTLO9vkgXNqQPCWhI1H1+3pAvW2j83/uhpyVMOVLez/apagF8ej6W01
L5526u2N57/9LOCgEN8bwLUHEf4a5JkHvTzKtX3H2ShTcChA0apok7yB32JUlFyu
/m8KzV3ps7tvWsgMWX8uu5Cl7Jrl7+g15g3goNnAHGV21IT9XwGvs788na6mTFXF
v/NQB+cNmxEAXW1j4YsVNgjnW5GMSrwedkXSEJtzCfa2kfpdlpmCwIH46pDRLIi4
Qi589unMjJhwcafN9/0Txd4xrS3c/7Rg4haCSOWcOpSUXDVyRUpeM0nU+y+Y6eRA
2uibgWLOmBLEUb8tMwPVvfF14Y4qrKe8qr22eY9zZuOkIWWPYxpe2RHFTU4Rtwl0
v28nCyb2HiWLK1Ofh7IDrPhR5fACpT2qBk4W0sjg+gdYjyDomieXQntAuyCdSTwg
LKdabVnm9Q3tP9mczbNy3tehsPZC3C3ouRlEqE/ojrPR+yNURs+77n6O8Bck8fcV
Sbwl4QqHd1iAXMu97LMQ
=viYB
-----END PGP SIGNATURE-----