Re: [SOAP] soap problems revisited

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

 



The crux of this particular problem with Net/DIME.php seems to lie
in SOAP/Transport.php line 56:

res = @include_once($transport_include);

and SOAP/Transport/HTTP.php line 33:

require_once 'Net/DIME.php';

It seems SOAP/Transport/HTTP.php tries to require Net/DIME.php, and
because of the @ an inclusion error is not reported, but the script is
stopped because the require_once 'Net/DIME.php' in SOAP/Transport/HTTP.php
throws a fatal error, which even @ can't avoid.

This inclusion/require should not be happening in this class anyway as it
is already included (or atleast tried to) in SOAP/Base.php, with adequate
error handling if it's still needed in SOAP_Base.

The same fatal error problem could still exist if SOAP/Base.php gives a
fatal error when it is required in SOAP/Transport/HTTP.php , but let's
assume it is always already included if we call it from SOAP_Transport.

Also SOAP_Transport_HTTP is extending the wrong class, SOAP_Base_Object,
instead of SOAP_Base, from which it uses the _makeDIMEMessage and
_decodeMimeMessage methods in its _parseResponse method.

This should also resolve Brodie Thiesfield's problem in post:
"[SOAP] bug in _decodeDIMEMessage" (7/16/2003)
And perhaps also Will Green's Mime echo problem in post:
"PEAR::SOAP server handling MIME attachemnts" (7/30/2003)

If we correct the parent class it should now give a SOAP_Fault error in
$this->fault in the case Net/DIME.php or Net/Mime.php doesn't exist when
calling _makeDIMEMessage or _decodeMimeMessage. That is if the method
_parseResponse would return false if the _makeDIMEMessage or
_decodeMimeMessage returned a PEAR_Error.

The attached patch diff for SOAP/Transport/HTTP.php, SOAP-0.8RC1
should fix all these problems.


- Pim Broekhof

"Javier Muniz" <jmuniz@granicus.com> wrote in message
8CAA2F1AC7B96C43974814DD3D95EF982EF46C@sfomail-01.granicusnt.granicus.com">news:8CAA2F1AC7B96C43974814DD3D95EF982EF46C@sfomail-01.granicusnt.granicus.com...
> One thing that I've noticed is that a script using PEAR::SOAP dies with no
> error message when it tries to instatiate a class that has not been
defined.
> This is not just a problem with missing dependencies, but also if you
> accidentally instatiate a class before you have loaded it's include file.
>
> Has anyone else noticed this?
>
> -Javier
>
> -----Original Message-----
> From: Abdul-Wahid Paterson [mailto:aw@lintrix.net]
> Sent: Wednesday, August 27, 2003 4:14 PM
> To: Will Green
> Cc: soap@lists.php.net
> Subject: Re: [SOAP] soap problems revisited
>
>
>
> >
> > Did you use pear to install SOAP, or did you just unzip the SOAP
> > Package?
> >
> > I ask because pear shouldn't let you install SOAP without Net_DIME.
>
> No I didn't use pear to install SOAP. I just unzipped the tar.gz file. My
> mistake, just strange that it didn't generate any error message.
>
> --
> Abdul-Wahid Paterson
>
> Lintrix Networking & Communications ltd.
> Web: http://www.lintrix.net/
> Tel: +44 20 8904 2348
> Email/Jabber: aw@lintrix.net
> --------------------------------------------------------------------
> Web-Hosting  |  Development  |  Security  |  Consultancy  |  Domains
> --------------------------------------------------------------------


