Re: [SOAP] [PHP] Soap / Wsdl Beginner
[email protected] (bkrqpzef) Tue, 7 Dec 2010 13:58:04 -0800 (PST)
| Newsgroups | php.soap |
|---|---|
| Message-ID | <[email protected]> |
Hooo my ....
I thought i was able to do it now. But it doesn't work...
I tried to use another function called ResumeGarantie
By using that code :
$service = new WSSante (
$wsdl = "http://wspar51.april.fr/WSSante/WSSante.asmx?wsdl",
$options = array (
'encoding' => 'ISO-8859-1',
'exception' => True,
'trace' => True,
)
);
$Garanties = new ResumeGaranties();
$Garanties->astr_Clef = 'KEY';
$Garanties->ResumeGaranties = new WSResumeGarantieInput();
#$Garanties->ResumeGaranties->NiveauDetail = 1 ;
$Garanties->ResumeGaranties->DateEffet = '20110101';
$Garanties->ResumeGaranties->ListeProduitGarantieNiveau = new
ProduitGarantieNiveauInput();
$Garanties->ResumeGaranties->ListeProduitGarantieNiveau->Produit =
'Responsabilis';
$Garanties->ResumeGaranties->ListeProduitGarantieNiveau->Garanties = new
Garantie();
$Garanties->ResumeGaranties->ListeProduitGarantieNiveau->Garanties->Libelle
= 'Eco';
$GarantiesResponse = $service->ResumeGaranties($Garanties);
and my request is stuck with :
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.april-technologies.com">
<SOAP-ENV:Body>
<ns1:ResumeGaranties>
<ns1:astr_Clef>KEY</ns1:astr_Clef>
</ns1:ResumeGaranties>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
What's wrong with me ? :(
RQuadling wrote:
>
> On 7 December 2010 16:03, bkrqpzef <[email protected]> wrote:
>>
>> Ok that's explani a lot.
>> So I have to write them manually.
>> Thanks again.
>>
>>
>> RQuadling wrote:
>>>
>>> On 7 December 2010 14:44, bkrqpzef <[email protected]> wrote:
>>>>
>>>> Yes i was able to generate http://pastebin.com/5zaDqmHx. (That create a
>>>> file
>>>> named WSSante.php)
>>>> But I can't generate http://pastebin.com/wMqrV7Md.
>>>> Have you done it manually?
>>>>
>>>>
>>>> RQuadling wrote:
>>>>>
>>>>> On 6 December 2010 13:14, bkrqpzef <[email protected]> wrote:
>>>>>>
>>>>>> 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.
>>>>>
>>>>> wsdl2php is a command line script.
>>>>>
>>>>> So, I typed ...
>>>>>
>>>>> C:\PHP5\pear\wsd2lphp http://site.com/service?wsdl
>>>>>
>>>>> As a matter of course, I do some manual tidying up of the resultant
>>>>> code, simply for my own sake - certainly not necessary.
>>>>>
>>>>> See http://old.nabble.com/forum/ViewPost.jtp?post=30277804&framed=y
>>>>> for my original comment about wsdl2php
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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-tp30277723p30396959.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
>>>>
>>>>
>>>
>>> Yes I did. The wsdl2php will only generate the classes to be used. It
>>> cannot generate anything else as it doesn't have any other information
>>> from the WSDL file.
>>>
>>>
>>>
>>> --
>>> 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-tp30277723p30397723.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
>>
>>
>
> Think of the WSDL conversion as creating the building blocks. It isn't
> the program, just the classes for use later.
>
> How you use them, is upto you, but it is within the confines of the
> soap service.
>
> --
> 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-tp30277723p30400771.html
Sent from the Php - Soap mailing list archive at Nabble.com.