PHP 5.6.24 cannot find *.xsd referenced in WSDL.

102 views
Skip to first unread message

Filip Rydlo

unread,
Sep 9, 2016, 10:19:45 AM9/9/16
to wse-php
Hello,  members of swe-php.

I am writing a client in PHP 5.6 . Yes.   (Sadly, it has to be PHP to integrate well with another SW).

The  WSDL file  location link is ending with  "/v3?wsdl" .  Too bad that the server does NOT tolerate ending  slash like this:  "/v3/?wsdl" ,  because  the PHP  ver  5.6.24-0+deb8u1 (cli) would have no problems finding the XSD file,  I suppose.


It the WSDL file,   this is how it defines the XSD schema import:
(btw:  can I tweak the  WSDL file    received from the webservice?  Probably not.  So, how to tweak  PHP  into finding  the XSD ?)



------------ snip ----------------
<wsdl:types>
  <xsd:schema>
  <xsd:import namespace="http://fs.mfcr.cz/eet/schema/v3" schemaLocation="EETXMLSchema.xsd"/>
  </xsd:schema>
</wsdl:types>
--------------- snip ---------------


PHP 5.6.24...  fails miserably in finding it !!!

It is TRYING to locate it here:


instead to look for it here:





Please, can anyone shed some light on this issue?  Why does it NOT look for it in the  /v3/  subfolder?
       Is there any WAY  to  tweak this and alter the location  where it is looking???


Thank You for any advice.


F.R.

Filip Rydlo

unread,
Sep 9, 2016, 11:02:15 AM9/9/16
to wse-php
Sorry.

     PHP does NOT fail. It behaves correctly to the specs. According to PHP developer requinix here:
     "The trailing slash is very significant." - requinix at  php dot net

       It is an ERROR in the WSDL file (or possibly only in it's location, which should have been probably placed at a link with trailing slash! :

".../v3/?wsdl"

Once more,  I am sorry. My mistake, I should have known.
Filip R.



Dne pátek 9. září 2016 16:19:45 UTC+2 Filip Rydlo napsal(a):
Reply all
Reply to author
Forward
0 new messages