begin 666 HTTP.diff
M+2TM($A45% M;W)I9RYP:' ),C P,RTP."TR." Q,CHU-3HP,RXP,# P,# P
M,# @*S R,# **RLK($A45% N<&AP"3(P,#,M,#@M,C@@,30Z,S Z-#0N,# P
M,# P,# P("LP,C P"D! ("TS,"PW("LS,"PV($! "B @*B!.965D960@0VQA
M<W-E<PH@("HO"B!R97%U:7)E7V]N8V4@)U-/05 O0F%S92YP:' G.PHM<F5Q
M=6ER95]O;F-E("=.970O1$E-12YP:' G.PH*("\J*@H@("H@($A45% @5')A
M;G-P;W)T(&9O<B!33T%0"D! ("TT,"PW("LS.2PW($! "B @*B! <&%C:V%G
M92!33T%0.CI4<F%N<W!O<G0Z.DA45% *(" J($!A=71H;W(@4VAA;F4@0V%R
M879E;R \<VAA;F5 <&AP+FYE=#X*(" J+PHM8VQA<W,@4T]!4%]4<F%N<W!O
M<G1?2%144"!E>'1E;F1S(%-/05!?0F%S95]/8FIE8W0**V-L87-S(%-/05!?
M5')A;G-P;W)T7TA45% @97AT96YD<R!33T%07T)A<V4*('L*(" @(" O*BH*
M(" @(" @*B!"87-I8R!!=71H('-T<FEN9PI 0" M,S@T+#$Q("LS.#,L,3<@
M0$ *"B @(" @(" @(" @("!I9B H)'1H:7,M/G)E<W5L=%]C;VYT96YT7W1Y
M<&4@/3T@)V%P<&QI8V%T:6]N+V1I;64G*2!["B @(" @(" @(" @(" @(" @
M+R\@6%A8('%U:6-K(&AA8VL@:6YS97)T:6]N(&]F($1)344*+2 @(" @(" @
M(" @(" @(" D=&AI<RT^7V1E8V]D941)345-97-S86=E*"1T:&ES+3YR97-P
M;VYS92PD=&AI<RT^:&5A9&5R<RPD=&AI<RT^871T86-H;65N=',I.PHK(" @
M(" @(" @(" @(" @(&EF("A014%2.CII<T5R<F]R*"1T:&ES+3Y?9&5C;V1E
M1$E-14UE<W-A9V4H)'1H:7,M/G)E<W!O;G-E+"1T:&ES+3YH96%D97)S+"1T
M:&ES+3YA='1A8VAM96YT<RDI*2!["BL@(" @(" @(" @(" @(" @(" @("\O
M(%]D96-O9&5$24U%365S<V%G92!A;')E861Y(')A:7-E9" D=&AI<RT^9F%U
M;'0**R @(" @(" @(" @(" @(" @(" @<F5T=7)N(&9A;'-E.PHK(" @(" @
M(" @(" @(" @('T*(" @(" @(" @(" @(" @(" D=&AI<RT^<F5S=6QT7V-O
M;G1E;G1?='EP92 ]("1T:&ES+3YH96%D97)S6R=C;VYT96YT+71Y<&4G73L*
M(" @(" @(" @(" @('T@96QS92!I9B H<W1R:7-T<B@D=&AI<RT^<F5S=6QT
M7V-O;G1E;G1?='EP92PG;75L=&EP87)T+W)E;&%T960G*2D@>PH@(" @(" @
M(" @(" @(" @("1T:&ES+3YR97-P;VYS92 ]("1T:&ES+3YI;F-O;6EN9U]P
M87EL;V%D.PHM(" @(" @(" @(" @(" @("1T:&ES+3Y?9&5C;V1E36EM94UE
M<W-A9V4H)'1H:7,M/G)E<W!O;G-E+"1T:&ES+3YH96%D97)S+"1T:&ES+3YA
M='1A8VAM96YT<RD["BL@(" @(" @(" @(" @(" @:68@*%!%05(Z.FES17)R
M;W(H)'1H:7,M/E]D96-O9&5-:6UE365S<V%G92@D=&AI<RT^<F5S<&]N<V4L
M)'1H:7,M/FAE861E<G,L)'1H:7,M/F%T=&%C:&UE;G1S*2DI('L**R @(" @
M(" @(" @(" @(" @(" @+R\@7V1E8V]D94UI;65-97-S86=E(&%L<F5A9'D@
M<F%I<V5D("1T:&ES+3YF875L= HK(" @(" @(" @(" @(" @(" @("!R971U
M<FX@9F%L<V4["BL@(" @(" @(" @(" @(" @?0H@(" @(" @(" @(" @?2!E
M;'-E(&EF("@D=&AI<RT^<F5S=6QT7V-O;G1E;G1?='EP92 A/2 G=&5X="]X
M;6PG*2!["B @(" @(" @(" @(" @(" @)'1H:7,M/E]R86ES95-O87!&875L
M="@D=&AI<RT^<F5S<&]N<V4I.PH@(" @(" @(" @(" @(" @(')E='5R;B!F
&86QS93L*
`
end

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