[WSDL]SOAP-ERROR using PHP5.2.5 and ext/soap

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
TheDudeAbides
Forum Newbie
Posts: 1
Joined: Thu Jan 17, 2008 10:52 pm

[WSDL]SOAP-ERROR using PHP5.2.5 and ext/soap

Post by TheDudeAbides »

Howdy,

I'm new to PHP (obviously) and I'm trying to hit a web service internally in our company intranet. When I use a browser to view the WSDL on the host server there are no problems. When I use SOAPScope using the same URL, I get a list of all of the exposed functions from that server. But, using this simple client:

Code: Select all

 
<?php
 
$wsdl = 'http://internal.host:9494/services/SomeService?wsdl';
$client = new soapclient($wsdl);
if($func = $client->__getFunctions())
 {...}
?>
I get the following error:
[WSDL]SOAP-ERROR Parsing Schema extension has no ''base' attribute.

This has nothing to do with the __getFunction() call because I comment out that block in my code to isolate the problem. I've run a network trace on the request/response and the wsdl is being returned from the server - I have no idea why the data is causing this problem.

I did, however, run a 'validation' on the schema in SOAPScope and it basically said that the it was bad (5 failures), but how does the SOAPScope tool get it to work?

The WSDL is from a vendor so I don't have much room to move around there so I just need to figure out how to get around this for now until they can fix the problem.

Any help is greatly appreciated.

The Dude Abides, man.
samisa
Forum Newbie
Posts: 6
Joined: Sun Jan 20, 2008 11:08 pm

Re: [WSDL]SOAP-ERROR using PHP5.2.5 and ext/soap

Post by samisa »

It is very hard to tell what exactly is going wrong, without having a look into the WSDL. Is it possible to post your WSDL here?

You may also try to use PHP Web services framework, which has good level of WSDL support.
Post Reply