Re: [PHP] Soap / Wsdl Beginner

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

 



In fact, I still have a question.
I want to know how to use wsdl2php and I'm able to generate the WSSante.php,
but how have you generate the other one ? For another function for instance.


RQuadling wrote:
> 
> On 26 November 2010 10:21, bkrqpzef <bjornulf.frode@gmail.com> wrote:
>>
>> Yes i need to use arrays !!
>> I was able to do want i wanted to do with "array_push".
>> Thank you again for your precious help, Have a nice day.
>>
>>
>> RQuadling wrote:
>>>
>>> On 25 November 2010 16:15, bkrqpzef <bjornulf.frode@gmail.com> wrote:
>>>>
>>>> Yeah the key if working. i have forget to put some brackets at the
>>>> beginning
>>>> and at the end. I didn't thought that was part of the key.
>>>> In fact, the code working well with only :
>>>>
>>>> $Tarif->TarifParams->Devis->Assure = new AssureInput(); // AssureInput
>>>> $Tarif->TarifParams->Devis->Assure->Nom        = ''; // string
>>>> $Tarif->TarifParams->Devis->Assure->Prenom      Â= ''; // string
>>>> $Tarif->TarifParams->Devis->Assure->NumeroAssure   Â= 2; // int
>>>> $Tarif->TarifParams->Devis->Assure->Type       Â= 'Adherent'; //
>>>> string
>>>> $Tarif->TarifParams->Devis->Assure->DateNaissance   = '19800101'; //
>>>> string
>>>> $Tarif->TarifParams->Devis->Assure->RegimeObligatoire = 'SS'; // string
>>>>
>>>> But i need to add another Person to this request.
>>>> like in https://wspar51.april.fr/WSSante/WSSante.asmx?op=Tarif :
>>>>
>>>> POST /WSSante/WSSante.asmx HTTP/1.1
>>>> Host: wspar51.april.fr
>>>> Content-Type: text/xml; charset=utf-8
>>>> Content-Length: length
>>>> SOAPAction: "http://www.april-technologies.com/Tarif";
>>>>
>>>> <?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>
>>>> Â Â<Tarif xmlns="http://www.april-technologies.com";>
>>>> Â Â Â<astr_Clef>string</astr_Clef>
>>>> Â Â Â<TarifParams IdCo="string">
>>>> Â Â Â Â<Devis>
>>>> Â Â Â Â Â<Assure>
>>>> Â Â Â Â Â Â<Nom>string</Nom>
>>>> Â Â Â Â Â Â<Prenom>string</Prenom>
>>>> Â Â Â Â Â Â<NumeroAssure>int</NumeroAssure>
>>>> Â Â Â Â Â Â<Type>string</Type>
>>>> Â Â Â Â Â Â<DateNaissance>string</DateNaissance>
>>>> Â Â Â Â Â Â<RegimeObligatoire>string</RegimeObligatoire>
>>>> Â Â Â Â Â</Assure>
>>>> Â Â Â Â Â<Assure>
>>>> Â Â Â Â Â Â<Nom>string</Nom>
>>>> Â Â Â Â Â Â<Prenom>string</Prenom>
>>>> Â Â Â Â Â Â<NumeroAssure>int</NumeroAssure>
>>>> Â Â Â Â Â Â<Type>string</Type>
>>>> Â Â Â Â Â Â<DateNaissance>string</DateNaissance>
>>>> Â Â Â Â Â Â<RegimeObligatoire>string</RegimeObligatoire>
>>>> Â Â Â Â Â</Assure>
>>>> Â Â Â Â Â<Parametres>
>>>> Â Â Â Â Â Â<DateEffet>string</DateEffet>
>>>> Â Â Â Â Â Â<CodePostal>string</CodePostal>
>>>> Â Â Â Â Â Â<BesoinHospitalisation>string</BesoinHospitalisation>
>>>> Â Â Â Â Â Â<BesoinFraisMedicaux>string</BesoinFraisMedicaux>
>>>> Â Â Â Â Â Â<BesoinDentaire>string</BesoinDentaire>
>>>> Â Â Â Â Â Â<BesoinOptique>string</BesoinOptique>
>>>> Â Â Â Â Â Â<Produit>string</Produit>
>>>> Â Â Â Â Â Â<Garanties xsi:nil="true" />
>>>> Â Â Â Â Â</Parametres>
>>>> Â Â Â Â</Devis>
>>>> Â Â Â</TarifParams>
>>>> Â Â</Tarif>
>>>> Â</soap:Body>
>>>> </soap:Envelope>
>>>>
>>>> There are two <Assure> but i can't create another one. :(
>>>> And of course, I have to do both in the same request.
>>>>
>>>> I tried with :
>>>> $Tarif->TarifParams->Devis->Assure2 = new AssureInput(); // AssureInput
>>>> $Tarif->TarifParams->Devis->Assure2->Nom        = ''; // string
>>>> $Tarif->TarifParams->Devis->Assure2->Prenom      Â= ''; // string
>>>> $Tarif->TarifParams->Devis->Assure2->NumeroAssure   Â= 2; // int
>>>> $Tarif->TarifParams->Devis->Assure2->Type       Â= 'Conjoint'; //
>>>> string
>>>> $Tarif->TarifParams->Devis->Assure2->DateNaissance   = '19800102'; //
>>>> string
>>>> $Tarif->TarifParams->Devis->Assure2->RegimeObligatoire = 'SS'; //
>>>> string
>>>>
>>>> but it didn't work.
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/-PHP--Soap---Wsdl-Beginner-tp30277723p30306611.html
>>>> Sent from the Php - Soap mailing list archive at Nabble.com.
>>>>
>>>>
>>>> --
>>>> PHP Soap Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>
>>> The issue is the handling of maxOccurs="unbounded"
>>>
>>> I'm not 100% on how to handle this on the PHP SoapClient side.
>>>
>>> It _MAY_ be you can use ...
>>>
>>> $Tarif->TarifParams->Devis->Assure = array(new AssureInput(), new
>>> AssureInput());
>>>
>>> and then populate $Tarif->TarifParams->Devis->Assure[0] and
>>> $Tarif->TarifParams->Devis->Assure[1] appropriately.
>>>
>>> But I don't know for sure.
>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/-PHP--Soap---Wsdl-Beginner-tp30277723p30308912.html
>> Sent from the Php - Soap mailing list archive at Nabble.com.
>>
>>
>> --
>> PHP Soap Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 
> No problem. I'm glad you got it sorted. And I learned something too.
> 
> And for the rest of the day, I'm looking into Data Warehousing and OLAP.
> 
> Lucky me!
> 
> -- 
> 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
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/-PHP--Soap---Wsdl-Beginner-tp30277723p30366716.html
Sent from the Php - Soap mailing list archive at Nabble.com.


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