Re: [SOAP] [PHP] Soap / Wsdl Beginner
[email protected] (bkrqpzef) Thu, 16 Dec 2010 00:06:53 -0800 (PST)
| Newsgroups | php.soap |
|---|---|
| Message-ID | <[email protected]> |
Here i am again. Damn this is hard. :s
I was almost able to add another webservice. But now i'm stuck with a weird
error :
Fatal error: Uncaught SoapFault exception: [soapenv:Server.generalException]
java.lang.NullPointerException in WSVITANEOServicesService.php:175 Stack
trace: #0 WSVITANEOServicesService.php(175):
SoapClient->__soapCall('wsvitaneo', Array, Array) #1 all.php(56):
WSVITANEOServicesService->wsvitaneo(Object(wsvitaneo)) #2 {main} thrown in
WSVITANEOServicesService.php on line 175
The main page is all.php and contain on the line 56 : $TarifResponse =
$service->wsvitaneo($Tarif);
and in the other php file generated by wsdl2php from line 170 to 176 :
public function wsvitaneo(wsvitaneo $parameters) {
return $this->__soapCall('wsvitaneo', array($parameters), array(
'uri' => 'http://wsvitaneo.wsbeans.iseries',
'soapaction' => ''
)
);
}
It doesn't seems wrong to me, i used the same thing without problems with
the other webservice.
http://old.nabble.com/file/p30470719/all.php all.php
http://old.nabble.com/file/p30470719/WSVITANEOServicesService.php
WSVITANEOServicesService.php
RQuadling wrote:
>
> On 8 December 2010 13:48, bkrqpzef <[email protected]> wrote:
>>
>> Haaa you saved myeagain. Just coupled with array it works very well.
>>
>>
>> RQuadling wrote:
>>>
>>> $Garanties->ResumeGaranties = new WSResumeGarantieInput();
>>>
>>> Should be
>>>
>>> $Garanties->ResumeGarantiesParams = new WSResumeGarantieInput();
>>>
>>> <s:element name="ResumeGaranties">
>>> <s:complexType>
>>> <s:sequence>
>>> <s:element minOccurs="0" maxOccurs="1" name="astr_Clef"
>>> type="s:string"/>
>>> <s:element minOccurs="0" maxOccurs="1" name="ResumeGarantiesParams"
>>> type="tns:WSResumeGarantieInput"/>
>>> </s:sequence>
>>> </s:complexType>
>>> </s:element>
>
> Congratulations.
>
> --
> 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-tp30277723p30470719.html
Sent from the Php - Soap mailing list archive at Nabble.com.